From 6ee8499039f03818f5d19626e3ab4e00430fb1ba Mon Sep 17 00:00:00 2001 From: yunmaoQu <2643354262@qq.com> Date: Fri, 31 Jan 2025 16:15:43 +0000 Subject: [PATCH] fix --- test/e2e/conformance/tests/replay-protection.go | 8 ++++---- test/e2e/conformance/tests/replay-protection.yaml | 7 ++++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/test/e2e/conformance/tests/replay-protection.go b/test/e2e/conformance/tests/replay-protection.go index aae97d6e17..72f7db2143 100644 --- a/test/e2e/conformance/tests/replay-protection.go +++ b/test/e2e/conformance/tests/replay-protection.go @@ -49,7 +49,7 @@ var WasmPluginsReplayProtection = suite.ConformanceTest{ Request: http.AssertionRequest{ ActualRequest: http.Request{ Host: "foo.com", - Path: "/get", + Path: "/", Method: "GET", }, }, @@ -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", @@ -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, @@ -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, diff --git a/test/e2e/conformance/tests/replay-protection.yaml b/test/e2e/conformance/tests/replay-protection.yaml index fea1c45c20..08c982025d 100644 --- a/test/e2e/conformance/tests/replay-protection.yaml +++ b/test/e2e/conformance/tests/replay-protection.yaml @@ -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