Merged in feature/jobstatusendpoint (pull request #85)
Job Status Endpoint * edpoint
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user