Skip to content

Commit

Permalink
fix: Fix failed unit tests due to google-cloud-storage upgrade.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 640313157
  • Loading branch information
vertex-sdk-bot authored and Copybara-Service committed Jun 4, 2024
1 parent f9d4b51 commit 945b9e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion tests/unit/aiplatform/test_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@
_TEST_RUN = "run-1"
_TEST_OTHER_RUN = "run-2"
_TEST_DISPLAY_NAME = "test-display-name"
_TEST_CREDENTIALS = mock.Mock(spec=credentials.AnonymousCredentials())
_TEST_CREDENTIALS = mock.Mock(
spec=credentials.AnonymousCredentials(),
universe_domain="googleapis.com",
)
_TEST_BUCKET_NAME = "gs://test-bucket"

# resource attributes
Expand Down
5 changes: 4 additions & 1 deletion tests/unit/aiplatform/test_metadata_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@
_TEST_PARENT = (
f"projects/{_TEST_PROJECT}/locations/{_TEST_LOCATION}/metadataStores/default"
)
_TEST_CREDENTIALS = mock.Mock(spec=auth_credentials.AnonymousCredentials())
_TEST_CREDENTIALS = mock.Mock(
spec=auth_credentials.AnonymousCredentials(),
universe_domain="googleapis.com",
)


# artifact
Expand Down

0 comments on commit 945b9e4

Please sign in to comment.