Skip to content

Commit

Permalink
Fix vpc tests by removing linodes field
Browse files Browse the repository at this point in the history
  • Loading branch information
zliang-akamai committed Jan 17, 2024
1 parent a7207e7 commit 7ca7d4b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/integration/vpc/test_vpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,15 @@ def test_list_subnets(test_vpc_w_subnet):

lines = res.splitlines()

headers = ["id", "label", "ipv4", "linodes"]
headers = ["id", "label", "ipv4"]

for header in headers:
assert header in lines[0]

for line in lines[1:]:
print(line)
assert re.match(
r"^(\d+),(\w+),(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/\d+),", line
r"^(\d+),(\w+),(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/\d+)$", line
), "String format does not match"


Expand All @@ -113,8 +114,7 @@ def test_view_subnet(test_vpc_wo_subnet, test_subnet):
.rstrip()
)

headers = ["id", "label", "ipv4", "linodes"]

headers = ["id", "label", "ipv4"]
for header in headers:
assert header in output
assert vpc_subnet_id in output
Expand Down

0 comments on commit 7ca7d4b

Please sign in to comment.