Merge pull request #158 from gnuoy/skip-qos-test-with-ovn

Skip QoS Tests in OVN deploys
This commit is contained in:
Chris MacNaughton
2020-01-27 11:04:04 +01:00
committed by GitHub
@@ -191,6 +191,16 @@ class NeutronApiTest(test_utils.OpenStackBaseTest):
openstack_utils.get_os_release('trusty_mitaka')):
logging.info('running qos check')
dhcp_agents = self.neutron_client.list_agents(
binary='neutron-dhcp-agent')['agents']
if not dhcp_agents:
ovn_agents = self.neutron_client.list_agents(
binary='ovn-controller')['agents']
if ovn_agents:
raise unittest.SkipTest(
"QoS tests are currently not supported on OVN "
"deployments")
with self.config_change(
{'enable-qos': 'False'},
{'enable-qos': 'True'},