Skip to content

Commit 62cf934

Browse files
fix: [Many APIs] fix ValueError in test__validate_universe_domain (#12281)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 604699565 Source-Link: https://togithub.com/googleapis/googleapis/commit/cd3eabf5968bbc91685e2eae8efb099e4d55bb5c Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/01f69ba7a13d59e6f45e243359b91a6e896221f8 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJleW9uZGNvcnAtYXBwY29ubmVjdGlvbnMvLk93bEJvdC55YW1sIiwiaCI6IjAxZjY5YmE3YTEzZDU5ZTZmNDVlMjQzMzU5YjkxYTZlODk2MjIxZjgifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJleW9uZGNvcnAtYXBwY29ubmVjdG9ycy8uT3dsQm90LnlhbWwiLCJoIjoiMDFmNjliYTdhMTNkNTllNmY0NWUyNDMzNTliOTFhNmU4OTYyMjFmOCJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJleW9uZGNvcnAtYXBwZ2F0ZXdheXMvLk93bEJvdC55YW1sIiwiaCI6IjAxZjY5YmE3YTEzZDU5ZTZmNDVlMjQzMzU5YjkxYTZlODk2MjIxZjgifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJleW9uZGNvcnAtY2xpZW50Y29ubmVjdG9yc2VydmljZXMvLk93bEJvdC55YW1sIiwiaCI6IjAxZjY5YmE3YTEzZDU5ZTZmNDVlMjQzMzU5YjkxYTZlODk2MjIxZjgifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJleW9uZGNvcnAtY2xpZW50Z2F0ZXdheXMvLk93bEJvdC55YW1sIiwiaCI6IjAxZjY5YmE3YTEzZDU5ZTZmNDVlMjQzMzU5YjkxYTZlODk2MjIxZjgifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29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EzZDU5ZTZmNDVlMjQzMzU5YjkxYTZlODk2MjIxZjgifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNsb3VkcXVvdGFzLy5Pd2xCb3QueWFtbCIsImgiOiIwMWY2OWJhN2ExM2Q1OWU2ZjQ1ZTI0MzM1OWI5MWE2ZTg5NjIyMWY4In0=
1 parent f20b41a commit 62cf934

File tree

30 files changed

+120
-120
lines changed

30 files changed

+120
-120
lines changed

packages/google-cloud-beyondcorp-appconnections/tests/unit/gapic/beyondcorp_appconnections_v1/test_app_connections_service.py

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

packages/google-cloud-beyondcorp-appconnectors/tests/unit/gapic/beyondcorp_appconnectors_v1/test_app_connectors_service.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
378378
# TODO: This is needed to cater for older versions of google-auth
379379
# Make this test unconditional once the minimum supported version of
380380
# google-auth becomes 2.23.0 or higher.
381-
google_auth_major, google_auth_minor, _ = [
382-
int(part) for part in google.auth.__version__.split(".")
381+
google_auth_major, google_auth_minor = [
382+
int(part) for part in google.auth.__version__.split(".")[0:2]
383383
]
384384
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
385385
credentials = ga_credentials.AnonymousCredentials()
@@ -397,8 +397,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
397397
#
398398
# TODO: Make this test unconditional once the minimum supported version of
399399
# google-api-core becomes 2.15.0 or higher.
400-
api_core_major, api_core_minor, _ = [
401-
int(part) for part in api_core_version.__version__.split(".")
400+
api_core_major, api_core_minor = [
401+
int(part) for part in api_core_version.__version__.split(".")[0:2]
402402
]
403403
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
404404
client = client_class(

packages/google-cloud-beyondcorp-appgateways/tests/unit/gapic/beyondcorp_appgateways_v1/test_app_gateways_service.py

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

packages/google-cloud-beyondcorp-clientconnectorservices/tests/unit/gapic/beyondcorp_clientconnectorservices_v1/test_client_connector_services_service.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
392392
# TODO: This is needed to cater for older versions of google-auth
393393
# Make this test unconditional once the minimum supported version of
394394
# google-auth becomes 2.23.0 or higher.
395-
google_auth_major, google_auth_minor, _ = [
396-
int(part) for part in google.auth.__version__.split(".")
395+
google_auth_major, google_auth_minor = [
396+
int(part) for part in google.auth.__version__.split(".")[0:2]
397397
]
398398
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
399399
credentials = ga_credentials.AnonymousCredentials()
@@ -411,8 +411,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
411411
#
412412
# TODO: Make this test unconditional once the minimum supported version of
413413
# google-api-core becomes 2.15.0 or higher.
414-
api_core_major, api_core_minor, _ = [
415-
int(part) for part in api_core_version.__version__.split(".")
414+
api_core_major, api_core_minor = [
415+
int(part) for part in api_core_version.__version__.split(".")[0:2]
416416
]
417417
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
418418
client = client_class(

packages/google-cloud-beyondcorp-clientgateways/tests/unit/gapic/beyondcorp_clientgateways_v1/test_client_gateways_service.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-bigquery-analyticshub/tests/unit/gapic/bigquery_analyticshub_v1/test_analytics_hub_service.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
364364
# TODO: This is needed to cater for older versions of google-auth
365365
# Make this test unconditional once the minimum supported version of
366366
# google-auth becomes 2.23.0 or higher.
367-
google_auth_major, google_auth_minor, _ = [
368-
int(part) for part in google.auth.__version__.split(".")
367+
google_auth_major, google_auth_minor = [
368+
int(part) for part in google.auth.__version__.split(".")[0:2]
369369
]
370370
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
371371
credentials = ga_credentials.AnonymousCredentials()
@@ -383,8 +383,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
383383
#
384384
# TODO: Make this test unconditional once the minimum supported version of
385385
# google-api-core becomes 2.15.0 or higher.
386-
api_core_major, api_core_minor, _ = [
387-
int(part) for part in api_core_version.__version__.split(".")
386+
api_core_major, api_core_minor = [
387+
int(part) for part in api_core_version.__version__.split(".")[0:2]
388388
]
389389
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
390390
client = client_class(

packages/google-cloud-bigquery-biglake/tests/unit/gapic/bigquery_biglake_v1/test_metastore_service.py

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

packages/google-cloud-bigquery-biglake/tests/unit/gapic/bigquery_biglake_v1alpha1/test_metastore_service.py

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

packages/google-cloud-bigquery-connection/tests/unit/gapic/bigquery_connection_v1/test_connection_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-bigquery-data-exchange/tests/unit/gapic/bigquery_data_exchange_v1beta1/test_analytics_hub_service.py

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

0 commit comments

Comments
 (0)