From cd0a6116cef9daa0ff455af4b3c9d250f6100503 Mon Sep 17 00:00:00 2001 From: Kent Dong Date: Wed, 11 Feb 2026 17:43:49 +0800 Subject: [PATCH] fix: Fix jwt-auth plugin related typos (#3291) --- .../extensions/jwt-auth/test/jwt_test.go | 2 +- .../extensions/jwt-auth/test/jwts.json | 4 ++-- .../e2e/conformance/tests/go-wasm-jwt-auth.go | 24 +++++++++---------- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/plugins/wasm-go/extensions/jwt-auth/test/jwt_test.go b/plugins/wasm-go/extensions/jwt-auth/test/jwt_test.go index fa2da3f5e..f45d179c1 100644 --- a/plugins/wasm-go/extensions/jwt-auth/test/jwt_test.go +++ b/plugins/wasm-go/extensions/jwt-auth/test/jwt_test.go @@ -67,7 +67,7 @@ func genJWTs(keySets map[string]keySet) (jwts jwts) { Expiry: jwt.NewNumericDate(time.Date(2034, 1, 1, 0, 0, 0, 0, time.UTC)), NotBefore: jwt.NewNumericDate(time.Date(2024, 1, 1, 0, 0, 0, 0, time.UTC)), }, - "expried": { + "expired": { Issuer: "higress-test", Subject: "higress-test", Audience: []string{"foo", "bar"}, diff --git a/plugins/wasm-go/extensions/jwt-auth/test/jwts.json b/plugins/wasm-go/extensions/jwt-auth/test/jwts.json index 6e1e22d23..c0a544af5 100644 --- a/plugins/wasm-go/extensions/jwt-auth/test/jwts.json +++ b/plugins/wasm-go/extensions/jwt-auth/test/jwts.json @@ -8,12 +8,12 @@ { "alg": "RS256", "token": "eyJhbGciOiJSUzI1NiIsImtpZCI6InJzYSIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiZm9vIiwiYmFyIl0sImV4cCI6MTcwNDA2NzIwMCwiaXNzIjoiaGlncmVzcy10ZXN0IiwibmJmIjoxNzA0MDY3MjAwLCJzdWIiOiJoaWdyZXNzLXRlc3QifQ.jqzlhBPk9mmvtTT5aCYf-_5uXXSEU5bQ32fx78XeboCnjR9K1CsI4KYUIkXEX3bk66XJQUeSes7lz3gA4Yzkd-v9oADHTgpKnIxzv_5mD0_afIwEFjcalqVbSvCmro4PessQZDnmU7AIzoo3RPSqbmq8xbPVYUH9I-OO8aUu2ATd1HozgxJH1XnRU8k9KMkVW8XhvJXLKZJmnqe3Tu6pCU_tawFlBfBC4fAhMf0yX2CGE0ABAHubcdiI6JXObQmQQ9Or2a-g2a8g_Bw697PoPOsAn0YpTrHst9GcyTpkbNTAq9X8fc5EM7hiDM1FGeMYcaQTdMnOh4HBhP0p4YEhvA", - "type": "expried" + "type": "expired" }, { "alg": "ES256", "token": "eyJhbGciOiJFUzI1NiIsImtpZCI6InAyNTYiLCJ0eXAiOiJKV1QifQ.eyJhdWQiOlsiZm9vIiwiYmFyIl0sImV4cCI6MTcwNDA2NzIwMCwiaXNzIjoiaGlncmVzcy10ZXN0IiwibmJmIjoxNzA0MDY3MjAwLCJzdWIiOiJoaWdyZXNzLXRlc3QifQ.9AnXd2rZ6FirHZQAoabyL4xZNz0jr-3LmcV4-pFV3JrdtUT4386Mw5Qan125fUB-rZf_ZBlv0Bft2tWY149fyg", - "type": "expried" + "type": "expired" }, { "alg": "ES256", diff --git a/test/e2e/conformance/tests/go-wasm-jwt-auth.go b/test/e2e/conformance/tests/go-wasm-jwt-auth.go index 5e3d3f821..334d7b7c0 100644 --- a/test/e2e/conformance/tests/go-wasm-jwt-auth.go +++ b/test/e2e/conformance/tests/go-wasm-jwt-auth.go @@ -268,7 +268,7 @@ var WasmPluginsJWTAuthExpried = suite.ConformanceTest{ Meta: http.AssertionMeta{ TargetBackend: "infra-backend-v1", TargetNamespace: "higress-conformance-infra", - TestCaseName: "1. Default header with expried ES256", + TestCaseName: "1. Default header with expired ES256", }, Request: http.AssertionRequest{ ActualRequest: http.Request{ @@ -289,7 +289,7 @@ var WasmPluginsJWTAuthExpried = suite.ConformanceTest{ Meta: http.AssertionMeta{ TargetBackend: "infra-backend-v1", TargetNamespace: "higress-conformance-infra", - TestCaseName: "2. Default header with expried RS256", + TestCaseName: "2. Default header with expired RS256", }, Request: http.AssertionRequest{ ActualRequest: http.Request{ @@ -310,7 +310,7 @@ var WasmPluginsJWTAuthExpried = suite.ConformanceTest{ Meta: http.AssertionMeta{ TargetBackend: "infra-backend-v1", TargetNamespace: "higress-conformance-infra", - TestCaseName: "3. Default params with expried ES256", + TestCaseName: "3. Default params with expired ES256", }, Request: http.AssertionRequest{ ActualRequest: http.Request{ @@ -330,7 +330,7 @@ var WasmPluginsJWTAuthExpried = suite.ConformanceTest{ Meta: http.AssertionMeta{ TargetBackend: "infra-backend-v1", TargetNamespace: "higress-conformance-infra", - TestCaseName: "4. Default params with expried RS256", + TestCaseName: "4. Default params with expired RS256", }, Request: http.AssertionRequest{ ActualRequest: http.Request{ @@ -350,7 +350,7 @@ var WasmPluginsJWTAuthExpried = suite.ConformanceTest{ Meta: http.AssertionMeta{ TargetBackend: "infra-backend-v1", TargetNamespace: "higress-conformance-infra", - TestCaseName: "5. Custom header with expried ES256", + TestCaseName: "5. Custom header with expired ES256", }, Request: http.AssertionRequest{ ActualRequest: http.Request{ @@ -371,7 +371,7 @@ var WasmPluginsJWTAuthExpried = suite.ConformanceTest{ Meta: http.AssertionMeta{ TargetBackend: "infra-backend-v1", TargetNamespace: "higress-conformance-infra", - TestCaseName: "6. Custom header with expried RS256", + TestCaseName: "6. Custom header with expired RS256", }, Request: http.AssertionRequest{ ActualRequest: http.Request{ @@ -392,7 +392,7 @@ var WasmPluginsJWTAuthExpried = suite.ConformanceTest{ Meta: http.AssertionMeta{ TargetBackend: "infra-backend-v1", TargetNamespace: "higress-conformance-infra", - TestCaseName: "7. Custom params with expried ES256", + TestCaseName: "7. Custom params with expired ES256", }, Request: http.AssertionRequest{ ActualRequest: http.Request{ @@ -412,7 +412,7 @@ var WasmPluginsJWTAuthExpried = suite.ConformanceTest{ Meta: http.AssertionMeta{ TargetBackend: "infra-backend-v1", TargetNamespace: "higress-conformance-infra", - TestCaseName: "8. Custom params with expried RS256", + TestCaseName: "8. Custom params with expired RS256", }, Request: http.AssertionRequest{ ActualRequest: http.Request{ @@ -432,7 +432,7 @@ var WasmPluginsJWTAuthExpried = suite.ConformanceTest{ Meta: http.AssertionMeta{ TargetBackend: "infra-backend-v1", TargetNamespace: "higress-conformance-infra", - TestCaseName: "9. Custom cookies with expried ES256", + TestCaseName: "9. Custom cookies with expired ES256", }, Request: http.AssertionRequest{ ActualRequest: http.Request{ @@ -453,7 +453,7 @@ var WasmPluginsJWTAuthExpried = suite.ConformanceTest{ Meta: http.AssertionMeta{ TargetBackend: "infra-backend-v1", TargetNamespace: "higress-conformance-infra", - TestCaseName: "10. Custom cookies with expried RS256", + TestCaseName: "10. Custom cookies with expired RS256", }, Request: http.AssertionRequest{ ActualRequest: http.Request{ @@ -774,7 +774,7 @@ var WasmPluginsJWTAuthSingleConsumer = suite.ConformanceTest{ Meta: http.AssertionMeta{ TargetBackend: "infra-backend-v1", TargetNamespace: "higress-conformance-infra", - TestCaseName: "2. Default hedaer with expried ES256 by single consumer_EC", + TestCaseName: "2. Default hedaer with expired ES256 by single consumer_EC", }, Request: http.AssertionRequest{ ActualRequest: http.Request{ @@ -877,7 +877,7 @@ var WasmPluginsJWTAuthSingleConsumer = suite.ConformanceTest{ Meta: http.AssertionMeta{ TargetBackend: "infra-backend-v1", TargetNamespace: "higress-conformance-infra", - TestCaseName: "7. Default params with expried ES256 by single consumer_EC", + TestCaseName: "7. Default params with expired ES256 by single consumer_EC", }, Request: http.AssertionRequest{ ActualRequest: http.Request{