tests/e2e: fix curl proclaim error message
@@ -350,7 +350,7 @@ func testV3CurlProclaimMissiongLeaderKey(cx ctlCtx) {
if err = cURLPost(cx.epc, cURLReq{
endpoint: path.Join(cx.apiPrefix, "/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)", cx.apiPrefix, err)
}
@@ -366,7 +366,7 @@ func testV3CurlResignMissiongLeaderKey(cx ctlCtx) {
if err := cURLPost(cx.epc, cURLReq{
endpoint: path.Join(cx.apiPrefix, "/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)", cx.apiPrefix, err)
}
