tao12345666333 commented on a change in pull request #647:
URL:
https://github.com/apache/apisix-ingress-controller/pull/647#discussion_r704953263
##########
File path: test/e2e/features/retries.go
##########
@@ -33,50 +33,100 @@ var _ = ginkgo.Describe("retries", func() {
APISIXRouteVersion: "apisix.apache.org/v2alpha1",
}
s := scaffold.NewScaffold(opts)
- ginkgo.It("active check", func() {
+
+ routeTpl := `
+apiVersion: apisix.apache.org/v2alpha1
+kind: ApisixRoute
+metadata:
+ name: httpbin-route
+spec:
+ http:
+ - name: rule1
+ match:
Review comment:
invalid format
##########
File path: test/e2e/features/retries.go
##########
@@ -33,50 +33,100 @@ var _ = ginkgo.Describe("retries", func() {
APISIXRouteVersion: "apisix.apache.org/v2alpha1",
}
s := scaffold.NewScaffold(opts)
- ginkgo.It("active check", func() {
+
+ routeTpl := `
+apiVersion: apisix.apache.org/v2alpha1
+kind: ApisixRoute
+metadata:
+ name: httpbin-route
+spec:
+ http:
+ - name: rule1
+ match:
+ hosts:
+ - httpbin.org
+ paths:
+ - /*
+ backend:
+ serviceName: %s
+ servicePort: %d
+`
+ ginkgo.It("is missing", func() {
backendSvc, backendPorts := s.DefaultHTTPBackend()
+ ar := fmt.Sprintf(routeTpl, backendSvc, backendPorts[0])
+ err := s.CreateResourceFromString(ar)
+ assert.Nil(ginkgo.GinkgoT(), err)
+ time.Sleep(5 * time.Second)
au := fmt.Sprintf(`
apiVersion: apisix.apache.org/v1
kind: ApisixUpstream
metadata:
name: %s
spec:
- retries: 3
Review comment:
we can't using "nil" in `ApisixUpstream.spec`
##########
File path: test/e2e/features/retries.go
##########
@@ -33,50 +33,100 @@ var _ = ginkgo.Describe("retries", func() {
APISIXRouteVersion: "apisix.apache.org/v2alpha1",
}
s := scaffold.NewScaffold(opts)
- ginkgo.It("active check", func() {
+
+ routeTpl := `
+apiVersion: apisix.apache.org/v2alpha1
+kind: ApisixRoute
+metadata:
+ name: httpbin-route
Review comment:
You must use spaces as indentation
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]