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 39e57ad commit 96a955e
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,17 +140,17 @@ func TestHttp1JWT(t *testing.T) {
wantedError: `{"code":404,"message":"The current request is not defined by this API."}`,
},
{
desc: "Fail, without valid JWT token",
desc: "Fail, with valid JWT token",
httpMethod: "GET",
httpPath: "/auth/info/googleservicecontrol.googleapis.com:443/",
wantedError: `{"code":404,"message":"The current request is not defined by this API."}`,
httpPath: "/auth/info/googlejwt",
token: testdata.FakeBadToken,
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, without valid JWT token",
httpMethod: "GET",
httpPath: "/auth/info/googlejwt",
wantedError: "401 Unauthorized",
},
{
desc: "Fail, with valid JWT token, without allowed audience",
Expand Down

0 comments on commit 96a955e

Please sign in to comment.