selftest: Start implementing unit test for nfs4_acls
authorChristof Schmitt <cs@samba.org>
Tue, 2 Jul 2019 18:22:13 +0000 (11:22 -0700)
committerChristof Schmitt <cs@samba.org>
Tue, 23 Jul 2019 18:27:25 +0000 (18:27 +0000)
commit8fb906a1860452a320c79ac87917a97303729c19
tree511cf5687accebe027e8b5181f716c59a8a498dc
parenta06486bb110d04a90b66a0bca4b1b600ef3c0ebf
selftest: Start implementing unit test for nfs4_acls

Existing smbtorture tests set and query ACLs through SMB, only working
with the DACLs in the Security Descriptors, but never check the NFSv4
ACL representation. This patch introduces a unit test to verify the
mapping between between Security Descriptors and NFSv4 ACLs. As the
mapping code queries id mappings, the id mapping cache is first primed
with the mappings used by the tests and those mappings are removed again
during teardown.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14032

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/test_nfs4_acls.c [new file with mode: 0644]
source3/modules/wscript_build
source3/selftest/tests.py