mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
e2e: remove "/v3beta" endpoints
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
dd64080eac
commit
a089a747b5
@ -166,7 +166,6 @@ func TestV3CurlTxn(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestV3CurlAuthAlpha(t *testing.T) { testV3CurlAuth(t, "/v3alpha") }
|
func TestV3CurlAuthAlpha(t *testing.T) { testV3CurlAuth(t, "/v3alpha") }
|
||||||
func TestV3CurlAuthBeta(t *testing.T) { testV3CurlAuth(t, "/v3beta") }
|
|
||||||
func testV3CurlAuth(t *testing.T, pathPrefix string) {
|
func testV3CurlAuth(t *testing.T, pathPrefix string) {
|
||||||
defer testutil.AfterTest(t)
|
defer testutil.AfterTest(t)
|
||||||
epc, err := newEtcdProcessCluster(&configNoTLS)
|
epc, err := newEtcdProcessCluster(&configNoTLS)
|
||||||
@ -250,11 +249,11 @@ func testV3CurlProclaimMissiongLeaderKey(cx ctlCtx) {
|
|||||||
cx.t.Fatal(err)
|
cx.t.Fatal(err)
|
||||||
}
|
}
|
||||||
if err = cURLPost(cx.epc, cURLReq{
|
if err = cURLPost(cx.epc, cURLReq{
|
||||||
endpoint: path.Join("/v3beta", "/election/proclaim"),
|
endpoint: path.Join("/v3alpha", "/election/proclaim"),
|
||||||
value: string(pdata),
|
value: string(pdata),
|
||||||
expected: `{"error":"\"leader\" field must be provided","code":2}`,
|
expected: `{"error":"\"leader\" field must be provided","code":2}`,
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
cx.t.Fatalf("failed post proclaim request (%s) (%v)", "/v3beta", err)
|
cx.t.Fatalf("failed post proclaim request (%s) (%v)", "/v3alpha", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -264,11 +263,11 @@ func TestV3CurlResignMissiongLeaderKeyNoTLS(t *testing.T) {
|
|||||||
|
|
||||||
func testV3CurlResignMissiongLeaderKey(cx ctlCtx) {
|
func testV3CurlResignMissiongLeaderKey(cx ctlCtx) {
|
||||||
if err := cURLPost(cx.epc, cURLReq{
|
if err := cURLPost(cx.epc, cURLReq{
|
||||||
endpoint: path.Join("/v3beta", "/election/resign"),
|
endpoint: path.Join("/v3alpha", "/election/resign"),
|
||||||
value: `{}`,
|
value: `{}`,
|
||||||
expected: `{"error":"\"leader\" field must be provided","code":2}`,
|
expected: `{"error":"\"leader\" field must be provided","code":2}`,
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
cx.t.Fatalf("failed post resign request (%s) (%v)", "/v3beta", err)
|
cx.t.Fatalf("failed post resign request (%s) (%v)", "/v3alpha", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user