Skip to content

Commit 5522ab0

Browse files
committed
update tests and update secret
1 parent 768b628 commit 5522ab0

File tree

4 files changed

+4
-19
lines changed

4 files changed

+4
-19
lines changed

example.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

google/auth/compute_engine/credentials.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ def _retrieve_info(self, request):
100100
request, service_account=self._service_account_email
101101
)
102102

103-
import pdb; pdb.set_trace()
104103
# Don't override scopes requested by the user.
105104
if self._scopes is None:
106105
self._scopes = info["scopes"]

system_tests/secrets.tar.enc

0 Bytes
Binary file not shown.

tests/compute_engine/test_credentials.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def test_refresh_success(self, get, utcnow):
120120
assert self.credentials.expiry == (utcnow() + datetime.timedelta(seconds=500))
121121

122122
# Check the credential info
123-
assert self.credentials.service_account_email == "[email protected]"
123+
assert self.credentials.service_account_email == "default"
124124
assert self.credentials._scopes == ["one", "two"]
125125

126126
# Check that the credentials are valid (have a token and are not
@@ -160,7 +160,7 @@ def test_refresh_success_with_scopes(self, get, utcnow, mock_metrics_header_valu
160160
assert self.credentials.expiry == (utcnow() + datetime.timedelta(seconds=500))
161161

162162
# Check the credential info
163-
assert self.credentials.service_account_email == "[email protected]"
163+
assert self.credentials.service_account_email == "default"
164164
assert self.credentials._scopes == scopes
165165

166166
# Check that the credentials are valid (have a token and are not
@@ -501,7 +501,7 @@ def test_with_target_audience_integration(self):
501501
responses.add(
502502
responses.GET,
503503
"http://metadata.google.internal/computeMetadata/v1/instance/"
504-
"service-accounts/[email protected]/token",
504+
"service-accounts/default/token",
505505
status=200,
506506
content_type="application/json",
507507
json={
@@ -659,7 +659,7 @@ def test_with_quota_project_integration(self):
659659
responses.add(
660660
responses.GET,
661661
"http://metadata.google.internal/computeMetadata/v1/instance/"
662-
"service-accounts/[email protected]/token",
662+
"service-accounts/default/token",
663663
status=200,
664664
content_type="application/json",
665665
json={

0 commit comments

Comments
 (0)