You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/09/09 07:19:23 UTC

[GitHub] [apisix-ingress-controller] chzhuo commented on a change in pull request #647: feat: Change field retries to value from pointer.

chzhuo commented on a change in pull request #647:
URL: https://github.com/apache/apisix-ingress-controller/pull/647#discussion_r705047443



##########
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:
       How about change spec to 
   ```yaml
   retries:
     type: integer
     minimum: 0
     nullable: true
   ```




-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org