Delete created zone in recordset validation tests
these tests create zones as part of test but do not clean them up afterwards. This leads to these and following tests in the thread to fail with overquota when default zone quota is sufficiently low. Change-Id: I07d1781de84336faa76698895ad5198ae1c259fc Closes-Bug: #1800454
This commit is contained in:
parent
574a532de3
commit
fd1eb9bbbc
|
@ -60,6 +60,7 @@ class RecordsetValidationTest(base.BaseDnsV2Test):
|
||||||
zone_data = data_utils.rand_zone_data()
|
zone_data = data_utils.rand_zone_data()
|
||||||
resp, body = self.zones_client.create_zone(**zone_data)
|
resp, body = self.zones_client.create_zone(**zone_data)
|
||||||
self._zone = body
|
self._zone = body
|
||||||
|
self.addCleanup(self.zones_client.delete_zone, body['id'])
|
||||||
return self._zone
|
return self._zone
|
||||||
|
|
||||||
def create_recordset(self, data):
|
def create_recordset(self, data):
|
||||||
|
|
Loading…
Reference in New Issue