From a22870139d36039964e84a5e3ba45db8f539026e Mon Sep 17 00:00:00 2001 From: Teju Nareddy Date: Tue, 28 Mar 2023 01:00:13 +0000 Subject: [PATCH] Revert find-replace Signed-off-by: Teju Nareddy --- .../http1_integration_test.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/integration_test/http1_integration_test/http1_integration_test.go b/tests/integration_test/http1_integration_test/http1_integration_test.go index cbdf8f2b7..2906780dd 100644 --- a/tests/integration_test/http1_integration_test/http1_integration_test.go +++ b/tests/integration_test/http1_integration_test/http1_integration_test.go @@ -132,13 +132,6 @@ func TestHttp1JWT(t *testing.T) { token: testdata.FakeCloudTokenMultiAudiences, wantResp: `{"aud":["admin.cloud.goog","bookstore_test_client.cloud.goog"],"exp":4698318999,"iat":1544718999,"iss":"api-proxy-testing@cloud.goog","sub":"api-proxy-testing@cloud.goog"}`, }, - { - desc: "Fail, with valid JWT token", - httpMethod: "GET", - httpPath: "/auth/info/googleservicecontrol.googleapis.com:443/", - token: testdata.FakeBadToken, - wantedError: `{"code":404,"message":"The current request is not defined by this API."}`, - }, { desc: "Fail, with valid JWT token", httpMethod: "GET", @@ -152,6 +145,13 @@ func TestHttp1JWT(t *testing.T) { httpPath: "/auth/info/googlejwt", wantedError: "401 Unauthorized", }, + { + desc: "Succeed, with valid JWT token, with allowed audience", + httpMethod: "GET", + httpPath: "/auth/info/auth0", + token: testdata.FakeCloudTokenSingleAudience2, + wantResp: `{"aud":"admin.cloud.goog","exp":4698318995,"iat":1544718995,"iss":"api-proxy-testing@cloud.goog","sub":"api-proxy-testing@cloud.goog"}`, + }, { desc: "Fail, with valid JWT token, without allowed audience", httpMethod: "GET",