From 1f1f4549b1e313d6aebf6cea9692aeb59dfd864a Mon Sep 17 00:00:00 2001 From: zirain Date: Mon, 6 May 2024 09:19:28 +0800 Subject: [PATCH] fix test Signed-off-by: zirain --- .../securitypolicy-with-oidc.out.yaml | 23 +++++++++++++++---- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/internal/gatewayapi/testdata/securitypolicy-with-oidc.out.yaml b/internal/gatewayapi/testdata/securitypolicy-with-oidc.out.yaml index ecb85ee148e..676e1ea2394 100644 --- a/internal/gatewayapi/testdata/securitypolicy-with-oidc.out.yaml +++ b/internal/gatewayapi/testdata/securitypolicy-with-oidc.out.yaml @@ -211,10 +211,9 @@ securityPolicies: namespace: envoy-gateway conditions: - lastTransitionTime: null - message: 'Error fetching endpoints from issuer: Get "https://accounts.google.com/.well-known/openid-configuration": - dial tcp 46.82.174.69:443: i/o timeout' - reason: Invalid - status: "False" + message: Policy has been accepted. + reason: Accepted + status: "True" type: Accepted - lastTransitionTime: null message: 'This policy is being overridden by other securityPolicies for these @@ -290,4 +289,18 @@ xdsIR: distinct: false name: "" prefix: /bar - security: {} + security: + oidc: + clientID: client1.apps.googleusercontent.com + clientSecret: Y2xpZW50MTpzZWNyZXQK + cookieSuffix: b0a1b740 + hmacSecret: qrOYACHXoe7UEDI/raOjNSx+Z9ufXSc/22C3T6X/zPY= + logoutPath: /bar/logout + name: securitypolicy/envoy-gateway/policy-for-gateway + provider: + authorizationEndpoint: https://accounts.google.com/o/oauth2/v2/auth + tokenEndpoint: https://oauth2.googleapis.com/token + redirectPath: /bar/oauth2/callback + redirectURL: https://www.example.com/bar/oauth2/callback + scopes: + - openid