Skip to content
Snippets Groups Projects
Verified Commit 01892926 authored by Karel Koci's avatar Karel Koci 🤘
Browse files

tests/test_bootup: fix invalid container setup for TestNoInternetAccess

This test was written on old version of LXD API and wasn't updated.
parent 4efc2c0a
No related merge requests found
...@@ -117,10 +117,10 @@ class TestNoInternetAccess: ...@@ -117,10 +117,10 @@ class TestNoInternetAccess:
""" """
@pytest.fixture(scope="class", autouse=True) @pytest.fixture(scope="class", autouse=True)
def fixture_dhcp_isp(self, lxd, wan, client_board): def fixture_dhcp_isp(self, lxd, device_map, client_board):
"""This provides DHCP server on WAN interface the router could use to autoconfigure WAN if it would want to. """This provides DHCP server on WAN interface the router could use to autoconfigure WAN if it would want to.
""" """
with Container(lxd, "isp-dhcp", devices=[wan, ]) as container: with Container(lxd, "isp-dhcp", device_map) as container:
Shell(container.pexpect()).run("wait4network") Shell(container.pexpect()).run("wait4network")
client_board.run("/etc/init.d/network restart") # Trigger network restart to force potential renew now client_board.run("/etc/init.d/network restart") # Trigger network restart to force potential renew now
# Unfortunatelly we can't wait for router to pickup address as technically it should not. Instead we wait # Unfortunatelly we can't wait for router to pickup address as technically it should not. Instead we wait
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment