|
9 | 9 |
|
10 | 10 | import pytest |
11 | 11 |
|
12 | | -from linode_api4 import VPCIPAddress |
13 | 12 | from linode_api4.errors import ApiError |
14 | 13 | from linode_api4.objects import ( |
15 | 14 | Config, |
@@ -181,7 +180,7 @@ def create_linode_for_long_running_tests(test_linode_client, e2e_test_firewall): |
181 | 180 | def linode_with_disk_encryption(test_linode_client, request): |
182 | 181 | client = test_linode_client |
183 | 182 |
|
184 | | - target_region = get_region(client, {"Disk Encryption"}) |
| 183 | + target_region = get_region(client, {"LA Disk Encryption"}) |
185 | 184 | label = get_test_label(length=8) |
186 | 185 |
|
187 | 186 | disk_encryption = request.param |
@@ -236,7 +235,7 @@ def test_linode_transfer(test_linode_client, linode_with_volume_firewall): |
236 | 235 | def test_linode_rebuild(test_linode_client): |
237 | 236 | client = test_linode_client |
238 | 237 |
|
239 | | - region = get_region(client, {"Disk Encryption"}) |
| 238 | + region = get_region(client, {"LA Disk Encryption"}) |
240 | 239 |
|
241 | 240 | label = get_test_label() + "_rebuild" |
242 | 241 |
|
@@ -535,6 +534,7 @@ def test_linode_create_disk(test_linode_client, linode_for_disk_tests): |
535 | 534 | assert disk.linode_id == linode.id |
536 | 535 |
|
537 | 536 |
|
| 537 | +@pytest.mark.flaky(reruns=3, reruns_delay=2) |
538 | 538 | def test_linode_instance_password(create_linode_for_pass_reset): |
539 | 539 | linode = create_linode_for_pass_reset[0] |
540 | 540 | password = create_linode_for_pass_reset[1] |
@@ -775,10 +775,10 @@ def test_create_vpc( |
775 | 775 | assert vpc_range_ip.address_range == "10.0.0.5/32" |
776 | 776 | assert not vpc_range_ip.active |
777 | 777 |
|
| 778 | + # TODO:: Add `VPCIPAddress.filters.linode_id == linode.id` filter back |
| 779 | + |
778 | 780 | # Attempt to resolve the IP from /vpcs/ips |
779 | | - all_vpc_ips = test_linode_client.vpcs.ips( |
780 | | - VPCIPAddress.filters.linode_id == linode.id |
781 | | - ) |
| 781 | + all_vpc_ips = test_linode_client.vpcs.ips() |
782 | 782 | assert all_vpc_ips[0].dict == vpc_ip.dict |
783 | 783 |
|
784 | 784 | # Test getting the ips under this specific VPC |
|
0 commit comments