mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
dns.py: Always remove the test zone in tearDown()
Change-Id: Ic6d6c51579f8859b4e396179123974382c253bf7 Signed-off-by: Garming Sam <garming@catalyst.net.nz> Pair-programmed-with: Garming Sam <garming@catalyst.net.nz> Signed-off-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Garming Sam <garming@samba.org> Autobuild-Date(master): Mon Dec 22 08:21:22 CET 2014 on sn-devel-104
This commit is contained in:
parent
eabc177bf6
commit
ad074795e3
@ -888,6 +888,14 @@ class TestZones(DNSTest):
|
||||
self.rpc_conn = dnsserver.dnsserver("ncacn_ip_tcp:%s" % (self.server),
|
||||
self.lp, self.creds)
|
||||
|
||||
def tearDown(self):
|
||||
super(TestZones, self).tearDown()
|
||||
try:
|
||||
self.delete_zone(self.zone)
|
||||
except RuntimeError, (num, string):
|
||||
if num != 9601: #WERR_DNS_ERROR_ZONE_DOES_NOT_EXIST
|
||||
raise
|
||||
|
||||
def create_zone(self, zone):
|
||||
zone_create = dnsserver.DNS_RPC_ZONE_CREATE_INFO_LONGHORN()
|
||||
zone_create.pszZoneName = zone
|
||||
|
Loading…
Reference in New Issue
Block a user