8000 tests: remove int64 field test by georgiyekkert · Pull Request #177 · googleapis/python-compute · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Dec 31, 2023. It is now read-only.

tests: remove int64 field test #177

Merged
merged 2 commits into from
Jan 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions tests/system/test_smoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,10 @@
import google.api_core.exceptions

from google.cloud.compute_v1.services.firewalls.client import FirewallsClient
from google.cloud.compute_v1.services.images.client import ImagesClient
from google.cloud.compute_v1.services.instances.client import InstancesClient
from google.cloud.compute_v1.types import (
Allowed,
Firewall,
Image,
InsertImageRequest,
InsertInstanceRequest,
Instance,
AttachedDisk,
Expand Down Expand Up @@ -195,32 +192,6 @@ def insert_instance(self):
self.instances.append(self.name)


class TestComputeImages(TestBase):
def setUp(self) -> None:
super().setUp()

def test_int64(self):
# we want to test a field with format:int64
name = self.get_unique_name("image")
license_codes = [5543610867827062957]
image = Image(
name=name,
license_codes=license_codes,
source_image="projects/debian-cloud/global/images/debian-10-buster-v20210721",
)
images_client = ImagesClient(transport="rest")
request = InsertImageRequest(project=self.DEFAULT_PROJECT, image_resource=image)
op = images_client.insert_unary(request)
try:
self.wait_for_global_operation(op.name)

fetched = images_client.get(project=self.DEFAULT_PROJECT, image=name)
self.assertEqual(fetched.license_codes, license_codes)
self.assertEqual(fetched.name, name)
finally:
images_client.delete_unary(project=self.DEFAULT_PROJECT, image=name)


class TestComputeFirewalls(TestBase):
def setUp(self):
super().setUp()
Expand Down
0