Skip to content

Commit 89c1b05

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 (#12286)
- [ ] 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: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXBvbGljeXNpbXVsYXRvci8uT3dsQm90LnlhbWwiLCJoIjoiNDAzNmY3ODMwNWM1YzJhYWI4MGZmOTE5NjBiM2EzZDk4M2ZmNGIwMyJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXBvbGljeXRyb3VibGVzaG9vdGVyLWlhbS8uT3dsQm90LnlhbWwiLCJoIjoiNDAzNmY3ODMwNWM1YzJhYWI4MGZmOTE5NjBiM2EzZDk4M2ZmNGIwMyJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXByaXZhdGUtY2EvLk93bEJvdC55YW1sIiwiaCI6IjQwMzZmNzgzMDVjNWMyYWFiODBmZjkxOTYwYjNhM2Q5ODNmZjRiMDMifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXByaXZhdGUtY2F0YWxvZy8uT3dsQm90LnlhbWwiLCJoIjoiNDAzNmY3ODMwNWM1YzJhYWI4MGZmOTE5NjBiM2EzZDk4M2ZmNGIwMyJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXB1YmxpYy1jYS8uT3dsQm90LnlhbWwiLCJoIjoiNDAzNmY3ODMwNWM1YzJhYWI4MGZmOTE5NjBiM2EzZDk4M2ZmNGIwMyJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJhcG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VybWFuYWdlbWVudC8uT3dsQm90LnlhbWwiLCJoIjoiNDAzNmY3ODMwNWM1YzJhYWI4MGZmOTE5NjBiM2EzZDk4M2ZmNGIwMyJ9 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Victor Chudnovsky <[email protected]> Co-authored-by: gcf-merge-on-green[bot] <60162190+gcf-merge-on-green[bot]@users.noreply.github.com>
1 parent 2451e88 commit 89c1b05

File tree

71 files changed

+300
-295
lines changed

Some content is hidden

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

71 files changed

+300
-295
lines changed

packages/google-cloud-policysimulator/tests/unit/gapic/policysimulator_v1/test_simulator.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
321321
# TODO: This is needed to cater for older versions of google-auth
322322
# Make this test unconditional once the minimum supported version of
323323
# google-auth becomes 2.23.0 or higher.
324-
google_auth_major, google_auth_minor, _ = [
325-
int(part) for part in google.auth.__version__.split(".")
324+
google_auth_major, google_auth_minor = [
325+
int(part) for part in google.auth.__version__.split(".")[0:2]
326326
]
327327
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
328328
credentials = ga_credentials.AnonymousCredentials()
@@ -340,8 +340,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
340340
#
341341
# TODO: Make this test unconditional once the minimum supported version of
342342
# google-api-core becomes 2.15.0 or higher.
343-
api_core_major, api_core_minor, _ = [
344-
int(part) for part in api_core_version.__version__.split(".")
343+
api_core_major, api_core_minor = [
344+
int(part) for part in api_core_version.__version__.split(".")[0:2]
345345
]
346346
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
347347
client = client_class(

packages/google-cloud-policytroubleshooter-iam/tests/unit/gapic/policytroubleshooter_iam_v3/test_policy_troubleshooter.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
356356
# TODO: This is needed to cater for older versions of google-auth
357357
# Make this test unconditional once the minimum supported version of
358358
# google-auth becomes 2.23.0 or higher.
359-
google_auth_major, google_auth_minor, _ = [
360-
int(part) for part in google.auth.__version__.split(".")
359+
google_auth_major, google_auth_minor = [
360+
int(part) for part in google.auth.__version__.split(".")[0:2]
361361
]
362362
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
363363
credentials = ga_credentials.AnonymousCredentials()
@@ -375,8 +375,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
375375
#
376376
# TODO: Make this test unconditional once the minimum supported version of
377377
# google-api-core becomes 2.15.0 or higher.
378-
api_core_major, api_core_minor, _ = [
379-
int(part) for part in api_core_version.__version__.split(".")
378+
api_core_major, api_core_minor = [
379+
int(part) for part in api_core_version.__version__.split(".")[0:2]
380380
]
381381
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
382382
client = client_class(

packages/google-cloud-private-ca/tests/unit/gapic/privateca_v1/test_certificate_authority_service.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
385385
# TODO: This is needed to cater for older versions of google-auth
386386
# Make this test unconditional once the minimum supported version of
387387
# google-auth becomes 2.23.0 or higher.
388-
google_auth_major, google_auth_minor, _ = [
389-
int(part) for part in google.auth.__version__.split(".")
388+
google_auth_major, google_auth_minor = [
389+
int(part) for part in google.auth.__version__.split(".")[0:2]
390390
]
391391
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
392392
credentials = ga_credentials.AnonymousCredentials()
@@ -404,8 +404,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
404404
#
405405
# TODO: Make this test unconditional once the minimum supported version of
406406
# google-api-core becomes 2.15.0 or higher.
407-
api_core_major, api_core_minor, _ = [
408-
int(part) for part in api_core_version.__version__.split(".")
407+
api_core_major, api_core_minor = [
408+
int(part) for part in api_core_version.__version__.split(".")[0:2]
409409
]
410410
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
411411
client = client_class(

packages/google-cloud-private-ca/tests/unit/gapic/privateca_v1beta1/test_certificate_authority_service.py

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

packages/google-cloud-private-catalog/tests/unit/gapic/privatecatalog_v1beta1/test_private_catalog.py

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

packages/google-cloud-public-ca/tests/unit/gapic/publicca_v1beta1/test_public_certificate_authority_service.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
372372
# TODO: This is needed to cater for older versions of google-auth
373373
# Make this test unconditional once the minimum supported version of
374374
# google-auth becomes 2.23.0 or higher.
375-
google_auth_major, google_auth_minor, _ = [
376-
int(part) for part in google.auth.__version__.split(".")
375+
google_auth_major, google_auth_minor = [
376+
int(part) for part in google.auth.__version__.split(".")[0:2]
377377
]
378378
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
379379
credentials = ga_credentials.AnonymousCredentials()
@@ -391,8 +391,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
391391
#
392392
# TODO: Make this test unconditional once the minimum supported version of
393393
# google-api-core becomes 2.15.0 or higher.
394-
api_core_major, api_core_minor, _ = [
395-
int(part) for part in api_core_version.__version__.split(".")
394+
api_core_major, api_core_minor = [
395+
int(part) for part in api_core_version.__version__.split(".")[0:2]
396396
]
397397
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
398398
client = client_class(

packages/google-cloud-rapidmigrationassessment/tests/unit/gapic/rapidmigrationassessment_v1/test_rapid_migration_assessment.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
374374
# TODO: This is needed to cater for older versions of google-auth
375375
# Make this test unconditional once the minimum supported version of
376376
# google-auth becomes 2.23.0 or higher.
377-
google_auth_major, google_auth_minor, _ = [
378-
int(part) for part in google.auth.__version__.split(".")
377+
google_auth_major, google_auth_minor = [
378+
int(part) for part in google.auth.__version__.split(".")[0:2]
379379
]
380380
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
381381
credentials = ga_credentials.AnonymousCredentials()
@@ -393,8 +393,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
393393
#
394394
# TODO: Make this test unconditional once the minimum supported version of
395395
# google-api-core becomes 2.15.0 or higher.
396-
api_core_major, api_core_minor, _ = [
397-
int(part) for part in api_core_version.__version__.split(".")
396+
api_core_major, api_core_minor = [
397+
int(part) for part in api_core_version.__version__.split(".")[0:2]
398398
]
399399
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
400400
client = client_class(

packages/google-cloud-recaptcha-enterprise/tests/unit/gapic/recaptchaenterprise_v1/test_recaptcha_enterprise_service.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
356356
# TODO: This is needed to cater for older versions of google-auth
357357
# Make this test unconditional once the minimum supported version of
358358
# google-auth becomes 2.23.0 or higher.
359-
google_auth_major, google_auth_minor, _ = [
360-
int(part) for part in google.auth.__version__.split(".")
359+
google_auth_major, google_auth_minor = [
360+
int(part) for part in google.auth.__version__.split(".")[0:2]
361361
]
362362
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
363363
credentials = ga_credentials.AnonymousCredentials()
@@ -375,8 +375,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
375375
#
376376
# TODO: Make this test unconditional once the minimum supported version of
377377
# google-api-core becomes 2.15.0 or higher.
378-
api_core_major, api_core_minor, _ = [
379-
int(part) for part in api_core_version.__version__.split(".")
378+
api_core_major, api_core_minor = [
379+
int(part) for part in api_core_version.__version__.split(".")[0:2]
380380
]
381381
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
382382
client = client_class(

packages/google-cloud-recommendations-ai/tests/unit/gapic/recommendationengine_v1beta1/test_catalog_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-recommendations-ai/tests/unit/gapic/recommendationengine_v1beta1/test_prediction_api_key_registry.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(

0 commit comments

Comments
 (0)