Skip to content

Commit dc62949

Browse files
committed
fix test
1 parent 584e3c6 commit dc62949

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/e2e/gatewayapi/httproute.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ spec:
564564
Method: "GET",
565565
Path: "/get",
566566
Host: "httpbin.external",
567-
Check: scaffold.WithExpectedStatus(http.StatusMovedPermanently),
567+
Check: scaffold.WithExpectedStatus(http.StatusOK),
568568
})
569569
})
570570

@@ -1462,7 +1462,7 @@ spec:
14621462
Path: "/headers",
14631463
Host: "httpbin.example",
14641464
Checks: []scaffold.ResponseCheckFunc{
1465-
scaffold.WithExpectedStatus(http.StatusMovedPermanently),
1465+
scaffold.WithExpectedStatus(http.StatusOK),
14661466
scaffold.WithExpectedHeader("Location", "http://httpbin.org/headers"),
14671467
},
14681468
})

test/e2e/ingress/ingress.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ spec:
253253
GET("/get").
254254
WithHost("httpbin.external").
255255
Expect().
256-
Status(http.StatusMovedPermanently)
256+
Status(http.StatusOK)
257257
})
258258

259259
It("Delete Ingress during restart", func() {
@@ -283,7 +283,7 @@ spec:
283283
GET("/get").
284284
WithHost("httpbin.external").
285285
Expect().
286-
Status(http.StatusMovedPermanently)
286+
Status(http.StatusOK)
287287

288288
s.NewAPISIXClient().
289289
GET("/get").
@@ -304,7 +304,7 @@ spec:
304304
GET("/get").
305305
WithHost("httpbin.external").
306306
Expect().
307-
Status(http.StatusMovedPermanently)
307+
Status(http.StatusOK)
308308

309309
s.NewAPISIXClient().
310310
GET("/get").

0 commit comments

Comments
 (0)