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:
Pavlo Shchelokovskyy 2018-10-29 14:22:59 +02:00
parent 574a532de3
commit fd1eb9bbbc
1 changed files with 1 additions and 0 deletions

View File

@ -60,6 +60,7 @@ class RecordsetValidationTest(base.BaseDnsV2Test):
zone_data = data_utils.rand_zone_data()
resp, body = self.zones_client.create_zone(**zone_data)
self._zone = body
self.addCleanup(self.zones_client.delete_zone, body['id'])
return self._zone
def create_recordset(self, data):