Skip to content

Commit ef709d7

Browse files
Finish tests
1 parent 7934893 commit ef709d7

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

test/integration/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ def linode_for_vlan_tests(test_linode_client, e2e_test_firewall):
532532
linode_instance.delete()
533533

534534

535-
@pytest.fixture(scope="session")
535+
@pytest.fixture(scope="function")
536536
def linode_with_interface_generation_linode(
537537
test_linode_client,
538538
e2e_test_firewall,
@@ -557,7 +557,7 @@ def linode_with_interface_generation_linode(
557557
instance.delete()
558558

559559

560-
@pytest.fixture(scope="session")
560+
@pytest.fixture(scope="function")
561561
def linode_with_linode_interfaces(
562562
test_linode_client, e2e_test_firewall, create_vpc_with_subnet
563563
):

test/integration/models/linode/interfaces/test_interfaces.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,3 +328,16 @@ def test_linode_interface_create_vlan(
328328

329329

330330
# NOTE: VLAN interface updates current aren't supported
331+
332+
333+
def test_linode_interface_firewalls(e2e_test_firewall, linode_interface_public):
334+
iface, instance, ipv6_range = linode_interface_public
335+
336+
assert iface.id is not None
337+
assert iface.linode_id == instance.id
338+
339+
firewalls = iface.firewalls()
340+
341+
firewall = firewalls[0]
342+
assert firewall.id == e2e_test_firewall.id
343+
assert firewall.label == e2e_test_firewall.label

0 commit comments

Comments
 (0)