Skip to content

Commit b985096

Browse files
fix: [Many APIs] fix ValueError in test__validate_universe_domain (#12282)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 604699565 Source-Link: googleapis/googleapis@cd3eabf Source-Link: googleapis/googleapis-gen@01f69ba Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbW1lcmNlLWNvbnN1bWVyLXByb2N1cmVtZW50Ly5Pd2xCb3QueWFtbCIsImgiOiIwMWY2OWJhN2ExM2Q1OWU2ZjQ1ZTI0MzM1OWI5MWE2ZTg5NjIyMWY4In0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbW1vbi8uT3dsQm90LnlhbWwiLCJoIjoiMDFmNjliYTdhMTNkNTllNmY0NWUyNDMzNTliOTFhNmU4OTYyMjFmOCJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbXB1dGUvLk93bEJvdC55YW1sIiwiaCI6IjAxZjY5YmE3YTEzZDU5ZTZmNDVlMjQzMzU5YjkxYTZlODk2MjIxZjgifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbmZpZGVudGlhbGNvbXB1dGluZy8uT3dsQm90LnlhbWwiLCJoIjoiMDFmNjliYTdhMTNkNTllNmY0NWUyNDMzNTliOTFhNmU4OTYyMjFmOCJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbmZpZy8uT3dsQm90LnlhbWwiLCJoIjoiMDFmNjliYTdhMTNkNTllNmY0NWUyNDMzNTliOTFhNmU4OTYyMjFmOCJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbnRhY3QtY2VudGVyLWluc2lnaHRzLy5Pd2xCb3QueWFtbCIsImgiOiIwMWY2OWJhN2ExM2Q1OWU2ZjQ1ZTI0MzM1OWI5MWE2ZTg5NjIyMWY4In0= Copy-Tag: eyJw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
1 parent 89c1b05 commit b985096

File tree

190 files changed

+753
-754
lines changed

Some content is hidden

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

190 files changed

+753
-754
lines changed

packages/google-cloud-commerce-consumer-procurement/tests/unit/gapic/commerce_consumer_procurement_v1/test_consumer_procurement_service.py

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

packages/google-cloud-commerce-consumer-procurement/tests/unit/gapic/commerce_consumer_procurement_v1alpha1/test_consumer_procurement_service.py

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

packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_accelerator_types.py

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

packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_addresses.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
308308
# TODO: This is needed to cater for older versions of google-auth
309309
# Make this test unconditional once the minimum supported version of
310310
# google-auth becomes 2.23.0 or higher.
311-
google_auth_major, google_auth_minor, _ = [
312-
int(part) for part in google.auth.__version__.split(".")
311+
google_auth_major, google_auth_minor = [
312+
int(part) for part in google.auth.__version__.split(".")[0:2]
313313
]
314314
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
315315
credentials = ga_credentials.AnonymousCredentials()
@@ -327,8 +327,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
327327
#
328328
# TODO: Make this test unconditional once the minimum supported version of
329329
# google-api-core becomes 2.15.0 or higher.
330-
api_core_major, api_core_minor, _ = [
331-
int(part) for part in api_core_version.__version__.split(".")
330+
api_core_major, api_core_minor = [
331+
int(part) for part in api_core_version.__version__.split(".")[0:2]
332332
]
333333
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
334334
client = client_class(

packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_autoscalers.py

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

packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_backend_buckets.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-compute/tests/unit/gapic/compute_v1/test_backend_services.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-compute/tests/unit/gapic/compute_v1/test_disk_types.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
301301
# TODO: This is needed to cater for older versions of google-auth
302302
# Make this test unconditional once the minimum supported version of
303303
# google-auth becomes 2.23.0 or higher.
304-
google_auth_major, google_auth_minor, _ = [
305-
int(part) for part in google.auth.__version__.split(".")
304+
google_auth_major, google_auth_minor = [
305+
int(part) for part in google.auth.__version__.split(".")[0:2]
306306
]
307307
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
308308
credentials = ga_credentials.AnonymousCredentials()
@@ -320,8 +320,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
320320
#
321321
# TODO: Make this test unconditional once the minimum supported version of
322322
# google-api-core becomes 2.15.0 or higher.
323-
api_core_major, api_core_minor, _ = [
324-
int(part) for part in api_core_version.__version__.split(".")
323+
api_core_major, api_core_minor = [
324+
int(part) for part in api_core_version.__version__.split(".")[0:2]
325325
]
326326
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
327327
client = client_class(

packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_disks.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
289289
# TODO: This is needed to cater for older versions of google-auth
290290
# Make this test unconditional once the minimum supported version of
291291
# google-auth becomes 2.23.0 or higher.
292-
google_auth_major, google_auth_minor, _ = [
293-
int(part) for part in google.auth.__version__.split(".")
292+
google_auth_major, google_auth_minor = [
293+
int(part) for part in google.auth.__version__.split(".")[0:2]
294294
]
295295
if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
296296
credentials = ga_credentials.AnonymousCredentials()
@@ -308,8 +308,8 @@ def test__validate_universe_domain(client_class, transport_class, transport_name
308308
#
309309
# TODO: Make this test unconditional once the minimum supported version of
310310
# google-api-core becomes 2.15.0 or higher.
311-
api_core_major, api_core_minor, _ = [
312-
int(part) for part in api_core_version.__version__.split(".")
311+
api_core_major, api_core_minor = [
312+
int(part) for part in api_core_version.__version__.split(".")[0:2]
313313
]
314314
if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
315315
client = client_class(

packages/google-cloud-compute/tests/unit/gapic/compute_v1/test_external_vpn_gateways.py

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

0 commit comments

Comments
 (0)