CVE-2023-4154 dsdb/tests: Use self.addCleanup() and delete_force()
authorAndrew Bartlett <abartlet@samba.org>
Mon, 7 Aug 2023 01:15:40 +0000 (13:15 +1200)
committerJule Anger <janger@samba.org>
Sun, 8 Oct 2023 20:06:12 +0000 (22:06 +0200)
commitc284a9229c07874a2a24d2b36061945eaef3e8e7
treeff8840c89ac19dd00cdc4259f4e277a52da27df8
parent937e50b1d67a49ae7cb7ea2216b9264a5c5f53f5
CVE-2023-4154 dsdb/tests: Use self.addCleanup() and delete_force()

Thie helps ensure this test is reliable even in spite of errors while
running.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15424

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/tests/python/confidential_attr.py
source4/dsdb/tests/python/dirsync.py