summaryrefslogtreecommitdiff
path: root/tests/integration_tests/bugs/test_lp1898997.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration_tests/bugs/test_lp1898997.py')
-rw-r--r--tests/integration_tests/bugs/test_lp1898997.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/integration_tests/bugs/test_lp1898997.py b/tests/integration_tests/bugs/test_lp1898997.py
index d8ea54c3..ec92aeb6 100644
--- a/tests/integration_tests/bugs/test_lp1898997.py
+++ b/tests/integration_tests/bugs/test_lp1898997.py
@@ -12,6 +12,8 @@ default gateway.
import pytest
from tests.integration_tests import random_mac_address
+from tests.integration_tests.integration_settings import PLATFORM
+from tests.integration_tests.releases import CURRENT_RELEASE, FOCAL
from tests.integration_tests.util import verify_clean_log
MAC_ADDRESS = random_mac_address()
@@ -44,10 +46,14 @@ version: 2
"volatile.eth0.hwaddr": MAC_ADDRESS,
}
)
-@pytest.mark.lxd_vm
+@pytest.mark.skipif(
+ PLATFORM != "lxd_vm",
+ reason="Test requires custom networking provided by LXD",
+)
+@pytest.mark.skipif(
+ CURRENT_RELEASE < FOCAL, reason="Tested on Focal and above"
+)
@pytest.mark.lxd_use_exec
-@pytest.mark.not_bionic
-@pytest.mark.ubuntu
class TestInterfaceListingWithOpenvSwitch:
def test_ovs_member_interfaces_not_excluded(self, client):
# We need to install openvswitch for our provided network configuration