Skip to content

Commit

Permalink
Revert find-replace
Browse files Browse the repository at this point in the history
Signed-off-by: Teju Nareddy <[email protected]>
  • Loading branch information
nareddyt committed Mar 28, 2023
1 parent 96a955e commit a228701
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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":"[email protected]","sub":"[email protected]"}`,
},
{
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",
Expand All @@ -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":"[email protected]","sub":"[email protected]"}`,
},
{
desc: "Fail, with valid JWT token, without allowed audience",
httpMethod: "GET",
Expand Down

0 comments on commit a228701

Please sign in to comment.