Skip to content

Commit 4553763

Browse files
committed
fix test
1 parent cc0eeba commit 4553763

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

test/e2e/gatewayapi/httproute.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ spec:
173173
})
174174

175175
Context("HTTPRoute Base", func() {
176-
177176
var exactRouteByGet = `
178177
apiVersion: gateway.networking.k8s.io/v1
179178
kind: HTTPRoute
@@ -228,10 +227,10 @@ spec:
228227
By("create HTTPRoute")
229228
ResourceApplied("HTTPRoute", "httpbin", exactRouteByGet, 1)
230229

231-
By("access dataplane to check the HTTPRoute")
232-
s.NewAPISIXHttpsClient("api6.com").
230+
By("access daataplane to check the HTTPRoute")
231+
s.NewAPISIXClient().
233232
GET("/get").
234-
WithHost("api6.com").
233+
WithHost("httpbin.example").
235234
Expect().
236235
Status(200)
237236

@@ -240,9 +239,9 @@ spec:
240239
Expect(err).NotTo(HaveOccurred(), "deleting Gateway")
241240
time.Sleep(5 * time.Second)
242241

243-
s.NewAPISIXHttpsClient("api6.com").
242+
s.NewAPISIXClient().
244243
GET("/get").
245-
WithHost("api6.com").
244+
WithHost("httpbin.example").
246245
Expect().
247246
Status(404)
248247
})

0 commit comments

Comments
 (0)