selftest: Add cleanup of ForeignSecurityPrincipal in samba.dsdb test
authorAndrew Bartlett <abartlet@samba.org>
Wed, 13 Dec 2017 01:47:59 +0000 (14:47 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 13 Dec 2017 07:47:05 +0000 (08:47 +0100)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Dec 13 08:47:05 CET 2017 on sn-devel-144

python/samba/tests/dsdb.py

index 0b3c1927504e4d82f657c296fefb2a1542260e27..94b21f2d249a74b7da4ceaaee749885c52af790d 100644 (file)
@@ -229,6 +229,9 @@ class DsdbTests(TestCase):
             self.fail("Got unexpected exception %d - %s "
                       % (code, msg))
 
+        # cleanup
+        self.samdb.delete(dn)
+
     #
     # Duplicate objectSID's should not be permitted for sids in the local
     # domain. The test sequence is add an object, delete it, then attempt to