diff options
author | Daniel Watkins <oddbloke@ubuntu.com> | 2020-12-15 16:42:03 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-15 16:42:03 -0500 |
commit | eadadaa17b1c4484cce1392fee20134c2b4d1d1a (patch) | |
tree | defd9db24782ab06235004ffbb5c3e8777f72d7e /tests | |
parent | 9e89ca7063e121065d9af5d0d6dbb42e8cccf2e3 (diff) | |
download | vyos-cloud-init-eadadaa17b1c4484cce1392fee20134c2b4d1d1a.tar.gz vyos-cloud-init-eadadaa17b1c4484cce1392fee20134c2b4d1d1a.zip |
integration_tests: restrict test_lxd_bridge appropriately (#730)
On xenial, the bridge test fails because xenial's LXD doesn't include
the `network` subcommand. On bionic, the bridge test fails within
containers, because LXD isn't able to manipulate the host kernel as it
expects.
(focal and later do run successfully in containers, but we don't have a
good way of expressing that presently.)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration_tests/modules/test_lxd_bridge.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/integration_tests/modules/test_lxd_bridge.py b/tests/integration_tests/modules/test_lxd_bridge.py index f68c6f2d..cbf11179 100644 --- a/tests/integration_tests/modules/test_lxd_bridge.py +++ b/tests/integration_tests/modules/test_lxd_bridge.py @@ -24,6 +24,7 @@ lxd: """ +@pytest.mark.no_container @pytest.mark.user_data(USER_DATA) class TestLxdBridge: @@ -32,6 +33,7 @@ class TestLxdBridge: """Check that the expected LXD binaries are installed""" assert class_client.execute(["which", binary_name]).ok + @pytest.mark.not_xenial @pytest.mark.sru_2020_11 def test_bridge(self, class_client): """Check that the given bridge is configured""" |