netcmd: tests: test that create objects make use of addCleanup
authorRob van der Linde <rob@catalyst.net.nz>
Thu, 28 Sep 2023 01:48:09 +0000 (14:48 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 29 Sep 2023 02:18:34 +0000 (02:18 +0000)
commitf1d5f93f3d4064d0779185a9d380a93c116d3b7c
tree0656b7250f5ab35ca7125b61d3c29fa1a817238b
parent91fa5088b5634320d7d882e474472bc13f076696
netcmd: tests: test that create objects make use of addCleanup

Since the samdb connection is on the class and hangs around between tests, we need to clean up what we created.

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/samba_tool/domain_auth_policy.py
python/samba/tests/samba_tool/domain_auth_silo.py
python/samba/tests/samba_tool/domain_claim.py