@@ -125,7 +125,7 @@ spec:
125125 Expect (gwyaml ).To (ContainSubstring (`status: "True"` ), "checking Gateway condition status" )
126126 Expect (gwyaml ).To (ContainSubstring ("message: the gateway has been accepted by the api7-ingress-controller" ), "checking Gateway condition message" )
127127 }
128- FContext ("HTTPRoute with HTTPS Gateway" , func () {
128+ Context ("HTTPRoute with HTTPS Gateway" , func () {
129129 var exactRouteByGet = `
130130apiVersion: gateway.networking.k8s.io/v1
131131kind: HTTPRoute
@@ -153,22 +153,23 @@ spec:
153153 ResourceApplied ("HTTPRoute" , "httpbin" , exactRouteByGet , 1 )
154154
155155 By ("access dataplane to check the HTTPRoute" )
156+ // time.Sleep(1000000 * time.Second)
156157 s .NewAPISIXClientWithHTTPS ().
157158 GET ("/get" ).
158159 WithHost ("api6.com" ).
159160 Expect ().
160161 Status (200 )
161- time .Sleep (1000 * time .Second )
162- // By("delete HTTPRoute")
163- // err := s.DeleteResourceFromString(exactRouteByGet)
164- // Expect(err).NotTo(HaveOccurred(), "deleting HTTPRoute")
165- // time.Sleep(5 * time.Second)
166-
167- // s.NewAPISIXClientWithHTTPS().
168- // GET("/get").
169- // WithHost("api6.com").
170- // Expect().
171- // Status(404)
162+ // time.Sleep(1000 * time.Second)
163+ By ("delete HTTPRoute" )
164+ err := s .DeleteResourceFromString (exactRouteByGet )
165+ Expect (err ).NotTo (HaveOccurred (), "deleting HTTPRoute" )
166+ time .Sleep (5 * time .Second )
167+
168+ s .NewAPISIXClientWithHTTPS ().
169+ GET ("/get" ).
170+ WithHost ("api6.com" ).
171+ Expect ().
172+ Status (404 )
172173 })
173174 })
174175
0 commit comments