Skip QoS test cases in case it is all OVN (OSP-13) configuration

Change-Id: I52c7b96b8a8d8a2996f0e0dd3210e99b5e99723a
This commit is contained in:
Federico Ressi 2021-07-20 14:59:19 +02:00
parent 2991ef9a32
commit ea3aa0a0dd

View File

@ -18,17 +18,18 @@ from oslo_log import log
import testtools
import tobiko
from tobiko.openstack import keystone
from tobiko.openstack import stacks
from tobiko.openstack import topology
from tobiko.openstack import neutron
from tobiko.shell import iperf
from tobiko.shell import ping
from tobiko.tripleo import containers
from tobiko.tripleo import overcloud
LOG = log.getLogger(__name__)
@keystone.skip_unless_has_keystone_credentials()
@neutron.skip_if_is_old_ovn()
class QoSNetworkTest(testtools.TestCase):
"""Tests QoS basic functionality"""
@ -37,15 +38,6 @@ class QoSNetworkTest(testtools.TestCase):
policy = tobiko.required_setup_fixture(stacks.QosPolicyStackFixture)
server = tobiko.required_setup_fixture(stacks.QosServerStackFixture)
def setUp(self):
super().setUp()
if (overcloud.has_overcloud() and
topology.verify_osp_version('16.0', lower=True) and
containers.ovn_used_on_overcloud()):
# Skip these tests if OVN is configured and OSP version is lower
# than 16.1
self.skipTest("QoS not supported in this setup")
def test_ping(self):
ping.assert_reachable_hosts([self.server.floating_ip_address],)