Skip to content

Commit f3974d4

Browse files
fix: fix ValueError in test__validate_universe_domain (#12288)
BEGIN_COMMIT_OVERRIDE fix: fix ValueError in test__validate_universe_domain END_COMMIT_OVERRIDE - [ ] Regenerate this pull request now. PiperOrigin-RevId: 604714585 Source-Link: googleapis/googleapis@e4dce13 Source-Link: googleapis/googleapis-gen@4036f78 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXZtLW1pZ3JhdGlvbi8uT3dsQm90LnlhbWwiLCJoIjoiNDAzNmY3ODMwNWM1YzJhYWI4MGZmOTE5NjBiM2EzZDk4M2ZmNGIwMyJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXZtd2FyZWVuZ2luZS8uT3dsQm90LnlhbWwiLCJoIjoiNDAzNmY3ODMwNWM1YzJhYWI4MGZmOTE5NjBiM2EzZDk4M2ZmNGIwMyJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXZwYy1hY2Nlc3MvLk93bEJvdC55YW1sIiwiaCI6IjQwMzZmNzgzMDVjNWMyYWFiODBmZjkxOTYwYjNhM2Q5ODNmZjRiMDMifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXdlYnJpc2svLk93bEJvdC55YW1sIiwiaCI6IjQwMzZmNzgzMDVjNWMyYWFiODBmZjkxOTYwYjNhM2Q5ODNmZjRiMDMifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXdlYnNlY3VyaXR5c2Nhbm5lci8uT3dsQm90LnlhbWwiLCJoIjoiNDAzNmY3ODMwNWM1YzJhYWI4MGZmOTE5NjBiM2EzZDk4M2ZmNGIwMyJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXdvcmtmbG93cy8uT3dsQm90LnlhbWwiLCJoIjoiNDAzNmY3ODMwNWM1YzJhYWI4MGZmOTE5NjBiM2EzZDk4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yJwIjoicGFja2FnZXMvZ29vZ2xlLW1hcHMtcm91dGluZy8uT3dsQm90LnlhbWwiLCJoIjoiNDAzNmY3ODMwNWM1YzJhYWI4MGZmOTE5NjBiM2EzZDk4M2ZmNGIwMyJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXNob3BwaW5nLWNzcy8uT3dsQm90LnlhbWwiLCJoIjoiNDAzNmY3ODMwNWM1YzJhYWI4MGZmOTE5NjBiM2EzZDk4M2ZmNGIwMyJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXNob3BwaW5nLW1lcmNoYW50LWludmVudG9yaWVzLy5Pd2xCb3QueWFtbCIsImgiOiI0MDM2Zjc4MzA1YzVjMmFhYjgwZmY5MTk2MGIzYTNkOTgzZmY0YjAzIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXNob3BwaW5nLW1lcmNoYW50LXJlcG9ydHMvLk93bEJvdC55YW1sIiwiaCI6IjQwMzZmNzgzMDVjNWMyYWFiODBmZjkxOTYwYjNhM2Q5ODNmZjRiMDMifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXNob3BwaW5nLXR5cGUvLk93bEJvdC55YW1sIiwiaCI6IjQwMzZmNzgzMDVjNWMyYWFiODBmZjkxOTYwYjNhM2Q5ODNmZjRiMDMifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ3JhZmVhcy8uT3dsQm90LnlhbWwiLCJoIjoiNDAzNmY3ODMwNWM1YzJhYWI4MGZmOTE5NjBiM2EzZDk4M2ZmNGIwMyJ9 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent dd749df commit f3974d4

File tree

103 files changed

+192
-225
lines changed

Some content is hidden

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

103 files changed

+192
-225
lines changed

‎packages/google-cloud-vm-migration/google/cloud/vmmigration/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "1.8.1" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

‎packages/google-cloud-vm-migration/google/cloud/vmmigration_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "1.8.1" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

‎packages/google-cloud-vm-migration/samples/generated_samples/snippet_metadata_google.cloud.vmmigration.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-vm-migration",
11-
"version": "1.8.1"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

‎packages/google-cloud-vm-migration/tests/unit/gapic/vmmigration_v1/test_vm_migration.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-vmwareengine/google/cloud/vmwareengine/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "1.4.1" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

‎packages/google-cloud-vmwareengine/google/cloud/vmwareengine_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "1.4.1" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

‎packages/google-cloud-vmwareengine/samples/generated_samples/snippet_metadata_google.cloud.vmwareengine.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-vmwareengine",
11-
"version": "1.4.1"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

‎packages/google-cloud-vmwareengine/tests/unit/gapic/vmwareengine_v1/test_vmware_engine.py

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

‎packages/google-cloud-vpc-access/google/cloud/vpcaccess/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "1.10.1" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

‎packages/google-cloud-vpc-access/google/cloud/vpcaccess_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "1.10.1" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

0 commit comments

Comments
 (0)