Fix deleting zones after tests
these tests create zones as part of the test but do clean them up
afterward slowly. This leads to these and following tests in the thread
to fail with over quota when default zone quota is sufficiently low.
Related-prod: PRODX-295
Change-Id: Iebe15ca6d0d3101237a92e011b081c38647a8de6
(cherry picked from commit 09b515e05c2625e14c21f54d0d36a7678f791dc3)
(cherry picked from commit 73cac6a4e14f9012daa274be58359fda6826da1f)
diff --git a/designate_tempest_plugin/tests/api/v2/test_recordset_validation.py b/designate_tempest_plugin/tests/api/v2/test_recordset_validation.py
index 551719c..36c68ff 100644
--- a/designate_tempest_plugin/tests/api/v2/test_recordset_validation.py
+++ b/designate_tempest_plugin/tests/api/v2/test_recordset_validation.py
@@ -14,8 +14,6 @@
limitations under the License.
"""
import ddt
-from tempest import config
-from tempest.lib.common.utils import test_utils as utils
from tempest.lib import exceptions
from tempest.lib import decorators
@@ -35,8 +33,6 @@
'TXT',
]
-CONF = config.CONF
-
@ddt.ddt
class RecordsetValidationTest(base.BaseDnsV2Test):
@@ -45,15 +41,6 @@
super(RecordsetValidationTest, self).setUp()
self._zone = None
- def tearDown(self):
- if self._zone:
- self.zones_client.delete_zone(self._zone['id'])
- utils.call_until_true(self._check_zone_deleted,
- CONF.dns.build_timeout,
- CONF.dns.build_interval,
- self._zone['id'])
- super(RecordsetValidationTest, self).tearDown()
-
@classmethod
def setup_credentials(cls):
# Do not create network resources for these test.
@@ -84,10 +71,6 @@
return body
- def _check_zone_deleted(self, zone_id):
- return utils.call_and_ignore_notfound_exc(self.zones_client.show_zone,
- zone_id) is None
-
@decorators.idempotent_id('c5ef87e2-cb79-4758-b968-18eef2c251df')
@ddt.data(*RECORDSETS_DATASET)
def test_create_invalid(self, rtype):