integration: Rename method names
This commit is contained in:
parent
d48d399fb3
commit
fd09d8b861
|
@ -795,16 +795,16 @@ func TestH1H2RespPhaseReturn(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestH1APIBackendReplace exercise backendconfig API endpoint
|
// TestH1APIBackendconfig exercise backendconfig API endpoint routine
|
||||||
// routine for successful case.
|
// for successful case.
|
||||||
func TestH1APIBackendReplace(t *testing.T) {
|
func TestH1APIBackendconfig(t *testing.T) {
|
||||||
st := newServerTesterConnectPort([]string{"-f127.0.0.1,3010;api;no-tls"}, t, func(w http.ResponseWriter, r *http.Request) {
|
st := newServerTesterConnectPort([]string{"-f127.0.0.1,3010;api;no-tls"}, t, func(w http.ResponseWriter, r *http.Request) {
|
||||||
t.Fatalf("request should not be forwarded")
|
t.Fatalf("request should not be forwarded")
|
||||||
}, 3010)
|
}, 3010)
|
||||||
defer st.Close()
|
defer st.Close()
|
||||||
|
|
||||||
res, err := st.http1(requestParam{
|
res, err := st.http1(requestParam{
|
||||||
name: "TestH1APIBackendReplace",
|
name: "TestH1APIBackendconfig",
|
||||||
path: "/api/v1beta1/backendconfig",
|
path: "/api/v1beta1/backendconfig",
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
body: []byte(`# comment
|
body: []byte(`# comment
|
||||||
|
@ -832,16 +832,16 @@ backend=127.0.0.1,3011
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestH1APIBackendReplaceQuery exercise backendconfig API endpoint
|
// TestH1APIBackendconfigQuery exercise backendconfig API endpoint
|
||||||
// routine with query.
|
// routine with query.
|
||||||
func TestH1APIBackendReplaceQuery(t *testing.T) {
|
func TestH1APIBackendconfigQuery(t *testing.T) {
|
||||||
st := newServerTesterConnectPort([]string{"-f127.0.0.1,3010;api;no-tls"}, t, func(w http.ResponseWriter, r *http.Request) {
|
st := newServerTesterConnectPort([]string{"-f127.0.0.1,3010;api;no-tls"}, t, func(w http.ResponseWriter, r *http.Request) {
|
||||||
t.Fatalf("request should not be forwarded")
|
t.Fatalf("request should not be forwarded")
|
||||||
}, 3010)
|
}, 3010)
|
||||||
defer st.Close()
|
defer st.Close()
|
||||||
|
|
||||||
res, err := st.http1(requestParam{
|
res, err := st.http1(requestParam{
|
||||||
name: "TestH1APIBackendReplaceQuery",
|
name: "TestH1APIBackendconfigQuery",
|
||||||
path: "/api/v1beta1/backendconfig?foo=bar",
|
path: "/api/v1beta1/backendconfig?foo=bar",
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
body: []byte(`# comment
|
body: []byte(`# comment
|
||||||
|
@ -869,16 +869,16 @@ backend=127.0.0.1,3011
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestH1APIBackendReplaceBadMethod exercise backendconfig API
|
// TestH1APIBackendconfigBadMethod exercise backendconfig API endpoint
|
||||||
// endpoint routine with bad method.
|
// routine with bad method.
|
||||||
func TestH1APIBackendReplaceBadMethod(t *testing.T) {
|
func TestH1APIBackendconfigBadMethod(t *testing.T) {
|
||||||
st := newServerTesterConnectPort([]string{"-f127.0.0.1,3010;api;no-tls"}, t, func(w http.ResponseWriter, r *http.Request) {
|
st := newServerTesterConnectPort([]string{"-f127.0.0.1,3010;api;no-tls"}, t, func(w http.ResponseWriter, r *http.Request) {
|
||||||
t.Fatalf("request should not be forwarded")
|
t.Fatalf("request should not be forwarded")
|
||||||
}, 3010)
|
}, 3010)
|
||||||
defer st.Close()
|
defer st.Close()
|
||||||
|
|
||||||
res, err := st.http1(requestParam{
|
res, err := st.http1(requestParam{
|
||||||
name: "TestH1APIBackendReplaceBadMethod",
|
name: "TestH1APIBackendconfigBadMethod",
|
||||||
path: "/api/v1beta1/backendconfig",
|
path: "/api/v1beta1/backendconfig",
|
||||||
method: "GET",
|
method: "GET",
|
||||||
body: []byte(`# comment
|
body: []byte(`# comment
|
||||||
|
|
|
@ -1845,16 +1845,16 @@ func TestH2H2RespPhaseReturn(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestH2APIBackendReplace exercise backendconfig API endpoint
|
// TestH2APIBackendconfig exercise backendconfig API endpoint routine
|
||||||
// routine for successful case.
|
// for successful case.
|
||||||
func TestH2APIBackendReplace(t *testing.T) {
|
func TestH2APIBackendconfig(t *testing.T) {
|
||||||
st := newServerTesterConnectPort([]string{"-f127.0.0.1,3010;api;no-tls"}, t, func(w http.ResponseWriter, r *http.Request) {
|
st := newServerTesterConnectPort([]string{"-f127.0.0.1,3010;api;no-tls"}, t, func(w http.ResponseWriter, r *http.Request) {
|
||||||
t.Fatalf("request should not be forwarded")
|
t.Fatalf("request should not be forwarded")
|
||||||
}, 3010)
|
}, 3010)
|
||||||
defer st.Close()
|
defer st.Close()
|
||||||
|
|
||||||
res, err := st.http2(requestParam{
|
res, err := st.http2(requestParam{
|
||||||
name: "TestH2APIBackendReplace",
|
name: "TestH2APIBackendconfig",
|
||||||
path: "/api/v1beta1/backendconfig",
|
path: "/api/v1beta1/backendconfig",
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
body: []byte(`# comment
|
body: []byte(`# comment
|
||||||
|
@ -1882,16 +1882,16 @@ backend=127.0.0.1,3011
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestH2APIBackendReplaceQuery exercise backendconfig API endpoint
|
// TestH2APIBackendconfigQuery exercise backendconfig API endpoint
|
||||||
// routine with query.
|
// routine with query.
|
||||||
func TestH2APIBackendReplaceQuery(t *testing.T) {
|
func TestH2APIBackendconfigQuery(t *testing.T) {
|
||||||
st := newServerTesterConnectPort([]string{"-f127.0.0.1,3010;api;no-tls"}, t, func(w http.ResponseWriter, r *http.Request) {
|
st := newServerTesterConnectPort([]string{"-f127.0.0.1,3010;api;no-tls"}, t, func(w http.ResponseWriter, r *http.Request) {
|
||||||
t.Fatalf("request should not be forwarded")
|
t.Fatalf("request should not be forwarded")
|
||||||
}, 3010)
|
}, 3010)
|
||||||
defer st.Close()
|
defer st.Close()
|
||||||
|
|
||||||
res, err := st.http2(requestParam{
|
res, err := st.http2(requestParam{
|
||||||
name: "TestH2APIBackendReplaceQuery",
|
name: "TestH2APIBackendconfigQuery",
|
||||||
path: "/api/v1beta1/backendconfig?foo=bar",
|
path: "/api/v1beta1/backendconfig?foo=bar",
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
body: []byte(`# comment
|
body: []byte(`# comment
|
||||||
|
@ -1919,16 +1919,16 @@ backend=127.0.0.1,3011
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestH2APIBackendReplaceBadMethod exercise backendconfig API
|
// TestH2APIBackendconfigBadMethod exercise backendconfig API endpoint
|
||||||
// endpoint routine with bad method.
|
// routine with bad method.
|
||||||
func TestH2APIBackendReplaceBadMethod(t *testing.T) {
|
func TestH2APIBackendconfigBadMethod(t *testing.T) {
|
||||||
st := newServerTesterConnectPort([]string{"-f127.0.0.1,3010;api;no-tls"}, t, func(w http.ResponseWriter, r *http.Request) {
|
st := newServerTesterConnectPort([]string{"-f127.0.0.1,3010;api;no-tls"}, t, func(w http.ResponseWriter, r *http.Request) {
|
||||||
t.Fatalf("request should not be forwarded")
|
t.Fatalf("request should not be forwarded")
|
||||||
}, 3010)
|
}, 3010)
|
||||||
defer st.Close()
|
defer st.Close()
|
||||||
|
|
||||||
res, err := st.http2(requestParam{
|
res, err := st.http2(requestParam{
|
||||||
name: "TestH2APIBackendReplaceBadMethod",
|
name: "TestH2APIBackendconfigBadMethod",
|
||||||
path: "/api/v1beta1/backendconfig",
|
path: "/api/v1beta1/backendconfig",
|
||||||
method: "GET",
|
method: "GET",
|
||||||
body: []byte(`# comment
|
body: []byte(`# comment
|
||||||
|
|
|
@ -476,16 +476,16 @@ func TestS3H2RespPhaseReturn(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestS3APIBackendReplace exercise backendconfig API endpoint
|
// TestS3APIBackendconfig exercise backendconfig API endpoint routine
|
||||||
// routine for successful case.
|
// for successful case.
|
||||||
func TestS3APIBackendReplace(t *testing.T) {
|
func TestS3APIBackendconfig(t *testing.T) {
|
||||||
st := newServerTesterTLSConnectPort([]string{"--npn-list=spdy/3.1", "-f127.0.0.1,3010;api"}, t, func(w http.ResponseWriter, r *http.Request) {
|
st := newServerTesterTLSConnectPort([]string{"--npn-list=spdy/3.1", "-f127.0.0.1,3010;api"}, t, func(w http.ResponseWriter, r *http.Request) {
|
||||||
t.Fatalf("request should not be forwarded")
|
t.Fatalf("request should not be forwarded")
|
||||||
}, 3010)
|
}, 3010)
|
||||||
defer st.Close()
|
defer st.Close()
|
||||||
|
|
||||||
res, err := st.spdy(requestParam{
|
res, err := st.spdy(requestParam{
|
||||||
name: "TestS3APIBackendReplace",
|
name: "TestS3APIBackendconfig",
|
||||||
path: "/api/v1beta1/backendconfig",
|
path: "/api/v1beta1/backendconfig",
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
body: []byte(`# comment
|
body: []byte(`# comment
|
||||||
|
@ -513,16 +513,16 @@ backend=127.0.0.1,3011
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestS3APIBackendReplaceQuery exercise backendconfig API endpoint
|
// TestS3APIBackendconfigQuery exercise backendconfig API endpoint
|
||||||
// routine with query.
|
// routine with query.
|
||||||
func TestS3APIBackendReplaceQuery(t *testing.T) {
|
func TestS3APIBackendconfigQuery(t *testing.T) {
|
||||||
st := newServerTesterTLSConnectPort([]string{"--npn-list=spdy/3.1", "-f127.0.0.1,3010;api"}, t, func(w http.ResponseWriter, r *http.Request) {
|
st := newServerTesterTLSConnectPort([]string{"--npn-list=spdy/3.1", "-f127.0.0.1,3010;api"}, t, func(w http.ResponseWriter, r *http.Request) {
|
||||||
t.Fatalf("request should not be forwarded")
|
t.Fatalf("request should not be forwarded")
|
||||||
}, 3010)
|
}, 3010)
|
||||||
defer st.Close()
|
defer st.Close()
|
||||||
|
|
||||||
res, err := st.spdy(requestParam{
|
res, err := st.spdy(requestParam{
|
||||||
name: "TestS3APIBackendReplaceQuery",
|
name: "TestS3APIBackendconfigQuery",
|
||||||
path: "/api/v1beta1/backendconfig?foo=bar",
|
path: "/api/v1beta1/backendconfig?foo=bar",
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
body: []byte(`# comment
|
body: []byte(`# comment
|
||||||
|
@ -550,16 +550,16 @@ backend=127.0.0.1,3011
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestS3APIBackendReplaceBadMethod exercise backendconfig API
|
// TestS3APIBackendconfigBadMethod exercise backendconfig API endpoint
|
||||||
// endpoint routine with bad method.
|
// routine with bad method.
|
||||||
func TestS3APIBackendReplaceBadMethod(t *testing.T) {
|
func TestS3APIBackendconfigBadMethod(t *testing.T) {
|
||||||
st := newServerTesterTLSConnectPort([]string{"--npn-list=spdy/3.1", "-f127.0.0.1,3010;api"}, t, func(w http.ResponseWriter, r *http.Request) {
|
st := newServerTesterTLSConnectPort([]string{"--npn-list=spdy/3.1", "-f127.0.0.1,3010;api"}, t, func(w http.ResponseWriter, r *http.Request) {
|
||||||
t.Fatalf("request should not be forwarded")
|
t.Fatalf("request should not be forwarded")
|
||||||
}, 3010)
|
}, 3010)
|
||||||
defer st.Close()
|
defer st.Close()
|
||||||
|
|
||||||
res, err := st.spdy(requestParam{
|
res, err := st.spdy(requestParam{
|
||||||
name: "TestS3APIBackendReplaceBadMethod",
|
name: "TestS3APIBackendconfigBadMethod",
|
||||||
path: "/api/v1beta1/backendconfig",
|
path: "/api/v1beta1/backendconfig",
|
||||||
method: "GET",
|
method: "GET",
|
||||||
body: []byte(`# comment
|
body: []byte(`# comment
|
||||||
|
|
Loading…
Reference in New Issue