You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by kv...@apache.org on 2021/06/08 00:54:18 UTC
[apisix-ingress-controller] branch master updated: chore: remove
echo plugin's auth test case. (#534)
This is an automated email from the ASF dual-hosted git repository.
kvn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-ingress-controller.git
The following commit(s) were added to refs/heads/master by this push:
new 28c584e chore: remove echo plugin's auth test case. (#534)
28c584e is described below
commit 28c584ea33824434a7e872f328e8e90a09fb2213
Author: Jintao Zhang <ta...@163.com>
AuthorDate: Tue Jun 8 08:54:09 2021 +0800
chore: remove echo plugin's auth test case. (#534)
it has been removed.
xref: https://github.com/apache/apisix/pull/4055
Signed-off-by: Jintao Zhang <zh...@gmail.com>
---
test/e2e/plugins/echo.go | 45 ---------------------------------------------
1 file changed, 45 deletions(-)
diff --git a/test/e2e/plugins/echo.go b/test/e2e/plugins/echo.go
index 6815344..251d873 100644
--- a/test/e2e/plugins/echo.go
+++ b/test/e2e/plugins/echo.go
@@ -119,51 +119,6 @@ spec:
resp.Body().Equal("my custom body")
})
- ginkgo.It("auth", func() {
- backendSvc, backendPorts := s.DefaultHTTPBackend()
- ar := fmt.Sprintf(`
-apiVersion: apisix.apache.org/v2alpha1
-kind: ApisixRoute
-metadata:
- name: httpbin-route
-spec:
- http:
- - name: rule1
- match:
- hosts:
- - httpbin.org
- paths:
- - /ip
- backends:
- - serviceName: %s
- servicePort: %d
- weight: 10
- plugins:
- - name: echo
- enable: true
- config:
- body: "my custom body"
- auth_value: "Basic cmVkaXM6MTIzNDU2"
-
-`, backendSvc, backendPorts[0])
-
- assert.Nil(ginkgo.GinkgoT(), s.CreateResourceFromString(ar))
-
- err := s.EnsureNumApisixUpstreamsCreated(1)
- assert.Nil(ginkgo.GinkgoT(), err, "Checking number of upstreams")
- err = s.EnsureNumApisixRoutesCreated(1)
- assert.Nil(ginkgo.GinkgoT(), err, "Checking number of routes")
-
- resp := s.NewAPISIXClient().GET("/ip").WithHeader("Host", "httpbin.org").Expect()
- resp.Status(http.StatusUnauthorized)
-
- resp = s.NewAPISIXClient().GET("/ip").WithHeader("Host", "httpbin.org").
- WithHeader("Authorization", "Basic cmVkaXM6MTIzNDU2").
- Expect()
- resp.Status(http.StatusOK)
- resp.Body().Equal("my custom body")
- })
-
ginkgo.It("disable plugin", func() {
backendSvc, backendPorts := s.DefaultHTTPBackend()
ar := fmt.Sprintf(`