Switch to using the harness

This commit is contained in:
Alex Dadgar
2016-05-16 12:49:18 -07:00
parent de09d3c70c
commit f56bdbe03a
7 changed files with 27 additions and 58 deletions

View File

@@ -282,10 +282,10 @@ type JobPlanRequest struct {
}
type JobPlanResponse struct {
Cas uint64
CreatedEvals []*Evaluation
Diff *JobDiff
Annotations *PlanAnnotations
JobModifyIndex uint64
CreatedEvals []*Evaluation
Diff *JobDiff
Annotations *PlanAnnotations
}
type JobDiff struct {

View File

@@ -380,8 +380,8 @@ func TestJobs_Plan(t *testing.T) {
t.Fatalf("nil response")
}
if planResp.Cas == 0 {
t.Fatalf("bad Cas value: %#v", planResp)
if planResp.JobModifyIndex == 0 {
t.Fatalf("bad JobModifyIndex value: %#v", planResp)
}
if planResp.Diff == nil {
t.Fatalf("got nil diff: %#v", planResp)
@@ -405,8 +405,8 @@ func TestJobs_Plan(t *testing.T) {
t.Fatalf("nil response")
}
if planResp.Cas == 0 {
t.Fatalf("bad Cas value: %d", planResp.Cas)
if planResp.JobModifyIndex == 0 {
t.Fatalf("bad JobModifyIndex value: %d", planResp.JobModifyIndex)
}
if planResp.Diff != nil {
t.Fatalf("got non-nil diff: %#v", planResp)