summaryrefslogtreecommitdiff
path: root/python/samba/tests/posixacl.py
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2017-08-07 17:29:41 +0200
committerAndrew Bartlett <abartlet@samba.org>2017-12-13 20:34:24 +0100
commitdf1a06074e775ae265b96d7b1290de269c99a9e9 (patch)
tree1a17046d47cef6f9a5eb3b5d813c4627991d34dd /python/samba/tests/posixacl.py
parentec646089f28338a505295aa56c2ebabaf30995b1 (diff)
downloadsamba-df1a06074e775ae265b96d7b1290de269c99a9e9.tar.gz
tests/posixacl.py: remove useless 'profile acls' based test
test_setntacl_smbd_dont_invalidate_getntacl_smbd() is basically the same as test_setntacl_smbd_getntacl_smbd() Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'python/samba/tests/posixacl.py')
-rw-r--r--python/samba/tests/posixacl.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/python/samba/tests/posixacl.py b/python/samba/tests/posixacl.py
index 8dc20980e1b..f34c7d6775f 100644
--- a/python/samba/tests/posixacl.py
+++ b/python/samba/tests/posixacl.py
@@ -119,23 +119,6 @@ class PosixAclMappingTests(TestCaseInTempDir):
anysid = security.dom_sid(security.SID_NT_SELF)
self.assertEquals(simple_acl_from_posix, facl.as_sddl(anysid))
- def test_setntacl_smbd_dont_invalidate_getntacl_smbd(self):
- # set an ACL on a tempfile
- acl = "O:S-1-5-21-2212615479-2695158682-2101375467-512G:S-1-5-21-2212615479-2695158682-2101375467-513D:(A;OICI;0x001f01ff;;;S-1-5-21-2212615479-2695158682-2101375467-512)"
- os.chmod(self.tempf, 0750)
- setntacl(self.lp, self.tempf, acl, "S-1-5-21-2212615479-2695158682-2101375467", use_ntvfs=False)
-
- # now influence the POSIX ACL->SD mapping it returns something else than
- # what was set previously
- # this should not invalidate the hash and the complete ACL should still
- # be returned
- self.lp.set("profile acls", "yes")
- # we should still get back the ACL (and not one mapped from POSIX ACL)
- facl = getntacl(self.lp, self.tempf, direct_db_access=False)
- self.lp.set("profile acls", "no")
- anysid = security.dom_sid(security.SID_NT_SELF)
- self.assertEquals(acl, facl.as_sddl(anysid))
-
def test_setntacl_getntacl_smbd(self):
acl = "O:S-1-5-21-2212615479-2695158682-2101375467-512G:S-1-5-21-2212615479-2695158682-2101375467-513D:(A;OICI;0x001f01ff;;;S-1-5-21-2212615479-2695158682-2101375467-512)"
setntacl(self.lp, self.tempf, acl, "S-1-5-21-2212615479-2695158682-2101375467", use_ntvfs=True)