|
15 | 15 | BASE_CMD = ["linode-cli", "vpcs"] |
16 | 16 |
|
17 | 17 |
|
| 18 | +# TODO: Remove this variable and @pytest.mark.skipif once VPC Dual Stack is ready to ship |
| 19 | +disable_vpc_dual_stack_tests = True |
| 20 | + |
| 21 | + |
18 | 22 | def test_list_vpcs(test_vpc_wo_subnet): |
19 | 23 | vpc_id = test_vpc_wo_subnet |
20 | 24 | res = exec_test_command(BASE_CMDS["vpcs"] + ["ls", "--text"]) |
@@ -224,6 +228,9 @@ def test_fails_to_update_vpc_subenet_w_invalid_label(test_vpc_w_subnet): |
224 | 228 | assert "Label must include only ASCII" in res |
225 | 229 |
|
226 | 230 |
|
| 231 | +@pytest.mark.skipif( |
| 232 | + disable_vpc_dual_stack_tests, reason="Dual-stack tests disabled" |
| 233 | +) |
227 | 234 | def test_create_vpc_with_ipv6_auto(): |
228 | 235 | region = get_random_region_with_caps(required_capabilities=["VPCs"]) |
229 | 236 | label = get_random_text(5) + "-vpc" |
@@ -254,6 +261,9 @@ def test_create_vpc_with_ipv6_auto(): |
254 | 261 |
|
255 | 262 |
|
256 | 263 | @pytest.mark.parametrize("prefix_len", ["52"]) |
| 264 | +@pytest.mark.skipif( |
| 265 | + disable_vpc_dual_stack_tests, reason="Dual-stack tests disabled" |
| 266 | +) |
257 | 267 | def test_create_vpc_with_custom_ipv6_prefix_length(prefix_len): |
258 | 268 | region = get_random_region_with_caps(required_capabilities=["VPCs"]) |
259 | 269 | label = get_random_text(5) + f"-vpc{prefix_len}" |
@@ -281,6 +291,9 @@ def test_create_vpc_with_custom_ipv6_prefix_length(prefix_len): |
281 | 291 | assert ipv6_range.endswith(f"/{prefix_len}") |
282 | 292 |
|
283 | 293 |
|
| 294 | +@pytest.mark.skipif( |
| 295 | + disable_vpc_dual_stack_tests, reason="Dual-stack tests disabled" |
| 296 | +) |
284 | 297 | def test_create_subnet_with_ipv6_auto(test_vpc_wo_subnet): |
285 | 298 | vpc_id = test_vpc_wo_subnet |
286 | 299 | subnet_label = get_random_text(5) + "-ipv6subnet" |
@@ -317,6 +330,9 @@ def test_create_subnet_with_ipv6_auto(test_vpc_wo_subnet): |
317 | 330 | assert "/" in ipv6_range, f"Unexpected IPv6 CIDR format: {ipv6_range}" |
318 | 331 |
|
319 | 332 |
|
| 333 | +@pytest.mark.skipif( |
| 334 | + disable_vpc_dual_stack_tests, reason="Dual-stack tests disabled" |
| 335 | +) |
320 | 336 | def test_fails_to_create_vpc_with_invalid_ipv6_range(): |
321 | 337 | region = get_random_region_with_caps(required_capabilities=["VPCs"]) |
322 | 338 | label = get_random_text(5) + "-invalidvpc" |
@@ -352,6 +368,9 @@ def test_list_vpc_ip_address(): |
352 | 368 | assert header in lines[0] |
353 | 369 |
|
354 | 370 |
|
| 371 | +@pytest.mark.skipif( |
| 372 | + disable_vpc_dual_stack_tests, reason="Dual-stack tests disabled" |
| 373 | +) |
355 | 374 | def test_list_vpc_ipv6s_address(): |
356 | 375 |
|
357 | 376 | res = exec_test_command( |
|
0 commit comments