From: Andrew Bartlett Date: Wed, 13 Dec 2017 01:47:59 +0000 (+1300) Subject: selftest: Add cleanup of ForeignSecurityPrincipal in samba.dsdb test X-Git-Tag: talloc-2.1.11~240 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2a8b5070845f87c597f44c5bb81f7a5a6a383a13;p=thirdparty%2Fsamba.git selftest: Add cleanup of ForeignSecurityPrincipal in samba.dsdb test Signed-off-by: Andrew Bartlett Reviewed-by: Douglas Bagnall Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Wed Dec 13 08:47:05 CET 2017 on sn-devel-144 --- diff --git a/python/samba/tests/dsdb.py b/python/samba/tests/dsdb.py index 0b3c1927504..94b21f2d249 100644 --- a/python/samba/tests/dsdb.py +++ b/python/samba/tests/dsdb.py @@ -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