mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
tests: Update diagnostic update in tests after change of proto version.
This commit is contained in:
parent
cc7b4fab9f
commit
371ddf0b69
@ -103,7 +103,7 @@ stabilize 1 2
|
|||||||
propose-conf-change 1
|
propose-conf-change 1
|
||||||
v3 v4 v5
|
v3 v4 v5
|
||||||
----
|
----
|
||||||
INFO 1 ignoring conf change {ConfChangeTransitionAuto [{ConfChangeAddNode 3 []} {ConfChangeAddNode 4 []} {ConfChangeAddNode 5 []}] [] []} at config voters=(1 2)&&(1): must transition out of joint config first
|
INFO 1 ignoring conf change {ConfChangeTransitionAuto [{ConfChangeAddNode 3 {} [] 0} {ConfChangeAddNode 4 {} [] 0} {ConfChangeAddNode 5 {} [] 0}] [] {} [] 0} at config voters=(1 2)&&(1): must transition out of joint config first
|
||||||
|
|
||||||
# Propose a transition out of the joint config. We'll see this at index 6 below.
|
# Propose a transition out of the joint config. We'll see this at index 6 below.
|
||||||
propose-conf-change 1
|
propose-conf-change 1
|
||||||
@ -165,7 +165,7 @@ stabilize
|
|||||||
# Check that trying to transition out again won't do anything.
|
# Check that trying to transition out again won't do anything.
|
||||||
propose-conf-change 1
|
propose-conf-change 1
|
||||||
----
|
----
|
||||||
INFO 1 ignoring conf change {ConfChangeTransitionAuto [] [] []} at config voters=(1 2): not in joint state; refusing empty conf change
|
INFO 1 ignoring conf change {ConfChangeTransitionAuto [] [] {} [] 0} at config voters=(1 2): not in joint state; refusing empty conf change
|
||||||
|
|
||||||
# Finishes work for the empty entry we just proposed.
|
# Finishes work for the empty entry we just proposed.
|
||||||
stabilize
|
stabilize
|
||||||
|
@ -343,7 +343,7 @@ func testV3CurlProclaimMissiongLeaderKey(cx ctlCtx) {
|
|||||||
if err = cURLPost(cx.epc, cURLReq{
|
if err = cURLPost(cx.epc, cURLReq{
|
||||||
endpoint: path.Join(cx.apiPrefix, "/election/proclaim"),
|
endpoint: path.Join(cx.apiPrefix, "/election/proclaim"),
|
||||||
value: string(pdata),
|
value: string(pdata),
|
||||||
expected: `{"error":"\"leader\" field must be provided","message":"\"leader\" field must be provided","code":2}`,
|
expected: `{"error":"\"leader\" field must be provided","code":2,"message":"\"leader\" field must be provided"}`,
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
cx.t.Fatalf("failed post proclaim request (%s) (%v)", cx.apiPrefix, err)
|
cx.t.Fatalf("failed post proclaim request (%s) (%v)", cx.apiPrefix, err)
|
||||||
}
|
}
|
||||||
@ -359,7 +359,7 @@ func testV3CurlResignMissiongLeaderKey(cx ctlCtx) {
|
|||||||
if err := cURLPost(cx.epc, cURLReq{
|
if err := cURLPost(cx.epc, cURLReq{
|
||||||
endpoint: path.Join(cx.apiPrefix, "/election/resign"),
|
endpoint: path.Join(cx.apiPrefix, "/election/resign"),
|
||||||
value: `{}`,
|
value: `{}`,
|
||||||
expected: `{"error":"\"leader\" field must be provided","message":"\"leader\" field must be provided","code":2}`,
|
expected: `{"error":"\"leader\" field must be provided","code":2,"message":"\"leader\" field must be provided"}`,
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
cx.t.Fatalf("failed post resign request (%s) (%v)", cx.apiPrefix, err)
|
cx.t.Fatalf("failed post resign request (%s) (%v)", cx.apiPrefix, err)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user