summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2019-02-21 15:53:07 +1300
committerAndrew Bartlett <abartlet@samba.org>2019-02-21 05:37:31 +0100
commitcbf23f2b0fbc7705f6050ddc8b0b925132c4a290 (patch)
tree49e7eb32cbf438d200f6284799c093edb47c8ce4
parent8e2015293e4798c8c1832633e07eec95a38de624 (diff)
downloadsamba-cbf23f2b0fbc7705f6050ddc8b0b925132c4a290.tar.gz
selftest: Confirm new and old SDDL strings differ after a samba-tool dsacl set
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Feb 21 05:37:31 CET 2019 on sn-devel-144
-rw-r--r--python/samba/tests/samba_tool/dsacl.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/samba/tests/samba_tool/dsacl.py b/python/samba/tests/samba_tool/dsacl.py
index 4b5f4c827fc..4a2ee56009c 100644
--- a/python/samba/tests/samba_tool/dsacl.py
+++ b/python/samba/tests/samba_tool/dsacl.py
@@ -46,6 +46,7 @@ class DSaclSetSddlTestCase(SambaToolCmdTest):
self.assertEquals(err, "", "Shouldn't be any error messages")
#extract only the two sddl strings from samba-tool output
acl_list=re.findall('.*descriptor for.*:\n(.*?)\n',out)
+ self.assertNotEqual(acl_list[0], acl_list[1], "new and old SDDL string differ")
self.assertMatch(acl_list[1], self.sddl, "new SDDL string should be contained within second sddl output")
def test_sddl_set_get(self):