Skip to content

Commit

Permalink
e2e: fix curl proclaim error message
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Batschelet <sbatsche@redhat.com>
  • Loading branch information
hexfusion committed Jul 31, 2019
1 parent 796b3a4 commit da4a924
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/v3_curl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ func testV3CurlProclaimMissiongLeaderKey(cx ctlCtx) {
if err = cURLPost(cx.epc, cURLReq{
endpoint: path.Join("/v3beta", "/election/proclaim"),
value: string(pdata),
expected: `{"error":"\"leader\" field must be provided","code":2}`,
expected: `{"error":"\"leader\" field must be provided","message":"\"leader\" field must be provided","code":2}`,
}); err != nil {
cx.t.Fatalf("failed post proclaim request (%s) (%v)", "/v3beta", err)
}
Expand All @@ -376,7 +376,7 @@ func testV3CurlResignMissiongLeaderKey(cx ctlCtx) {
if err := cURLPost(cx.epc, cURLReq{
endpoint: path.Join("/v3beta", "/election/resign"),
value: `{}`,
expected: `{"error":"\"leader\" field must be provided","code":2}`,
expected: `{"error":"\"leader\" field must be provided","message":"\"leader\" field must be provided","code":2}`,
}); err != nil {
cx.t.Fatalf("failed post resign request (%s) (%v)", "/v3beta", err)
}
Expand Down

0 comments on commit da4a924

Please sign in to comment.