]> git.samba.org - obnox/samba/samba-obnox.git/commitdiff
selftest: Run raw.acls test against the nfs4acl_xattr module
authorAndrew Bartlett <abartlet@samba.org>
Sun, 14 Apr 2013 10:04:45 +0000 (20:04 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 9 May 2013 04:18:21 +0000 (06:18 +0200)
This is the first time we have tested the NFSv4 ACL mapping code.
Sadly most tests fail but these can be fixed from here.

This at least shows that the code does not segfault.

Andrew Bartlett
Reviewed-by: Jeremy Allison <jra@samba.org>
selftest/knownfail
selftest/target/Samba3.pm
source3/selftest/tests.py

index cb7630fc63fcda449adc97a03a33c47cd875ce48..069afe7604caec579371a01a5f76b478f3ff479c 100644 (file)
 ^samba3.blackbox.smbclient_machine_auth.plain \(s3dc:local\)# the S3dc does not currently set up a self-join
 ^samba3.raw.samba3hide.samba3hide\((s3dc|plugin_s4_dc)\) # This test fails against an smbd environment with NT ACLs enabled
 ^samba3.raw.samba3closeerr.samba3closeerr\(s3dc\) # This test fails against an smbd environment with NT ACLs enabled
+^samba3.raw.acls nfs4acl_xattr.INHERITFLAGS\(s3dc\) # This (and the follow nfs4acl_xattr tests fail because our NFSv4 backend isn't a complete mapping yet.
+^samba3.raw.acls nfs4acl_xattr.dynamic\(s3dc\)
+^samba3.raw.acls nfs4acl_xattr.sd\(s3dc\)
+^samba3.raw.acls nfs4acl_xattr.create_file\(s3dc\)
+^samba3.raw.acls nfs4acl_xattr.create_dir\(s3dc\)
+^samba3.raw.acls nfs4acl_xattr.nulldacl\(s3dc\)
+^samba3.raw.acls nfs4acl_xattr.generic\(s3dc\)
+^samba3.raw.acls nfs4acl_xattr.inheritance\(s3dc\)
 ^samba3.base.delete.deltest16a
 ^samba3.base.delete.deltest17a
 ^samba3.unix.whoami anonymous connection.whoami\(plugin_s4_dc\) # We need to resolve if we should be including SID_NT_WORLD and SID_NT_NETWORK in this token
index 1b14f1c840b6f37ae37aa41e0d79ae5b0182153a..407642c9aa3b2074760bfa26bfc762d2e397e487 100755 (executable)
@@ -1081,6 +1081,12 @@ sub provision($$$$$$)
        default devmode = no
 [lp]
        copy = print1
+
+[nfs4acl_share]
+       path = $shrdir
+       comment = smb username is [%U]
+       vfs objects = $vfs_modulesdir_abs/nfs4acl_xattr.so $vfs_modulesdir_abs/xattr_tdb.so
+
 [xcopy_share]
        path = $shrdir
        comment = smb username is [%U]
index 1c123f57350e860b0364cceffe8700a3e81ad692..11504c0490b03082590d3f8f774f39ec83671214 100755 (executable)
@@ -343,6 +343,10 @@ for t in tests:
         plansmbtorture4testsuite(t, "plugin_s4_dc", '//$SERVER/tmp -U$USERNAME%$PASSWORD')
     elif t == "idmap.rfc2307":
         plantestsuite(t, "s3member_rfc2307", [os.path.join(samba3srcdir, "../nsswitch/tests/test_idmap_rfc2307.sh"), '$DOMAIN', 'Administrator', '2000000', '"Domain Users"', '2000001', 'ou=idmap,dc=samba,dc=example,dc=com', '$DC_SERVER', '$DC_USERNAME', '$DC_PASSWORD'])
+    elif t == "raw.acls":
+        plansmbtorture4testsuite(t, "s3dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
+        plansmbtorture4testsuite(t, "s3dc", '//$SERVER_IP/nfs4acl_share -U$USERNAME%$PASSWORD', description='nfs4acl_xattr')
+        plansmbtorture4testsuite(t, "plugin_s4_dc", '//$SERVER_IP/tmpcase -U$USERNAME%$PASSWORD')
     else:
         plansmbtorture4testsuite(t, "s3dc", '//$SERVER_IP/tmp -U$USERNAME%$PASSWORD')
         plansmbtorture4testsuite(t, "plugin_s4_dc", '//$SERVER/tmp -U$USERNAME%$PASSWORD')