Fixed multiple leaking tests
- Fixed multiple issues with cleanups.
- Fixed tld never being removed.
- Added some additional waiters.
Change-Id: I2a83c7c2c276be6c0d4fac82e0beaa157362dca0
diff --git a/designate_tempest_plugin/tests/base.py b/designate_tempest_plugin/tests/base.py
index 6d33d81..a44db45 100644
--- a/designate_tempest_plugin/tests/base.py
+++ b/designate_tempest_plugin/tests/base.py
@@ -99,13 +99,17 @@
callable_(*args, **kwargs)
def wait_zone_delete(self, zone_client, zone_id, **kwargs):
- zone_client.delete_zone(zone_id, **kwargs)
+ self._delete_zone(zone_client, zone_id, **kwargs)
utils.call_until_true(self._check_zone_deleted,
CONF.dns.build_timeout,
CONF.dns.build_interval,
zone_client,
zone_id)
+ def _delete_zone(self, zone_client, zone_id, **kwargs):
+ return utils.call_and_ignore_notfound_exc(zone_client.delete_zone,
+ zone_id, **kwargs)
+
def _check_zone_deleted(self, zone_client, zone_id):
return utils.call_and_ignore_notfound_exc(zone_client.show_zone,
zone_id) is None