Skip to content

Commit a284fc3

Browse files
committed
lint fix
1 parent bb6df24 commit a284fc3

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

spec/03-credentials_spec.lua

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -447,19 +447,6 @@ describe("access token", function ()
447447
it("should use custom oauth_token_url in JWT aud field", function()
448448
local custom_oauth_url = "https://custom.googleapis.com/oauth2/v4/token"
449449
local captured_request_body = nil
450-
local custom_responses = {
451-
[custom_oauth_url] = function(url, opts)
452-
-- Capture the request body to verify JWT contains custom URL in aud field
453-
captured_request_body = opts.body
454-
return {
455-
status = 200,
456-
body = [[{"access_token": "test_custom_aud_token", "expires_in": 3600}]],
457-
}
458-
end,
459-
["http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/token"] = function()
460-
return nil, "connection refused"
461-
end
462-
}
463450

464451
-- We need to modify the HTTP mock to capture request details
465452
local original_http = package.loaded["resty.luasocket.http"]

0 commit comments

Comments
 (0)