selftest: Give the backup testenvs a 'test1' share
authorTim Beale <timbeale@catalyst.net.nz>
Thu, 13 Dec 2018 03:29:33 +0000 (16:29 +1300)
committerJeremy Allison <jra@samba.org>
Thu, 17 Jan 2019 00:40:31 +0000 (01:40 +0100)
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 <timbeale@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>
selftest/target/Samba4.pm

index 5346cb172df7200147d7a35337abd376a624487f..f2635e574cdf55a81cba91824331d3b3d11a668e 100755 (executable)
@@ -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);