Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

integration_tests: fix test_gh626 on LXD VMs via SSH #809

Merged
merged 2 commits into from Feb 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 6 additions & 2 deletions tests/integration_tests/bugs/test_gh626.py
Expand Up @@ -11,13 +11,16 @@
from tests.integration_tests.instances import IntegrationInstance


MAC_ADDRESS = "de:ad:be:ef:12:34"
NETWORK_CONFIG = """\
version: 2
ethernets:
eth0:
dhcp4: true
wakeonlan: true
"""
match:
macaddress: {}
""".format(MAC_ADDRESS)

EXPECTED_ENI_END = """\
iface eth0 inet dhcp
Expand All @@ -28,7 +31,8 @@
@pytest.mark.lxd_container
@pytest.mark.lxd_vm
@pytest.mark.lxd_config_dict({
'user.network-config': NETWORK_CONFIG
'user.network-config': NETWORK_CONFIG,
"volatile.eth0.hwaddr": MAC_ADDRESS,
})
def test_wakeonlan(client: IntegrationInstance):
if ImageSpecification.from_os_image().release == 'xenial':
Expand Down