Skip to content

Commit 7c2f2c2

Browse files
gcf-owl-bot[bot]vchudnov-ggcf-merge-on-green[bot]
authored
fix(diregapic): [Many APIs] s/bazel/bazelisk/ in DIREGAPIC build GitHub action (#12285)
- [ ] Regenerate this pull request now. BEGIN_COMMIT_OVERRIDE fix: fix ValueError in test__validate_universe_domain END_COMMIT_OVERRIDE PiperOrigin-RevId: 604714585 Source-Link: googleapis/googleapis@e4dce13 Source-Link: googleapis/googleapis-gen@4036f78 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWxpZmUtc2NpZW5jZXMvLk93bEJvdC55YW1sIiwiaCI6IjQwMzZmNzgzMDVjNWMyYWFiODBmZjkxOTYwYjNhM2Q5ODNmZjRiMDMifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW1hbmFnZWQtaWRlbnRpdGllcy8uT3dsQm90LnlhbWwiLCJoIjoiNDAzNmY3ODMwNWM1YzJhYWI4MGZmOTE5NjBiM2EzZDk4M2ZmNGIwMyJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW1lZGlhLXRyYW5zbGF0aW9uLy5Pd2xCb3QueWFtbCIsImgiOiI0MDM2Zjc4MzA1YzVjMmFhYjgwZmY5MTk2MGIzYTNkOTgzZmY0YjAzIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW1lbWNhY2hlLy5Pd2xCb3QueWFtbCIsImgiOiI0MDM2Zjc4MzA1YzVjMmFhYjgwZmY5MTk2MGIzYTNkOTgzZmY0YjAzIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW1pZ3JhdGlvbmNlbnRlci8uT3dsQm90LnlhbWwiLCJoIjoiNDAzNmY3ODMwNWM1YzJhYWI4MGZmOTE5NjBiM2EzZDk4M2ZmNGIwMyJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW1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VkLXBvbGljeS10cm91Ymxlc2hvb3Rlci8uT3dsQm90LnlhbWwiLCJoIjoiNDAzNmY3ODMwNWM1YzJhYWI4MGZmOTE5NjBiM2EzZDk4M2ZmNGIwMyJ9 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Victor Chudnovsky <vchudnov@google.com> Co-authored-by: gcf-merge-on-green[bot] <60162190+gcf-merge-on-green[bot]@users.noreply.github.com>
1 parent 2d75d0e commit 7c2f2c2

42 files changed

Lines changed: 158 additions & 158 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/google-cloud-life-sciences/tests/unit/gapic/lifesciences_v2beta/test_workflows_service_v2_beta.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
369369
# TODO: This is needed to cater for older versions of google-auth
370370
# Make this test unconditional once the minimum supported version of
371371
# google-auth becomes 2.23.0 or higher.
372-
google_auth_major, google_auth_minor, _ = [
373-
int(part) for part in google.auth.__version__.split(".")
372+
google_auth_major, google_auth_minor = [
373+
int(part) for part in google.auth.__version__.split(".")[0:2]
374374
]
375375
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
376376
credentials = ga_credentials.AnonymousCredentials()
@@ -388,8 +388,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
388388
#
389389
# TODO: Make this test unconditional once the minimum supported version of
390390
# google-api-core becomes 2.15.0 or higher.
391-
api_core_major, api_core_minor, _ = [
392-
int(part) for part in api_core_version.__version__.split(".")
391+
api_core_major, api_core_minor = [
392+
int(part) for part in api_core_version.__version__.split(".")[0:2]
393393
]
394394
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
395395
client = client_class(

packages/google-cloud-managed-identities/tests/unit/gapic/managedidentities_v1/test_managed_identities_service.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
361361
# TODO: This is needed to cater for older versions of google-auth
362362
# Make this test unconditional once the minimum supported version of
363363
# google-auth becomes 2.23.0 or higher.
364-
google_auth_major, google_auth_minor, _ = [
365-
int(part) for part in google.auth.__version__.split(".")
364+
google_auth_major, google_auth_minor = [
365+
int(part) for part in google.auth.__version__.split(".")[0:2]
366366
]
367367
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
368368
credentials = ga_credentials.AnonymousCredentials()
@@ -380,8 +380,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
380380
#
381381
# TODO: Make this test unconditional once the minimum supported version of
382382
# google-api-core becomes 2.15.0 or higher.
383-
api_core_major, api_core_minor, _ = [
384-
int(part) for part in api_core_version.__version__.split(".")
383+
api_core_major, api_core_minor = [
384+
int(part) for part in api_core_version.__version__.split(".")[0:2]
385385
]
386386
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
387387
client = client_class(

packages/google-cloud-media-translation/tests/unit/gapic/mediatranslation_v1beta1/test_speech_translation_service.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
348348
# TODO: This is needed to cater for older versions of google-auth
349349
# Make this test unconditional once the minimum supported version of
350350
# google-auth becomes 2.23.0 or higher.
351-
google_auth_major, google_auth_minor, _ = [
352-
int(part) for part in google.auth.__version__.split(".")
351+
google_auth_major, google_auth_minor = [
352+
int(part) for part in google.auth.__version__.split(".")[0:2]
353353
]
354354
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
355355
credentials = ga_credentials.AnonymousCredentials()
@@ -367,8 +367,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
367367
#
368368
# TODO: Make this test unconditional once the minimum supported version of
369369
# google-api-core becomes 2.15.0 or higher.
370-
api_core_major, api_core_minor, _ = [
371-
int(part) for part in api_core_version.__version__.split(".")
370+
api_core_major, api_core_minor = [
371+
int(part) for part in api_core_version.__version__.split(".")[0:2]
372372
]
373373
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
374374
client = client_class(

packages/google-cloud-memcache/tests/unit/gapic/memcache_v1/test_cloud_memcache.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
346346
# TODO: This is needed to cater for older versions of google-auth
347347
# Make this test unconditional once the minimum supported version of
348348
# google-auth becomes 2.23.0 or higher.
349-
google_auth_major, google_auth_minor, _ = [
350-
int(part) for part in google.auth.__version__.split(".")
349+
google_auth_major, google_auth_minor = [
350+
int(part) for part in google.auth.__version__.split(".")[0:2]
351351
]
352352
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
353353
credentials = ga_credentials.AnonymousCredentials()
@@ -365,8 +365,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
365365
#
366366
# TODO: Make this test unconditional once the minimum supported version of
367367
# google-api-core becomes 2.15.0 or higher.
368-
api_core_major, api_core_minor, _ = [
369-
int(part) for part in api_core_version.__version__.split(".")
368+
api_core_major, api_core_minor = [
369+
int(part) for part in api_core_version.__version__.split(".")[0:2]
370370
]
371371
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
372372
client = client_class(

packages/google-cloud-memcache/tests/unit/gapic/memcache_v1beta2/test_cloud_memcache.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
346346
# TODO: This is needed to cater for older versions of google-auth
347347
# Make this test unconditional once the minimum supported version of
348348
# google-auth becomes 2.23.0 or higher.
349-
google_auth_major, google_auth_minor, _ = [
350-
int(part) for part in google.auth.__version__.split(".")
349+
google_auth_major, google_auth_minor = [
350+
int(part) for part in google.auth.__version__.split(".")[0:2]
351351
]
352352
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
353353
credentials = ga_credentials.AnonymousCredentials()
@@ -365,8 +365,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
365365
#
366366
# TODO: Make this test unconditional once the minimum supported version of
367367
# google-api-core becomes 2.15.0 or higher.
368-
api_core_major, api_core_minor, _ = [
369-
int(part) for part in api_core_version.__version__.split(".")
368+
api_core_major, api_core_minor = [
369+
int(part) for part in api_core_version.__version__.split(".")[0:2]
370370
]
371371
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
372372
client = client_class(

packages/google-cloud-migrationcenter/tests/unit/gapic/migrationcenter_v1/test_migration_center.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
349349
# TODO: This is needed to cater for older versions of google-auth
350350
# Make this test unconditional once the minimum supported version of
351351
# google-auth becomes 2.23.0 or higher.
352-
google_auth_major, google_auth_minor, _ = [
353-
int(part) for part in google.auth.__version__.split(".")
352+
google_auth_major, google_auth_minor = [
353+
int(part) for part in google.auth.__version__.split(".")[0:2]
354354
]
355355
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
356356
credentials = ga_credentials.AnonymousCredentials()
@@ -368,8 +368,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
368368
#
369369
# TODO: Make this test unconditional once the minimum supported version of
370370
# google-api-core becomes 2.15.0 or higher.
371-
api_core_major, api_core_minor, _ = [
372-
int(part) for part in api_core_version.__version__.split(".")
371+
api_core_major, api_core_minor = [
372+
int(part) for part in api_core_version.__version__.split(".")[0:2]
373373
]
374374
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
375375
client = client_class(

packages/google-cloud-monitoring-dashboards/tests/unit/gapic/monitoring_dashboard_v1/test_dashboards_service.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
360360
# TODO: This is needed to cater for older versions of google-auth
361361
# Make this test unconditional once the minimum supported version of
362362
# google-auth becomes 2.23.0 or higher.
363-
google_auth_major, google_auth_minor, _ = [
364-
int(part) for part in google.auth.__version__.split(".")
363+
google_auth_major, google_auth_minor = [
364+
int(part) for part in google.auth.__version__.split(".")[0:2]
365365
]
366366
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
367367
credentials = ga_credentials.AnonymousCredentials()
@@ -379,8 +379,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
379379
#
380380
# TODO: Make this test unconditional once the minimum supported version of
381381
# google-api-core becomes 2.15.0 or higher.
382-
api_core_major, api_core_minor, _ = [
383-
int(part) for part in api_core_version.__version__.split(".")
382+
api_core_major, api_core_minor = [
383+
int(part) for part in api_core_version.__version__.split(".")[0:2]
384384
]
385385
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
386386
client = client_class(

packages/google-cloud-monitoring-metrics-scopes/tests/unit/gapic/monitoring_metrics_scope_v1/test_metrics_scopes.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
334334
# TODO: This is needed to cater for older versions of google-auth
335335
# Make this test unconditional once the minimum supported version of
336336
# google-auth becomes 2.23.0 or higher.
337-
google_auth_major, google_auth_minor, _ = [
338-
int(part) for part in google.auth.__version__.split(".")
337+
google_auth_major, google_auth_minor = [
338+
int(part) for part in google.auth.__version__.split(".")[0:2]
339339
]
340340
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
341341
credentials = ga_credentials.AnonymousCredentials()
@@ -353,8 +353,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
353353
#
354354
# TODO: Make this test unconditional once the minimum supported version of
355355
# google-api-core becomes 2.15.0 or higher.
356-
api_core_major, api_core_minor, _ = [
357-
int(part) for part in api_core_version.__version__.split(".")
356+
api_core_major, api_core_minor = [
357+
int(part) for part in api_core_version.__version__.split(".")[0:2]
358358
]
359359
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
360360
client = client_class(

packages/google-cloud-monitoring/tests/unit/gapic/monitoring_v3/test_alert_policy_service.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
351351
# TODO: This is needed to cater for older versions of google-auth
352352
# Make this test unconditional once the minimum supported version of
353353
# google-auth becomes 2.23.0 or higher.
354-
google_auth_major, google_auth_minor, _ = [
355-
int(part) for part in google.auth.__version__.split(".")
354+
google_auth_major, google_auth_minor = [
355+
int(part) for part in google.auth.__version__.split(".")[0:2]
356356
]
357357
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
358358
credentials = ga_credentials.AnonymousCredentials()
@@ -370,8 +370,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
370370
#
371371
# TODO: Make this test unconditional once the minimum supported version of
372372
# google-api-core becomes 2.15.0 or higher.
373-
api_core_major, api_core_minor, _ = [
374-
int(part) for part in api_core_version.__version__.split(".")
373+
api_core_major, api_core_minor = [
374+
int(part) for part in api_core_version.__version__.split(".")[0:2]
375375
]
376376
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
377377
client = client_class(

packages/google-cloud-monitoring/tests/unit/gapic/monitoring_v3/test_group_service.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
317317
# TODO: This is needed to cater for older versions of google-auth
318318
# Make this test unconditional once the minimum supported version of
319319
# google-auth becomes 2.23.0 or higher.
320-
google_auth_major, google_auth_minor, _ = [
321-
int(part) for part in google.auth.__version__.split(".")
320+
google_auth_major, google_auth_minor = [
321+
int(part) for part in google.auth.__version__.split(".")[0:2]
322322
]
323323
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
324324
credentials = ga_credentials.AnonymousCredentials()
@@ -336,8 +336,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
336336
#
337337
# TODO: Make this test unconditional once the minimum supported version of
338338
# google-api-core becomes 2.15.0 or higher.
339-
api_core_major, api_core_minor, _ = [
340-
int(part) for part in api_core_version.__version__.split(".")
339+
api_core_major, api_core_minor = [
340+
int(part) for part in api_core_version.__version__.split(".")[0:2]
341341
]
342342
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
343343
client = client_class(

0 commit comments

Comments
 (0)