10000 Moving tests to regions with higher IP quota (#9109) · apilaskowski/python-docs-samples@d302dae · GitHub
[go: up one dir, main page]

Skip to content

Commit d302dae

Browse files
rsamborskidandhleekweinmeister
authored
Moving tests to regions with higher IP quota (GoogleCloudPlatform#9109)
* Moving tests to regions with higher IP quota * Move back to europe-north1-a due to permissions --------- Co-authored-by: Dan Lee <71398022+dandhlee@users.noreply.github.com> Co-authored-by: Karl Weinmeister <11586922+kweinmeister@users.noreply.github.com>
1 parent 333e4c3 commit d302dae

15 files changed

+20
-20
lines changed

compute/api/create_instance_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ def test_main(capsys):
2828
main(
2929
PROJECT,
3030
BUCKET,
31-
'europe-north1-b',
31+
'europe-west1-b',
3232
instance_name,
3333
wait=False)
3434

3535
out, _ = capsys.readouterr()
3636

3737
assert "Instances in project" in out
38-
assert "zone europe-north1-b" in out
38+
assert "zone europe-west1-b" in out
3939
assert instance_name in out
4040
assert "Deleting instance" in out

compute/client_library/snippets/tests/test_custom_hostnames.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from ..instances.delete import delete_instance
2323

2424
PROJECT = google.auth.default()[1]
25-
INSTANCE_ZONE = "europe-north1-c"
25+
INSTANCE_ZONE = "europe-west1-c"
2626

2727

2828
@pytest.fixture

compute/client_library/snippets/tests/test_custom_types.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,17 +187,17 @@ def test_from_str_creation():
187187
assert cmt.core_count == 2
188188

189189
cmt = CustomMachineType.from_str(
190-
"zones/europe-central2-b/machineTypes/custom-2-2048"
190+
"zones/europe-west2-b/machineTypes/custom-2-2048"
191191
)
192-
assert cmt.zone == "europe-central2-b"
192+
assert cmt.zone == "europe-west2-b"
193193
assert cmt.memory_mb == 2048
194194
assert cmt.extra_memory_used is False
195195
assert cmt.cpu_series is CustomMachineType.CPUSeries.N1
196196
assert cmt.core_count == 2
197197

198198
try:
199199
CustomMachineType.from_str(
200-
"zones/europe-central2-b/machineTypes/n8-custom-2-1024"
200+
"zones/europe-west2-b/machineTypes/n8-custom-2-1024"
201201
)
202202
except RuntimeError as err:
203203
assert err.args[0] == "Unknown CPU series."

compute/client_library/snippets/tests/test_delete_protection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from ..instances.delete_protection.set import set_delete_protection
2323

2424
PROJECT = google.auth.default()[1]
25-
INSTANCE_ZONE = "europe-central2-a"
25+
INSTANCE_ZONE = "europe-west2-a"
2626

2727

2828
@pytest.fixture

compute/client_library/snippets/tests/test_disks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
from ..snapshots.delete import delete_snapshot
3333

3434
PROJECT = google.auth.default()[1]
35-
ZONE = 'europe-north1-c'
36-
REGION = 'europe-central2'
35+
ZONE = 'europe-west1-c'
36+
REGION = 'europe-west2'
3737
KMS_KEYRING_NAME = 'compute-test-keyring'
3838
KMS_KEY_NAME = 'compute-test-key'
3939

compute/client_library/snippets/tests/test_images.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
from ..snapshots.delete import delete_snapshot
3232

3333
PROJECT = google.auth.default()[1]
34-
ZONE = 'europe-central2-c'
34+
ZONE = 'europe-west2-c'
3535

3636

3737
@pytest.fixture

compute/client_library/ F438 snippets/tests/test_instance_from_template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
)
2727

2828
PROJECT = google.auth.default()[1]
29-
INSTANCE_ZONE = "europe-north1-c"
29+
INSTANCE_ZONE = "europe-west1-c"
3030

3131

3232
@pytest.fixture

compute/client_library/snippets/tests/test_instance_start_stop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
PROJECT = google.auth.default()[1]
3333

34-
INSTANCE_ZONE = "europe-central2-b"
34+
INSTANCE_ZONE = "europe-west2-b"
3535

3636
KEY = "".join(random.sample(string.ascii_letters, 32))
3737
KEY_B64 = base64.b64encode(

compute/client_library/snippets/tests/test_instance_suspend_resume.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
PROJECT = google.auth.default()[1]
2929

30-
INSTANCE_ZONE = "europe-central2-b"
30+
INSTANCE_ZONE = "europe-west2-b"
3131

3232

3333
def _get_status(instance: compute_v1.Instance) -> compute_v1.Instance.Status:

compute/client_library/snippets/tests/test_preemptible.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from ..instances.preemptible.preemption_history import list_zone_operations
2323

2424
PROJECT = google.auth.default()[1]
25-
INSTANCE_ZONE = "europe-central2-c"
25+
INSTANCE_ZONE = "europe-west2-c"
2626

2727

2828
@pytest.fixture

0 commit comments

Comments
 (0)
0