Delete qos policies created during scenario tests

Change-Id: I3d41ab713eccac434e44d9c117a9846ba7ab5ed6
This commit is contained in:
Eduardo Olivares 2021-02-19 12:36:21 +01:00
parent e6b1004ff2
commit 98772918ff
2 changed files with 11 additions and 0 deletions

View File

@ -341,6 +341,11 @@ class FloatingIPQosTest(FloatingIpTestCasesMixin,
def resource_setup(cls):
super(FloatingIPQosTest, cls).resource_setup()
@classmethod
def setup_clients(cls):
super(FloatingIPQosTest, cls).setup_clients()
cls.admin_client = cls.os_admin.network_client
@decorators.idempotent_id('5eb48aea-eaba-4c20-8a6f-7740070a0aa3')
def test_qos(self):
"""Test floating IP is binding to a QoS policy with

View File

@ -137,6 +137,7 @@ class QoSTestMixin(object):
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 @@ class QoSTest(QoSTestMixin, base.BaseTempestTestCase):
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: