diff options
| author | vincentgoat <linguohui1@huawei.com> | 2022-09-27 15:30:07 +0800 |
|---|---|---|
| committer | vincentgoat <linguohui1@huawei.com> | 2022-09-27 17:08:42 +0800 |
| commit | 99d60255aa20a6581b508cda68fb2d47a25689b5 (patch) | |
| tree | c0f6f595478ec8f302de6be619a707376a1aece2 /edge/test | |
| parent | Merge pull request #4240 from vincentgoat/app_cache_id (diff) | |
| download | kubeedge-99d60255aa20a6581b508cda68fb2d47a25689b5.tar.gz | |
start http server when featuregates requireAuthorization is false otherthan https
Signed-off-by: vincentgoat <linguohui1@huawei.com>
Diffstat (limited to 'edge/test')
| -rw-r--r-- | edge/test/integration/metaserver/metaserver_test.go | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/edge/test/integration/metaserver/metaserver_test.go b/edge/test/integration/metaserver/metaserver_test.go index 120a9a7a9..09fb2eb07 100644 --- a/edge/test/integration/metaserver/metaserver_test.go +++ b/edge/test/integration/metaserver/metaserver_test.go @@ -1,7 +1,6 @@ package metaserver import ( - "crypto/tls" "net/http" . "github.com/onsi/ginkgo/v2" @@ -43,17 +42,11 @@ var _ = Describe("Test MetaServer", func() { //"Watch with bad method": {"POST", "/" + prefix + "/" + testGroupVersion.Group + "/" + testGroupVersion.Version + "/watch/namespaces/ns/simples/", http.StatusMethodNotAllowed}, //"Watch param with bad method": {"POST", "/" + prefix + "/" + testGroupVersion.Group + "/" + testGroupVersion.Version + "/namespaces/ns-foo/simples?watch=true", http.StatusMethodNotAllowed}, } - client := http.Client{ - Transport: &http.Transport{ - TLSClientConfig: &tls.Config{ - InsecureSkipVerify: true}, - }, - } - url := "https://127.0.0.1:10550" + client := http.Client{} + url := "http://127.0.0.1:10550" for _, v := range cases { request, err := http.NewRequest(v.Method, url+v.Path, nil) Expect(err).Should(BeNil()) - request.Header.Set("Authorization", "xxxxx") response, err := client.Do(request) Expect(err).Should(BeNil()) isEqual := v.Status == response.StatusCode |
