Skip to content

Commit ba5f96a

Browse files
committed
add and update tests for v4.199.0 release
1 parent f21a0f9 commit ba5f96a

File tree

4 files changed

+3
-57
lines changed

4 files changed

+3
-57
lines changed

tests/integration/linodes/test_interfaces.py

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -17,58 +17,6 @@
1717
linode_label = DEFAULT_LABEL + timestamp
1818

1919

20-
@pytest.mark.skip("interface argument deprecated")
21-
@pytest.fixture
22-
def linode_with_vpc_interface(linode_cloud_firewall):
23-
vpc_json = create_vpc_w_subnet()
24-
25-
vpc_region = vpc_json["region"]
26-
vpc_id = str(vpc_json["id"])
27-
subnet_id = str(vpc_json["subnets"][0]["id"])
28-
29-
linode_json = json.loads(
30-
exec_test_command(
31-
BASE_CMD
32-
+ [
33-
"create",
34-
"--type",
35-
"g6-nanode-1",
36-
"--region",
37-
vpc_region,
38-
"--image",
39-
DEFAULT_TEST_IMAGE,
40-
"--root_pass",
41-
DEFAULT_RANDOM_PASS,
42-
"--firewall_id",
43-
linode_cloud_firewall,
44-
"--interfaces.purpose",
45-
"vpc",
46-
"--interfaces.primary",
47-
"true",
48-
"--interfaces.subnet_id",
49-
subnet_id,
50-
"--interfaces.ipv4.nat_1_1",
51-
"any",
52-
"--interfaces.ipv4.vpc",
53-
"10.0.0.5",
54-
"--interfaces.ip_ranges",
55-
json.dumps(["10.0.0.6/32"]),
56-
"--interfaces.purpose",
57-
"public",
58-
"--json",
59-
"--suppress-warnings",
60-
]
61-
)
62-
.stdout.decode()
63-
.rstrip()
64-
)[0]
65-
66-
yield linode_json, vpc_json
67-
68-
delete_target_id(target="linodes", id=str(linode_json["id"]))
69-
delete_target_id(target="vpcs", id=vpc_id)
70-
71-
7220
@pytest.fixture
7321
def linode_with_vpc_interface_as_json(linode_cloud_firewall):
7422
vpc_json = create_vpc_w_subnet()
@@ -151,9 +99,5 @@ def assert_interface_configuration(
15199
assert public_interface["purpose"] == "public"
152100

153101

154-
def test_with_vpc_interface(linode_with_vpc_interface):
155-
assert_interface_configuration(*linode_with_vpc_interface)
156-
157-
158102
def test_with_vpc_interface_as_json(linode_with_vpc_interface_as_json):
159103
assert_interface_configuration(*linode_with_vpc_interface_as_json)

tests/integration/linodes/test_linode_interfaces.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ def test_interfaces_list(linode_interface_vlan):
417417
assert iface["default_route"]["ipv6"] is False
418418

419419

420+
@pytest.mark.flaky(reruns=3, reruns_delay=2)
420421
def test_interfaces_upgrade(linode_interface_legacy):
421422
linode_id = linode_interface_legacy
422423

tests/integration/nodebalancers/test_node_balancers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def create_linode_to_add(linode_cloud_firewall):
169169

170170
def test_fail_to_create_nodebalancer_without_region():
171171
result = exec_failing_test_command(
172-
BASE_CMD + ["create", "--text", "--no-headers"],
172+
BASE_CMD + ["create", "--text", "--no-headers", "--no-defaults"],
173173
ExitCodes.REQUEST_FAILED,
174174
).stderr.decode()
175175
assert "Request failed: 400" in result

tests/integration/volumes/test_volumes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def test_fail_to_create_volume_without_region():
8484
"10",
8585
"--text",
8686
"--no-headers",
87+
"--no-defaults",
8788
],
8889
ExitCodes.REQUEST_FAILED,
8990
).stderr.decode()

0 commit comments

Comments
 (0)