1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

gpo: Cleanup script policy test

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
David Mulder 2020-08-07 13:58:34 -06:00 committed by David Mulder
parent 0544237ea2
commit 7acbb44040

View File

@ -371,6 +371,13 @@ class GPOTests(tests.TestCase):
self.assertIn(b'hello world', out, self.assertIn(b'hello world', out,
'%s script execution failed' % keyname.decode()) '%s script execution failed' % keyname.decode())
# Remove policy
gp_db = store.get_gplog(machine_creds.get_username())
del_gpos = get_deleted_gpos_list(gp_db, [])
ext.process_group_policy(del_gpos, [])
self.assertEquals(len(os.listdir(dname)), 0,
'Unapply failed to cleanup scripts')
# Unstage the Registry.pol file # Unstage the Registry.pol file
unstage_file(reg_pol) unstage_file(reg_pol)