Delete qos policies created during scenario tests
Change-Id: I3d41ab713eccac434e44d9c117a9846ba7ab5ed6
diff --git a/neutron_tempest_plugin/scenario/test_qos.py b/neutron_tempest_plugin/scenario/test_qos.py
index 77520a7..d00210c 100644
--- a/neutron_tempest_plugin/scenario/test_qos.py
+++ b/neutron_tempest_plugin/scenario/test_qos.py
@@ -137,6 +137,7 @@
name='test-policy',
description='test-qos-policy',
shared=True)
+ self.qos_policies.append(policy['policy'])
return policy['policy']['id']
def _create_server_by_port(self, port=None):
@@ -189,6 +190,11 @@
def resource_setup(cls):
super(QoSTest, cls).resource_setup()
+ @classmethod
+ def setup_clients(cls):
+ super(QoSTest, cls).setup_clients()
+ cls.admin_client = cls.os_admin.network_client
+
@decorators.idempotent_id('00682a0c-b72e-11e8-b81e-8c16450ea513')
def test_qos_basic_and_update(self):
"""This test covers following scenarios: