def zone(self):
     if self._zone is None:
         zone_data = data_utils.rand_zone_data()
         resp, body = self.zones_client.create_zone(**zone_data)
         self._zone = body
         self.addCleanup(self.wait_zone_delete, self.zones_client,
                         body['id'])
     return self._zone
 def zone(self):
     if self._zone is None:
         zone_data = data_utils.rand_zone_data()
         resp, body = self.zones_client.create_zone(**zone_data)
         self._zone = body
         self.addCleanup(self.wait_zone_delete,
                         self.zones_client,
                         body['id'])
     return self._zone
Ejemplo n.º 3
0
 def zone(self):
     if self._zone is None:
         tld_name = dns_data_utils.rand_zone_name(
             name="recordsetvalidation")
         self.class_tld = self.admin_tld_client.create_tld(
             tld_name=tld_name[:-1])
         zone_name = dns_data_utils.rand_zone_name(name="TestZone",
                                                   suffix=f'.{tld_name}')
         zone_data = dns_data_utils.rand_zone_data(name=zone_name)
         resp, body = self.zones_client.create_zone(**zone_data)
         self._zone = body
         self.addCleanup(self.wait_zone_delete, self.zones_client,
                         body['id'])
     return self._zone
 def zone(self):
     if self._zone is None:
         zone_data = data_utils.rand_zone_data()
         resp, body = self.zones_client.create_zone(**zone_data)
         self._zone = body
     return self._zone