diff options
author | David Mulder <dmulder@suse.com> | 2020-08-07 13:59:32 -0600 |
---|---|---|
committer | David Mulder <dmulder@samba.org> | 2020-08-27 15:59:33 +0000 |
commit | 7c6969e9c9cccc1fdf0a668389bc9b3eaa6d2831 (patch) | |
tree | 9fcb4fafbd0d77aeed620c234dffcbe3ac546e80 /python | |
parent | 7acbb4404006fa24ef6c66d324f20a7fbe3bf4b9 (diff) | |
download | samba-7c6969e9c9cccc1fdf0a668389bc9b3eaa6d2831.tar.gz |
gpo: Cleanup sudoers policy test
Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'python')
-rw-r--r-- | python/samba/tests/gpo.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/python/samba/tests/gpo.py b/python/samba/tests/gpo.py index 88b5da37add..e65ce387358 100644 --- a/python/samba/tests/gpo.py +++ b/python/samba/tests/gpo.py @@ -422,6 +422,13 @@ class GPOTests(tests.TestCase): open(os.path.join(dname, sudoers[0]), 'r').read(), 'The sudoers entry was not applied') + # 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_file(reg_pol) |