Merged in feature/jobstatusendpoint (pull request #85)

Job Status Endpoint

* edpoint
This commit is contained in:
Michael McGuinness
2025-03-04 16:20:54 +00:00
parent d91ef1832b
commit a07037b018
9 changed files with 291 additions and 134 deletions
+4 -2
View File
@@ -42,7 +42,6 @@ func TestJob(t *testing.T) {
assert.Equal(t, id, jobRes.JSON200.Id)
assert.Equal(t, clientRes.JSON201.Id, jobRes.JSON200.ClientId)
assert.False(t, jobRes.JSON200.CanSync)
assert.Equal(t, queryservice.INSYNC, jobRes.JSON200.Status)
updateCanSync := !jobRes.JSON200.CanSync
updateRes, err := client.UpdateJobWithResponse(ctx, id, queryservice.JobUpdate{
@@ -56,5 +55,8 @@ func TestJob(t *testing.T) {
assert.Equal(t, id, jobRes.JSON200.Id)
assert.Equal(t, clientRes.JSON201.Id, jobRes.JSON200.ClientId)
assert.False(t, jobRes.JSON200.CanSync)
assert.Equal(t, queryservice.INSYNC, jobRes.JSON200.Status)
jobStatusRes, err := client.GetJobStatusByJobIdWithResponse(ctx, id)
assert.NoError(t, err)
assert.Equal(t, queryservice.INSYNC, jobStatusRes.JSON200.Status)
}