summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-08-23 10:38:06 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-08-23 15:02:26 +0200
commit123ee7f9b5e5ccac6740e5fdfff2a8a24f98087d (patch)
tree8b76f246f6f782e20ef441383ea65442b752d8be /source4
parentebcdc4a36be9b79325b11ec0c44a43db93e29519 (diff)
downloadsamba-123ee7f9b5e5ccac6740e5fdfff2a8a24f98087d.tar.gz
samba-123ee7f9b5e5ccac6740e5fdfff2a8a24f98087d.tar.bz2
samba-123ee7f9b5e5ccac6740e5fdfff2a8a24f98087d.zip
s4-selftest: Add test for samba-tool ntacl sysvolcheck
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/python/samba/tests/samba_tool/ntacl.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/tests/samba_tool/ntacl.py b/source4/scripting/python/samba/tests/samba_tool/ntacl.py
index 7ba6506966..913a79b73c 100644
--- a/source4/scripting/python/samba/tests/samba_tool/ntacl.py
+++ b/source4/scripting/python/samba/tests/samba_tool/ntacl.py
@@ -42,3 +42,29 @@ class NtACLCmdTestCase(SambaToolCmdTest):
self.assertEquals(err,"","Shouldn't be any error messages")
self.assertEquals(out,"","Shouldn't be any output messages")
+ def test_ntvfs_check(self):
+ (result, out, err) = self.runsubcmd("ntacl", "sysvolreset",
+ "--use-ntvfs")
+ self.assertCmdSuccess(result)
+ self.assertEquals(out,"","Shouldn't be any output messages")
+ self.assertIn("Please note that POSIX permissions have NOT been changed, only the stored NT ACL", err)
+ # Now check they were set correctly
+ (result, out, err) = self.runsubcmd("ntacl", "sysvolcheck")
+ self.assertCmdSuccess(result)
+ self.assertEquals(err,"","Shouldn't be any error messages")
+ self.assertEquals(out,"","Shouldn't be any output messages")
+
+ def test_s3fs_check(self):
+ (result, out, err) = self.runsubcmd("ntacl", "sysvolreset",
+ "--use-s3fs")
+
+ self.assertCmdSuccess(result)
+ self.assertEquals(err,"","Shouldn't be any error messages")
+ self.assertEquals(out,"","Shouldn't be any output messages")
+
+ # Now check they were set correctly
+ (result, out, err) = self.runsubcmd("ntacl", "sysvolcheck")
+ self.assertCmdSuccess(result)
+ self.assertEquals(err,"","Shouldn't be any error messages")
+ self.assertEquals(out,"","Shouldn't be any output messages")
+