test_nfs4_acls: Add test for matching DACL entries for acedup
authorChristof Schmitt <cs@samba.org>
Tue, 2 Jul 2019 19:09:04 +0000 (12:09 -0700)
committerChristof Schmitt <cs@samba.org>
Tue, 23 Jul 2019 18:27:26 +0000 (18:27 +0000)
commitf55cdf42a14f314102f2e13cb06d4db48c08ad4b
treeccb9bfea417c2e79184b4e47b5961eb570c51b6f
parent9671bf2b9f055012057620207624aa2f4ea6833e
test_nfs4_acls: Add test for matching DACL entries for acedup

The NFSv4 mapping code has a config option nfs4:acedup for the mapping
path from DACLs to NFSv4 ACLs. Part of this codepath is detecting
duplicate ACL entries. Add a testcase with different ACL entries and
verify that only exactly matching entries are detected as duplicates and
treated accordingly.

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