test_nfs4_acls: Add test for acedup settings
authorChristof Schmitt <cs@samba.org>
Tue, 2 Jul 2019 19:07:36 +0000 (12:07 -0700)
committerChristof Schmitt <cs@samba.org>
Tue, 23 Jul 2019 18:27:26 +0000 (18:27 +0000)
commit9671bf2b9f055012057620207624aa2f4ea6833e
tree297ec0e568be84e68d4781d627540568c84625d9
parent30677df4dac4ebfcf4e3198db33f14be37948197
test_nfs4_acls: Add test for acedup settings

The NFSv4 ACL mapping code has a setting nfs4:acedup. Depending on the
setting, when mapping from DACLs to NFSv4 ACLs, duplicate ACL entries
are either merged, ignored or rejected. Add a testcase that has
duplicate ACL entries and verify the expected behavior for all possible
settings of the nfs4:acedup option.

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