Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Mingfei Huang <mingfei.huang@getcruise.com>
  • Loading branch information
max0ne committed Nov 30, 2020
1 parent ae19ee9 commit 4815ce6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/plugin/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def setup_gce_metadata_stubs
# Used by 'googleauth' to fetch the default service account credentials.
stub_request(:get, 'http://169.254.169.254/computeMetadata/v1/' \
'instance/service-accounts/default/token')
.with(query: hash_including('scopes'))
.to_return(body: %({"access_token": "#{FAKE_AUTH_TOKEN}"}),
status: 200,
headers: { 'Content-Length' => FAKE_AUTH_TOKEN.length,
Expand Down

0 comments on commit 4815ce6

Please sign in to comment.