Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix(deps): Added universe_domain override to MockGoogleComputeEngineC…
…redential

Added a universe_domain property override to MockGoogleComputeEngineCredential in tests/testutils.py to prevent unexpected network requests to the GCE metadata server during test runs with newer versions of google-auth.
  • Loading branch information
lahirumaramba committed Jun 26, 2026
commit d9d5cb147b5f50cf993911087b481c18f24b2cee
4 changes: 4 additions & 0 deletions tests/testutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ def __init__(self):
self._service_account_email = None
self._token_state = credentials.TokenState.INVALID

@property
def universe_domain(self):
return 'googleapis.com'

def refresh(self, request):
self.token = 'mock-compute-engine-token'
self._service_account_email = 'mock-gce-email'
Expand Down
Loading