From: Tim Beale Date: Thu, 13 Dec 2018 03:29:33 +0000 (+1300) Subject: selftest: Give the backup testenvs a 'test1' share X-Git-Tag: ldb-1.6.1~470 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a310de2db13c02a602e74139cb47ea9a25628e01;p=thirdparty%2Fsamba.git selftest: Give the backup testenvs a 'test1' share The ntacls_backup tests use the test1 share, and we want to run them against the restoredc (which has SMBv1 disabled). The xattr.tdb file is needed for the backend_obj.wrap_getxattr() call (in ntacls.py) to work. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13676 Signed-off-by: Tim Beale Reviewed-by: Jeremy Allison --- diff --git a/selftest/target/Samba4.pm b/selftest/target/Samba4.pm index 5346cb172df..f2635e574cd 100755 --- a/selftest/target/Samba4.pm +++ b/selftest/target/Samba4.pm @@ -3007,12 +3007,14 @@ sub prepare_dc_testenv # add support for sysvol/netlogon/tmp shares $ctx->{share} = "$ctx->{prefix_abs}/share"; push(@{$ctx->{directories}}, "$ctx->{share}"); + push(@{$ctx->{directories}}, "$ctx->{share}/test1"); $ctx->{smb_conf_extra_options} = " $conf_options max xmit = 32K server max protocol = SMB2 samba kcc command = /bin/true + xattr_tdb:file = $ctx->{statedir}/xattr.tdb [sysvol] path = $ctx->{statedir}/sysvol @@ -3029,6 +3031,12 @@ sub prepare_dc_testenv posix:oplocktimeout = 3 posix:writetimeupdatedelay = 50000 +[test1] + path = $ctx->{share}/test1 + read only = no + posix:sharedelay = 100000 + posix:oplocktimeout = 3 + posix:writetimeupdatedelay = 500000 "; my $env = $self->provision_raw_step1($ctx);