From: Uri Simchoni Date: Wed, 10 Aug 2016 02:00:23 +0000 (+0300) Subject: selftest: add a test for new "inherit owner" option X-Git-Tag: tevent-0.9.30~167 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce82bf09fe2170e7277af044c887180b5fcdc703;p=thirdparty%2Fsamba.git selftest: add a test for new "inherit owner" option Add a test for the "unix only" option of "inherit owner" smb.conf parameter. Signed-off-by: Uri Simchoni Reviewed-by: Jeremy Allison Autobuild-User(master): Uri Simchoni Autobuild-Date(master): Wed Aug 10 11:25:52 CEST 2016 on sn-devel-144 --- diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm index 172f588f14f..a0996a8745d 100755 --- a/selftest/target/Samba3.pm +++ b/selftest/target/Samba3.pm @@ -675,6 +675,11 @@ sub setup_fileserver($$) path = $share_dir comment = inherit owner inherit owner = yes +[inherit_owner_u] + path = $share_dir + comment = inherit only unix owner + inherit owner = unix only + acl_xattr:ignore system acls = yes "; my $vars = $self->provision($path, diff --git a/source3/selftest/tests.py b/source3/selftest/tests.py index f6abc736f1e..23fb37d36c3 100755 --- a/source3/selftest/tests.py +++ b/source3/selftest/tests.py @@ -195,6 +195,7 @@ for env in ["fileserver"]: plantestsuite("samba3.blackbox.smb2.not_casesensitive (%s)" % env, env, [os.path.join(samba3srcdir, "script/tests/test_smb2_not_casesensitive.sh"), '//$SERVER/tmp', '$SERVER_IP', '$USERNAME', '$PASSWORD', '$LOCAL_PATH', smbclient3]) plantestsuite("samba3.blackbox.inherit_owner.default(%s)" % env, env, [os.path.join(samba3srcdir, "script/tests/test_inherit_owner.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$PREFIX', smbclient3, smbcacls, 'tmp', '0', '0', '-m', 'NT1']) plantestsuite("samba3.blackbox.inherit_owner.full (%s)" % env, env, [os.path.join(samba3srcdir, "script/tests/test_inherit_owner.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$PREFIX', smbclient3, smbcacls, 'inherit_owner', '1', '1', '-m', 'NT1']) + plantestsuite("samba3.blackbox.inherit_owner.unix (%s)" % env, env, [os.path.join(samba3srcdir, "script/tests/test_inherit_owner.sh"), '$SERVER', '$USERNAME', '$PASSWORD', '$PREFIX', smbclient3, smbcacls, 'inherit_owner_u', '0', '1', '-m', 'NT1']) # # tar command tests