Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yunmaoQu committed Jan 31, 2025
1 parent 88504b0 commit 6ee8499
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions test/e2e/conformance/tests/replay-protection.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var WasmPluginsReplayProtection = suite.ConformanceTest{
Request: http.AssertionRequest{
ActualRequest: http.Request{
Host: "foo.com",
Path: "/get",
Path: "/",
Method: "GET",
},
},
Expand All @@ -67,7 +67,7 @@ var WasmPluginsReplayProtection = suite.ConformanceTest{
Request: http.AssertionRequest{
ActualRequest: http.Request{
Host: "foo.com",
Path: "/get",
Path: "/",
Method: "GET",
Headers: map[string]string{
"X-Higress-Nonce": "invalid-nonce",
Expand All @@ -88,7 +88,7 @@ var WasmPluginsReplayProtection = suite.ConformanceTest{
Request: http.AssertionRequest{
ActualRequest: http.Request{
Host: "foo.com",
Path: "/get",
Path: "/",
Method: "GET",
Headers: map[string]string{
"X-Higress-Nonce": replayNonce,
Expand All @@ -109,7 +109,7 @@ var WasmPluginsReplayProtection = suite.ConformanceTest{
Request: http.AssertionRequest{
ActualRequest: http.Request{
Host: "foo.com",
Path: "/get",
Path: "/",
Method: "GET",
Headers: map[string]string{
"X-Higress-Nonce": replayNonce,
Expand Down
7 changes: 4 additions & 3 deletions test/e2e/conformance/tests/replay-protection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,13 @@ metadata:
namespace: higress-conformance-infra
annotations:
spec:
ingressClassName: higress
rules:
- host: foo.com
- host: "foo.com"
http:
paths:
- path: /get
pathType: Prefix
- pathType: Prefix
path: "/"
backend:
service:
name: infra-backend-v1
Expand Down

0 comments on commit 6ee8499

Please # to comment.