Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit ada81f1

Browse files
committed
updated goldens
1 parent a7674f0 commit ada81f1

File tree

11 files changed

+44
-55
lines changed
  • tests/integration/goldens
    • asset/google/cloud/asset_v1/services/asset_service/transports
    • credentials/google/iam/credentials_v1/services/iam_credentials/transports
    • eventarc/google/cloud/eventarc_v1/services/eventarc/transports
    • logging_internal/google/cloud/logging_v2/services
      • config_service_v2/transports
      • logging_service_v2/transports
      • metrics_service_v2/transports
    • logging/google/cloud/logging_v2/services
      • config_service_v2/transports
      • logging_service_v2/transports
      • metrics_service_v2/transports
    • redis_selective/google/cloud/redis_v1/services/cloud_redis/transports
    • redis/google/cloud/redis_v1/services/cloud_redis/transports

11 files changed

+44
-55
lines changed

tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/transports/base.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ def __init__(
8585
be used for service account credentials.
8686
"""
8787

88-
scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
89-
9088
# Save the scopes.
9189
self._scopes = scopes
9290
if not hasattr(self, "_ignore_credentials"):
@@ -100,11 +98,12 @@ def __init__(
10098
if credentials_file is not None:
10199
credentials, _ = google.auth.load_credentials_from_file(
102100
credentials_file,
103-
**scopes_kwargs,
104-
quota_project_id=quota_project_id
101+
scopes=scopes,
102+
quota_project_id=quota_project_id,
103+
default_scopes=self.AUTH_SCOPES,
105104
)
106105
elif credentials is None and not self._ignore_credentials:
107-
credentials, _ = google.auth.default(**scopes_kwargs, quota_project_id=quota_project_id)
106+
credentials, _ = google.auth.default(scopes=scopes, quota_project_id=quota_project_id, default_scopes=self.AUTH_SCOPES)
108107
# Don't apply audience if the credentials file passed from user.
109108
if hasattr(credentials, "with_gdch_audience"):
110109
credentials = credentials.with_gdch_audience(api_audience if api_audience else host)

tests/integration/goldens/credentials/google/iam/credentials_v1/services/iam_credentials/transports/base.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ def __init__(
8282
be used for service account credentials.
8383
"""
8484

85-
scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
86-
8785
# Save the scopes.
8886
self._scopes = scopes
8987
if not hasattr(self, "_ignore_credentials"):
@@ -97,11 +95,12 @@ def __init__(
9795
if credentials_file is not None:
9896
credentials, _ = google.auth.load_credentials_from_file(
9997
credentials_file,
100-
**scopes_kwargs,
101-
quota_project_id=quota_project_id
98+
scopes=scopes,
99+
quota_project_id=quota_project_id,
100+
default_scopes=self.AUTH_SCOPES,
102101
)
103102
elif credentials is None and not self._ignore_credentials:
104-
credentials, _ = google.auth.default(**scopes_kwargs, quota_project_id=quota_project_id)
103+
credentials, _ = google.auth.default(scopes=scopes, quota_project_id=quota_project_id, default_scopes=self.AUTH_SCOPES)
105104
# Don't apply audience if the credentials file passed from user.
106105
if hasattr(credentials, "with_gdch_audience"):
107106
credentials = credentials.with_gdch_audience(api_audience if api_audience else host)

tests/integration/goldens/eventarc/google/cloud/eventarc_v1/services/eventarc/transports/base.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ def __init__(
9393
be used for service account credentials.
9494
"""
9595

96-
scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
97-
9896
# Save the scopes.
9997
self._scopes = scopes
10098
if not hasattr(self, "_ignore_credentials"):
@@ -108,11 +106,12 @@ def __init__(
108106
if credentials_file is not None:
109107
credentials, _ = google.auth.load_credentials_from_file(
110108
credentials_file,
111-
**scopes_kwargs,
112-
quota_project_id=quota_project_id
109+
scopes=scopes,
110+
quota_project_id=quota_project_id,
111+
default_scopes=self.AUTH_SCOPES,
113112
)
114113
elif credentials is None and not self._ignore_credentials:
115-
credentials, _ = google.auth.default(**scopes_kwargs, quota_project_id=quota_project_id)
114+
credentials, _ = google.auth.default(scopes=scopes, quota_project_id=quota_project_id, default_scopes=self.AUTH_SCOPES)
116115
# Don't apply audience if the credentials file passed from user.
117116
if hasattr(credentials, "with_gdch_audience"):
118117
credentials = credentials.with_gdch_audience(api_audience if api_audience else host)

tests/integration/goldens/logging/google/cloud/logging_v2/services/config_service_v2/transports/base.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ def __init__(
8888
be used for service account credentials.
8989
"""
9090

91-
scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
92-
9391
# Save the scopes.
9492
self._scopes = scopes
9593
if not hasattr(self, "_ignore_credentials"):
@@ -103,11 +101,12 @@ def __init__(
103101
if credentials_file is not None:
104102
credentials, _ = google.auth.load_credentials_from_file(
105103
credentials_file,
106-
**scopes_kwargs,
107-
quota_project_id=quota_project_id
104+
scopes=scopes,
105+
quota_project_id=quota_project_id,
106+
default_scopes=self.AUTH_SCOPES,
108107
)
109108
elif credentials is None and not self._ignore_credentials:
110-
credentials, _ = google.auth.default(**scopes_kwargs, quota_project_id=quota_project_id)
109+
credentials, _ = google.auth.default(scopes=scopes, quota_project_id=quota_project_id, default_scopes=self.AUTH_SCOPES)
111110
# Don't apply audience if the credentials file passed from user.
112111
if hasattr(credentials, "with_gdch_audience"):
113112
credentials = credentials.with_gdch_audience(api_audience if api_audience else host)

tests/integration/goldens/logging/google/cloud/logging_v2/services/logging_service_v2/transports/base.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ def __init__(
8888
be used for service account credentials.
8989
"""
9090

91-
scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
92-
9391
# Save the scopes.
9492
self._scopes = scopes
9593
if not hasattr(self, "_ignore_credentials"):
@@ -103,11 +101,12 @@ def __init__(
103101
if credentials_file is not None:
104102
credentials, _ = google.auth.load_credentials_from_file(
105103
credentials_file,
106-
**scopes_kwargs,
107-
quota_project_id=quota_project_id
104+
scopes=scopes,
105+
quota_project_id=quota_project_id,
106+
default_scopes=self.AUTH_SCOPES,
108107
)
109108
elif credentials is None and not self._ignore_credentials:
110-
credentials, _ = google.auth.default(**scopes_kwargs, quota_project_id=quota_project_id)
109+
credentials, _ = google.auth.default(scopes=scopes, quota_project_id=quota_project_id, default_scopes=self.AUTH_SCOPES)
111110
# Don't apply audience if the credentials file passed from user.
112111
if hasattr(credentials, "with_gdch_audience"):
113112
credentials = credentials.with_gdch_audience(api_audience if api_audience else host)

tests/integration/goldens/logging/google/cloud/logging_v2/services/metrics_service_v2/transports/base.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ def __init__(
8888
be used for service account credentials.
8989
"""
9090

91-
scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
92-
9391
# Save the scopes.
9492
self._scopes = scopes
9593
if not hasattr(self, "_ignore_credentials"):
@@ -103,11 +101,12 @@ def __init__(
103101
if credentials_file is not None:
104102
credentials, _ = google.auth.load_credentials_from_file(
105103
credentials_file,
106-
**scopes_kwargs,
107-
quota_project_id=quota_project_id
104+
scopes=scopes,
105+
quota_project_id=quota_project_id,
106+
default_scopes=self.AUTH_SCOPES,
108107
)
109108
elif credentials is None and not self._ignore_credentials:
110-
credentials, _ = google.auth.default(**scopes_kwargs, quota_project_id=quota_project_id)
109+
credentials, _ = google.auth.default(scopes=scopes, quota_project_id=quota_project_id, default_scopes=self.AUTH_SCOPES)
111110
# Don't apply audience if the credentials file passed from user.
112111
if hasattr(credentials, "with_gdch_audience"):
113112
credentials = credentials.with_gdch_audience(api_audience if api_audience else host)

tests/integration/goldens/logging_internal/google/cloud/logging_v2/services/config_service_v2/transports/base.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ def __init__(
8888
be used for service account credentials.
8989
"""
9090

91-
scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
92-
9391
# Save the scopes.
9492
self._scopes = scopes
9593
if not hasattr(self, "_ignore_credentials"):
@@ -103,11 +101,12 @@ def __init__(
103101
if credentials_file is not None:
104102
credentials, _ = google.auth.load_credentials_from_file(
105103
credentials_file,
106-
**scopes_kwargs,
107-
quota_project_id=quota_project_id
104+
scopes=scopes,
105+
quota_project_id=quota_project_id,
106+
default_scopes=self.AUTH_SCOPES,
108107
)
109108
elif credentials is None and not self._ignore_credentials:
110-
credentials, _ = google.auth.default(**scopes_kwargs, quota_project_id=quota_project_id)
109+
credentials, _ = google.auth.default(scopes=scopes, quota_project_id=quota_project_id, default_scopes=self.AUTH_SCOPES)
111110
# Don't apply audience if the credentials file passed from user.
112111
if hasattr(credentials, "with_gdch_audience"):
113112
credentials = credentials.with_gdch_audience(api_audience if api_audience else host)

tests/integration/goldens/logging_internal/google/cloud/logging_v2/services/logging_service_v2/transports/base.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ def __init__(
8888
be used for service account credentials.
8989
"""
9090

91-
scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
92-
9391
# Save the scopes.
9492
self._scopes = scopes
9593
if not hasattr(self, "_ignore_credentials"):
@@ -103,11 +101,12 @@ def __init__(
103101
if credentials_file is not None:
104102
credentials, _ = google.auth.load_credentials_from_file(
105103
credentials_file,
106-
**scopes_kwargs,
107-
quota_project_id=quota_project_id
104+
scopes=scopes,
105+
quota_project_id=quota_project_id,
106+
default_scopes=self.AUTH_SCOPES,
108107
)
109108
elif credentials is None and not self._ignore_credentials:
110-
credentials, _ = google.auth.default(**scopes_kwargs, quota_project_id=quota_project_id)
109+
credentials, _ = google.auth.default(scopes=scopes, quota_project_id=quota_project_id, default_scopes=self.AUTH_SCOPES)
111110
# Don't apply audience if the credentials file passed from user.
112111
if hasattr(credentials, "with_gdch_audience"):
113112
credentials = credentials.with_gdch_audience(api_audience if api_audience else host)

tests/integration/goldens/logging_internal/google/cloud/logging_v2/services/metrics_service_v2/transports/base.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ def __init__(
8888
be used for service account credentials.
8989
"""
9090

91-
scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
92-
9391
# Save the scopes.
9492
self._scopes = scopes
9593
if not hasattr(self, "_ignore_credentials"):
@@ -103,11 +101,12 @@ def __init__(
103101
if credentials_file is not None:
104102
credentials, _ = google.auth.load_credentials_from_file(
105103
credentials_file,
106-
**scopes_kwargs,
107-
quota_project_id=quota_project_id
104+
scopes=scopes,
105+
quota_project_id=quota_project_id,
106+
default_scopes=self.AUTH_SCOPES,
108107
)
109108
elif credentials is None and not self._ignore_credentials:
110-
credentials, _ = google.auth.default(**scopes_kwargs, quota_project_id=quota_project_id)
109+
credentials, _ = google.auth.default(scopes=scopes, quota_project_id=quota_project_id, default_scopes=self.AUTH_SCOPES)
111110
# Don't apply audience if the credentials file passed from user.
112111
if hasattr(credentials, "with_gdch_audience"):
113112
credentials = credentials.with_gdch_audience(api_audience if api_audience else host)

tests/integration/goldens/redis/google/cloud/redis_v1/services/cloud_redis/transports/base.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ def __init__(
8585
be used for service account credentials.
8686
"""
8787

88-
scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
89-
9088
# Save the scopes.
9189
self._scopes = scopes
9290
if not hasattr(self, "_ignore_credentials"):
@@ -100,11 +98,12 @@ def __init__(
10098
if credentials_file is not None:
10199
credentials, _ = google.auth.load_credentials_from_file(
102100
credentials_file,
103-
**scopes_kwargs,
104-
quota_project_id=quota_project_id
101+
scopes=scopes,
102+
quota_project_id=quota_project_id,
103+
default_scopes=self.AUTH_SCOPES,
105104
)
106105
elif credentials is None and not self._ignore_credentials:
107-
credentials, _ = google.auth.default(**scopes_kwargs, quota_project_id=quota_project_id)
106+
credentials, _ = google.auth.default(scopes=scopes, quota_project_id=quota_project_id, default_scopes=self.AUTH_SCOPES)
108107
# Don't apply audience if the credentials file passed from user.
109108
if hasattr(credentials, "with_gdch_audience"):
110109
credentials = credentials.with_gdch_audience(api_audience if api_audience else host)

0 commit comments

Comments
 (0)