bbaumbach/samba-autobuild/.git
4 years agoselftest: add two more nbt.dgram flapping tests
Ralph Boehme [Mon, 6 Apr 2020 09:03:13 +0000 (11:03 +0200)]
selftest: add two more nbt.dgram flapping tests

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Noel Power <noel.power@suse.com>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Mon Apr  6 10:43:18 UTC 2020 on sn-devel-184

4 years agoselftest: remove unnecessary .* from flapping enty
Ralph Boehme [Mon, 6 Apr 2020 09:02:14 +0000 (11:02 +0200)]
selftest: remove unnecessary .* from flapping enty

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Noel Power <noel.power@suse.com>
4 years agogitlab-ci: Add coverity scan runner
Andreas Schneider [Mon, 30 Mar 2020 09:52:05 +0000 (11:52 +0200)]
gitlab-ci: Add coverity scan runner

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agoselftest/flapping: mark samba3.nbt.dgram.netlogon.* as flapping
Noel Power [Fri, 3 Apr 2020 15:05:37 +0000 (16:05 +0100)]
selftest/flapping: mark samba3.nbt.dgram.netlogon.* as flapping

Post SMB1/SMB2 test env split to help in removing smb1
samba3.nbt.dgram.netlogon* fails randomly. It is unrelated as far
as we can see to the changes but must be a side affect of runtime
order or some such.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Noel Power <npower@samba.org>
Autobuild-Date(master): Sat Apr  4 01:12:05 UTC 2020 on sn-devel-184

4 years agosmbd: move files_struct.lock_failure_seen to a bitfield
Ralph Boehme [Fri, 3 Apr 2020 07:48:58 +0000 (09:48 +0200)]
smbd: move files_struct.lock_failure_seen to a bitfield

Updated comment in vfs.h explaining ABI change.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Apr  3 20:41:34 UTC 2020 on sn-devel-184

4 years agosmbd: move files_struct.closing to a bitfield
Ralph Boehme [Fri, 3 Apr 2020 06:06:27 +0000 (08:06 +0200)]
smbd: move files_struct.closing to a bitfield

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: move files_struct.use_ofd_locks to a bitfield
Ralph Boehme [Fri, 3 Apr 2020 06:02:23 +0000 (08:02 +0200)]
smbd: move files_struct.use_ofd_locks to a bitfield

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: move files_struct.backup_intent to a bitfield
Ralph Boehme [Fri, 3 Apr 2020 06:01:45 +0000 (08:01 +0200)]
smbd: move files_struct.backup_intent to a bitfield

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: move files_struct.is_sparse to a bitfield
Ralph Boehme [Fri, 3 Apr 2020 05:52:10 +0000 (07:52 +0200)]
smbd: move files_struct.is_sparse to a bitfield

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: move files_struct.delete_on_close to a bitfield
Ralph Boehme [Fri, 3 Apr 2020 05:48:08 +0000 (07:48 +0200)]
smbd: move files_struct.delete_on_close to a bitfield

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: move files_struct.initial_delete_on_close to a bitfield
Ralph Boehme [Fri, 3 Apr 2020 05:43:38 +0000 (07:43 +0200)]
smbd: move files_struct.initial_delete_on_close to a bitfield

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: move files_struct.aio_write_behind to a bitfield
Ralph Boehme [Fri, 3 Apr 2020 05:39:34 +0000 (07:39 +0200)]
smbd: move files_struct.aio_write_behind to a bitfield

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: move files_struct.is_directory to a bitfield
Ralph Boehme [Thu, 2 Apr 2020 16:21:11 +0000 (18:21 +0200)]
smbd: move files_struct.is_directory to a bitfield

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: move files_struct.modified to a bitfield
Ralph Boehme [Thu, 2 Apr 2020 15:37:02 +0000 (17:37 +0200)]
smbd: move files_struct.modified to a bitfield

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: move files_struct.can_write to a bitfield
Ralph Boehme [Thu, 2 Apr 2020 15:28:32 +0000 (17:28 +0200)]
smbd: move files_struct.can_write to a bitfield

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: move files_struct.can_read to a bitfield
Ralph Boehme [Thu, 2 Apr 2020 15:18:43 +0000 (17:18 +0200)]
smbd: move files_struct.can_read to a bitfield

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: move files_struct.can_lock to a bitfield
Ralph Boehme [Thu, 2 Apr 2020 15:09:36 +0000 (17:09 +0200)]
smbd: move files_struct.can_lock to a bitfield

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: move files_struct.write_time_forced to a bitfield
Ralph Boehme [Thu, 2 Apr 2020 13:39:32 +0000 (15:39 +0200)]
smbd: move files_struct.write_time_forced to a bitfield

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: move files_struct.update_write_time_on_close to a bitfield
Ralph Boehme [Thu, 2 Apr 2020 13:37:15 +0000 (15:37 +0200)]
smbd: move files_struct.update_write_time_on_close to a bitfield

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: move files_struct.update_write_time_triggered to a bitfield
Ralph Boehme [Thu, 2 Apr 2020 13:31:10 +0000 (15:31 +0200)]
smbd: move files_struct.update_write_time_triggered to a bitfield

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: move files_struct.kernel_share_modes_taken to a bitfield
Ralph Boehme [Wed, 1 Apr 2020 09:59:10 +0000 (11:59 +0200)]
smbd: move files_struct.kernel_share_modes_taken to a bitfield

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: reindent if expression in real_write_file()
Ralph Boehme [Thu, 2 Apr 2020 08:29:15 +0000 (10:29 +0200)]
smbd: reindent if expression in real_write_file()

No change in behaviour.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: fix if expression that checks when to call vfs_fill_sparse()
Ralph Boehme [Thu, 2 Apr 2020 08:27:21 +0000 (10:27 +0200)]
smbd: fix if expression that checks when to call vfs_fill_sparse()

Noone complained so far, skip bugreport.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: reformat an if expression in smbd_smb2_close()
Ralph Boehme [Thu, 2 Apr 2020 07:56:46 +0000 (09:56 +0200)]
smbd: reformat an if expression in smbd_smb2_close()

No change in behavour.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: reformat a function call in rename_internals_fsp()
Ralph Boehme [Thu, 2 Apr 2020 07:23:22 +0000 (09:23 +0200)]
smbd: reformat a function call in rename_internals_fsp()

No change in behaviour.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: reformat an if expression in reply_readbraw()
Ralph Boehme [Thu, 2 Apr 2020 07:13:56 +0000 (09:13 +0200)]
smbd: reformat an if expression in reply_readbraw()

No change in behaviour.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: reformat calling ensure_canon_entry_valid_on_set() in unpack_canon_ace()
Ralph Boehme [Thu, 2 Apr 2020 06:16:33 +0000 (08:16 +0200)]
smbd: reformat calling ensure_canon_entry_valid_on_set() in unpack_canon_ace()

No change in behaviour.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: CHECK_WRITE macro reformatting
Ralph Boehme [Wed, 1 Apr 2020 13:19:51 +0000 (15:19 +0200)]
smbd: CHECK_WRITE macro reformatting

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: CHECK_READ_IOCTL macro reformatting
Ralph Boehme [Wed, 1 Apr 2020 13:08:50 +0000 (15:08 +0200)]
smbd: CHECK_READ_IOCTL macro reformatting

A subsequent commit will replace can_read with something much longer.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: CHECK_READ_SMB2 macro reformatting
Ralph Boehme [Wed, 1 Apr 2020 13:08:50 +0000 (15:08 +0200)]
smbd: CHECK_READ_SMB2 macro reformatting

A subsequent commit will replace can_read with something much longer.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agosmbd: CHECK_READ macro reformatting
Ralph Boehme [Wed, 1 Apr 2020 13:08:50 +0000 (15:08 +0200)]
smbd: CHECK_READ macro reformatting

A subsequent commit will replace can_read with something much longer.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
4 years agoselftest: Add list of tests to be ported
Noel Power [Thu, 5 Mar 2020 11:46:37 +0000 (11:46 +0000)]
selftest: Add list of tests to be ported

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Fri Apr  3 16:45:48 UTC 2020 on sn-devel-184

4 years agoselftest: Don't skip smb1 tests and remove associate skip file
Noel Power [Tue, 10 Dec 2019 16:10:20 +0000 (16:10 +0000)]
selftest: Don't skip smb1 tests and remove associate skip file

remove the skip file and the code to use it from the build as
all tests now run in either specific smb1 enabled envs or normal
(non smb1) envs

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agoselftest: Create instructions for generating skip file entries
Noel Power [Fri, 6 Dec 2019 07:50:24 +0000 (07:50 +0000)]
selftest: Create instructions for generating skip file entries

create_smb1_fail_skipfile.txt provides both
  + instructions
  + patch to perform the pre-requisite steps to be able to
    modify the environment and parse test output

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agoselftest/knownfail.d: samba3.blackbox.smbclient_basic.NT1.smbclient
Noel Power [Fri, 20 Dec 2019 12:49:08 +0000 (12:49 +0000)]
selftest/knownfail.d: samba3.blackbox.smbclient_basic.NT1.smbclient

Add known fail for samba3.blackbox.smbclient_basic.NT1.smbclient
which fails against nt4_schannel (because it doesn't support
SMB1)

Additionally since we don't have plans to create a nt4_schannel_smb1
test env provide additional coverage by running this test against
nt4_dc_smb1 (which still support SMB1)

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agoselftest/knownfail.d: Add samba4.blackbox.smbclient
Noel Power [Thu, 19 Dec 2019 18:39:09 +0000 (18:39 +0000)]
selftest/knownfail.d: Add samba4.blackbox.smbclient

This test fails for admember & chgdcpass test envs because they
don't support SMB1

Note: There is some coverage for this test with other test envs e.g.
      s4member, ad_dc_ntvfs & others

Additionally IIUC this test seems to be for testing smbclient4
(if this assumption is incorrect then we could substitute with
smbclient(s3)) However, for the moment it seems best to disable this
test as smbclient4 doesn't support SMB1 and we have sufficient coverage
with other SMB1 supporting envs

Also remove associated entries from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agoselftest/knownfail.d: Add samba4.smb.signing disabled
Noel Power [Thu, 19 Dec 2019 18:37:28 +0000 (18:37 +0000)]
selftest/knownfail.d: Add samba4.smb.signing disabled

Add know fail for these tests that run against ad_member
which won't succeed because SMB1 isn't supported

However we do have some coverage with s4member (which depends on
ad_dc_ntvfs) which still supports SMB1.

Additionally remove the associated entries from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agoselftest/knownfail.d: Add entries for samba3.unix.whoami
Noel Power [Thu, 19 Dec 2019 18:10:02 +0000 (18:10 +0000)]
selftest/knownfail.d: Add entries for samba3.unix.whoami

samba3.unix.whoami depends of posix extensions which
currently only work with SMB1. These tests fail with
environments nt4_member & ad_member. We currently don't
have plans to provide '_smb1' variants of these environments.

So in addition to adding the knownfail we add some
coverage by running this test with test env ad_dc_smb1.

Also we remove the associated entries from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agoselftest/knownfail.d: Add samba3.blackbox.smbclient_s3.NT1
Noel Power [Thu, 19 Dec 2019 16:39:00 +0000 (16:39 +0000)]
selftest/knownfail.d: Add samba3.blackbox.smbclient_s3.NT1

samba3.blackbox.smbclient_s3.NT1.plain &
samba3.blackbox.smbclient_s3.NT1.sign tests will fail running against
test envs ad_member & nt4_member (because those envs don't support SMB1)

However we do have some coverage with nt4_dc_smb1_done

We could maybe just delete these tests for those environments for
the moment just create specific knownfail entries and remove associated
entries from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agoselftest/knownfail.d knownfail samba3.blackbox.smbclient_auth.plain
Noel Power [Thu, 19 Dec 2019 17:43:10 +0000 (17:43 +0000)]
selftest/knownfail.d knownfail samba3.blackbox.smbclient_auth.plain

samba3.blackbox.smbclient_auth.plain will fail against
ad_member & nt4_member (because these envs don't
support SMB1) so we don't run these tests where either
'LANMAN2' or 'NT1' are in the options, in these cases
to get coverage so we use nt4_dc_smb1

Creating new envs for such a small amount of strictly SMB1 tests anyway
seems overkill. For the moment just create specific knownfail entries
and remove the associated entries from skip_smb1_fail

Signed-off-by: Noel Power <npower@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agoselftest/knownfail.d Add samba3.blackbox.smbclient_ntlm.plain (NT1)
Noel Power [Thu, 19 Dec 2019 15:55:22 +0000 (15:55 +0000)]
selftest/knownfail.d Add samba3.blackbox.smbclient_ntlm.plain (NT1)

NT1 flavour of samba3.blackbox.smbclient_ntlm.plain tests will
fail against ad_member, maptoguest, fl2000dc & nt4_member
(because these envs don't support SMB1)

We do however have some coverage with test envs
nt4_dc_smb1_done & ad_dc_ntvfs.

We could maybe just delete these tests for these environments,
creating new envs for such a small amount of strictly SMB1 tests anyway
seem overkill. For the moment just create specific knownfail entries

associated entries from skip_smb1_fail have also been deleted

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos4/selftest: Move samba4.rpc.join tests to ad_dc_default_smb1
Noel Power [Mon, 16 Dec 2019 18:08:47 +0000 (18:08 +0000)]
s4/selftest: Move samba4.rpc.join tests to ad_dc_default_smb1

The following tests which fail when run against a test env that
doesn't support SMB1

samba4.rpc.join on ncacn_ip_tcp with bigendian(ad_dc_default)
samba4.rpc.join on ncacn_ip_tcp with seal,padcheck(ad_dc_default)
samba4.rpc.join on ncacn_ip_tcp with validate(ad_dc_default)
samba4.rpc.join on ncacn_np with bigendian(ad_dc_default)
samba4.rpc.join on ncacn_np with seal,padcheck(ad_dc_default)
samba4.rpc.join on ncacn_np with validate(ad_dc_default)
samba4.rpc.join on ncalrpc with bigendian(ad_dc_default:local)
samba4.rpc.join on ncalrpc with seal,padcheck(ad_dc_default:local)
samba4.rpc.join on ncalrpc with validate(ad_dc_default:local)

have been moved to ad_dc_default_smb1

results verified with

VALIDATE="validate" python3 source4/selftest/tests.py | grep "^samba4.rpc.join" | grep ad_dc_default | sort

corrosponding entries have been removed from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos4/selftest: Move samba4.ldap.passwordsettings to ad_dc_default_smb1
Noel Power [Mon, 16 Dec 2019 17:43:58 +0000 (17:43 +0000)]
s4/selftest: Move samba4.ldap.passwordsettings to ad_dc_default_smb1

Test samba4.ldap.passwordsettings fails when run against test env that
doesn't support SMB1 so move to ad_dc_default_smb1

Note: no skip entries to be removed as tests are known failures

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos4/selftest: Move samba4.ldap.nested-search to ad_dc_default_smb1
Noel Power [Mon, 16 Dec 2019 17:42:54 +0000 (17:42 +0000)]
s4/selftest: Move samba4.ldap.nested-search to ad_dc_default_smb1

Test samba4.ldap.nested-search fails when run against test env
that doesn't support SMB1 so move to ad_dc_default_smb1

Also remove entry from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos4/selftest: Modify samba4.blackbox.chgdcpass to use smbclient(s3)
Noel Power [Mon, 16 Dec 2019 17:08:35 +0000 (17:08 +0000)]
s4/selftest: Modify samba4.blackbox.chgdcpass to use smbclient(s3)

Test was using smbclient4 but this fails when used in environments that
don't support SMB1. We use smbclient(s3) instead. There remains one
failure due to behaviour differences between the smbclients.

The behavioural changes are related not to SMB1/SMB2 but
commits d4ea637eb869e0c3540140b7ae04c2b483f7693c &
fce66b22ea312abb252fb9dc748b3adc6fbab49f

Perhaps we need to modify s3 smbclient in a similar way? This is however
something that deserves further discussion.

Move this failing part to a knownfail for the moment.

Also the corrosponding entry in skip_smb1_fail has been removed

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.smbtorture_s3.vfs_aio* to fileserver_smb1
Noel Power [Mon, 16 Dec 2019 16:51:22 +0000 (16:51 +0000)]
s3/selftest: Move samba3.smbtorture_s3.vfs_aio* to fileserver_smb1

move all failing tests to fileserver_smb1 (exception is the SMB2-BASIC
test) doesn't need to move
Additionally remove the associated entries from skip_smb1_file

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agoselftest: Modify fileserver_smb1 with vfs_aio params
Noel Power [Tue, 7 Jan 2020 10:55:19 +0000 (10:55 +0000)]
selftest: Modify fileserver_smb1 with vfs_aio params

To support running tests samba3.smbtorture_s3.vfs_aio* in
test env fileserver_smb1 we need to add some params to
fileserver_smb1 config files.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.smbtorture_s3.hidenewfiles to fileserver_smb1
Noel Power [Mon, 16 Dec 2019 16:26:04 +0000 (16:26 +0000)]
s3/selftest: Move samba3.smbtorture_s3.hidenewfiles to fileserver_smb1

Test samba3.smbtorture_s3.hidenewfiles fails when run against test
environments that don't support SMB1. Move this test to fileserver_smb1
and remove entry from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agoselftest: Add 'hide new files timeout' related data to fileserver_smb1
Noel Power [Mon, 16 Dec 2019 16:20:07 +0000 (16:20 +0000)]
selftest: Add 'hide new files timeout' related data to fileserver_smb1

In order to support samba3.smbtorture_s3.hidenewfiles (and moving
the test to fileserver_smb1) we need to ensure we have some supporting
config

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move tests raw.samba3hide, raw.samba3checkfsp & raw.samba3closeerr
Noel Power [Mon, 16 Dec 2019 16:07:34 +0000 (16:07 +0000)]
s3/selftest: Move tests raw.samba3hide, raw.samba3checkfsp & raw.samba3closeerr

Move tests raw.samba3hide, raw.samba3checkfsp & raw.samba3closeerr from
ad_dc to ad_dc_smb1. Also update flapping and knownfail entries to cater
for the new env.

no entries in skip files to be removed as flapping & knownfail negate
the need for this.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move tests raw.samba3hide, raw.samba3checkfsp & raw.samba3closeerr
Noel Power [Mon, 16 Dec 2019 16:01:33 +0000 (16:01 +0000)]
s3/selftest: Move tests raw.samba3hide, raw.samba3checkfsp & raw.samba3closeerr

Move tests raw.samba3hide, raw.samba3checkfsp & raw.samba3closeerr from
simpleserver to fileserver. Also need a knownfail for raw.samba3closeerr
which fails in envs that NT ACLs enabled. We will get extra coverage
from ad_dc_smb1 when the same tests are moved there.

Remove the associated entries from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest Move samba3.smbtorture_s3.plain.RENAME-ACCESS to nt4_dc_smb1
Noel Power [Fri, 13 Dec 2019 18:27:25 +0000 (18:27 +0000)]
s3/selftest Move samba3.smbtorture_s3.plain.RENAME-ACCESS to nt4_dc_smb1

Also remove associated entry from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos4/selftest: Move samba.tests.libsmb to nt4_dc_smb1
Noel Power [Fri, 13 Dec 2019 14:17:02 +0000 (14:17 +0000)]
s4/selftest: Move samba.tests.libsmb to nt4_dc_smb1

Also remove associated entry from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.unix.whoami to nt4_dc_smb1
Noel Power [Fri, 13 Dec 2019 14:15:51 +0000 (14:15 +0000)]
s3/selftest: Move samba3.unix.whoami to nt4_dc_smb1

Also remove the associated entry from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest Move samba3.smbtorture_s3.plain.MANGLE-ILLEGAL to ad_dc_smb1
Noel Power [Fri, 13 Dec 2019 14:15:12 +0000 (14:15 +0000)]
s3/selftest Move samba3.smbtorture_s3.plain.MANGLE-ILLEGAL to ad_dc_smb1

Also remove the associated entry from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.smbtorture_s3.plain.POSIX* to nt4_dc_smb1
Noel Power [Fri, 13 Dec 2019 14:10:50 +0000 (14:10 +0000)]
s3/selftest: Move samba3.smbtorture_s3.plain.POSIX* to nt4_dc_smb1

    The tests menioned below all fail when run against environments that
    don't support SMB1 so we move them to nt4_dc_smb1

    python3 source3/selftest/tests.py | grep "^samba3.smbtorture_s3.crypt\." | grep nt4_dc_smb1 | cut -f1 -d\( | sort -u

    samba3.smbtorture_s3.plain.POSIX
    samba3.smbtorture_s3.plain.POSIX-ACL-OPLOCK
    samba3.smbtorture_s3.plain.POSIX-ACL-SHAREROOT
    samba3.smbtorture_s3.plain.POSIX-APPEND
    samba3.smbtorture_s3.plain.POSIX-BLOCKING-LOCK
    samba3.smbtorture_s3.plain.POSIX-MKDIR
    samba3.smbtorture_s3.plain.POSIX-OFD-LOCK
    samba3.smbtorture_s3.plain.POSIX-STREAM-DELETE
    samba3.smbtorture_s3.plain.POSIX-SYMLINK-ACL
    samba3.smbtorture_s3.plain.POSIX-SYMLINK-EA
    samba3.smbtorture_s3.plain.WINDOWS-BAD-SYMLINK (this is a posix
test)

Also remove entries from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.smbtorture_s3.crypt.POSIX* to nt4_dc_smb1
Noel Power [Fri, 13 Dec 2019 14:07:54 +0000 (14:07 +0000)]
s3/selftest: Move samba3.smbtorture_s3.crypt.POSIX* to nt4_dc_smb1

The tests menioned below all fail when run against environments that
don't support SMB1 so we move them to nt4_dc_smb1

python3 source3/selftest/tests.py | grep "^samba3.smbtorture_s3.crypt\." | grep nt4_dc_smb1 | cut -f1 -d\( | sort -u

samba3.smbtorture_s3.crypt.POSIX
samba3.smbtorture_s3.crypt.POSIX-ACL-OPLOCK
samba3.smbtorture_s3.crypt.POSIX-ACL-SHAREROOT
samba3.smbtorture_s3.crypt.POSIX-APPEND
samba3.smbtorture_s3.crypt.POSIX-BLOCKING-LOCK
samba3.smbtorture_s3.crypt.POSIX-MKDIR
samba3.smbtorture_s3.crypt.POSIX-OFD-LOCK
samba3.smbtorture_s3.crypt.POSIX-STREAM-DELETE
samba3.smbtorture_s3.crypt.POSIX-SYMLINK-ACL
samba3.smbtorture_s3.crypt.POSIX-SYMLINK-EA
samba3.smbtorture_s3.crypt.WINDOWS-BAD-SYMLINK (this is a posix test)

also remove these entries from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.smbtorture_s3.crypt_server.TORTURE to nt4_dc_smb1
Noel Power [Tue, 3 Mar 2020 17:25:30 +0000 (17:25 +0000)]
s3/selftest: Move samba3.smbtorture_s3.crypt_server.TORTURE to nt4_dc_smb1

Test fails to negotiation SMB1 in environments that require SMB1 so
move to nt4_dc_smb1 env.

entry also removed from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.smbtorture_s3.crypt_client.* to nt4_dc_smb1
Noel Power [Fri, 13 Dec 2019 13:43:32 +0000 (13:43 +0000)]
s3/selftest: Move samba3.smbtorture_s3.crypt_client.* to nt4_dc_smb1

Move samba3.smbtorture_s3.crypt_client.* tests which fail against
environments that don't support SMB1.

The following tests have been moved from nt4_dc -> nt4_dc_smb1

samba3.smbtorture_s3.crypt_client.ATTR
samba3.smbtorture_s3.crypt_client.BROWSE
samba3.smbtorture_s3.crypt_client.CASE-INSENSITIVE-CREATE
samba3.smbtorture_s3.crypt_client.CHAIN1
samba3.smbtorture_s3.crypt_client.CHAIN2
samba3.smbtorture_s3.crypt_client.CHAIN3
samba3.smbtorture_s3.crypt_client.CHKPATH
samba3.smbtorture_s3.crypt_client.CLEANUP1
samba3.smbtorture_s3.crypt_client.CLEANUP2
samba3.smbtorture_s3.crypt_client.CLEANUP4
samba3.smbtorture_s3.crypt_client.CLI_SPLICE
samba3.smbtorture_s3.crypt_client.DELETE
samba3.smbtorture_s3.crypt_client.DELETE-LN
samba3.smbtorture_s3.crypt_client.DELETE-STREAM
samba3.smbtorture_s3.crypt_client.DIR
samba3.smbtorture_s3.crypt_client.DIR-CREATETIME
samba3.smbtorture_s3.crypt_client.FDPASS
samba3.smbtorture_s3.crypt_client.FDSESS
samba3.smbtorture_s3.crypt_client.IOCTL
samba3.smbtorture_s3.crypt_client.LARGE_READX
samba3.smbtorture_s3.crypt_client.LOCK1
samba3.smbtorture_s3.crypt_client.LOCK10
samba3.smbtorture_s3.crypt_client.LOCK11
samba3.smbtorture_s3.crypt_client.LOCK13
samba3.smbtorture_s3.crypt_client.LOCK2
samba3.smbtorture_s3.crypt_client.LOCK3
samba3.smbtorture_s3.crypt_client.LOCK4
samba3.smbtorture_s3.crypt_client.LOCK5
samba3.smbtorture_s3.crypt_client.LOCK6
samba3.smbtorture_s3.crypt_client.LOCK7
samba3.smbtorture_s3.crypt_client.LOCK9A
samba3.smbtorture_s3.crypt_client.LOCK9B
samba3.smbtorture_s3.crypt_client.NTTRANS-FSCTL
samba3.smbtorture_s3.crypt_client.OPEN
samba3.smbtorture_s3.crypt_client.OPLOCK1
samba3.smbtorture_s3.crypt_client.OPLOCK2
samba3.smbtorture_s3.crypt_client.OWNER-RIGHTS
samba3.smbtorture_s3.crypt_client.PIDHIGH
samba3.smbtorture_s3.crypt_client.PROPERTIES
samba3.smbtorture_s3.crypt_client.RENAME
samba3.smbtorture_s3.crypt_client.RENAME-ACCESS
samba3.smbtorture_s3.crypt_client.RW1
samba3.smbtorture_s3.crypt_client.RW2
samba3.smbtorture_s3.crypt_client.RW3
samba3.smbtorture_s3.crypt_client.RW-SIGNING
samba3.smbtorture_s3.crypt_client.SHORTNAME-TEST
samba3.smbtorture_s3.crypt_client.STREAMERROR
samba3.smbtorture_s3.crypt_client.TCON
samba3.smbtorture_s3.crypt_client.TCON2
samba3.smbtorture_s3.crypt_client.TCONDEV
samba3.smbtorture_s3.crypt_client.TORTURE
samba3.smbtorture_s3.crypt_client.TRANS2
samba3.smbtorture_s3.crypt_client.UID-REGRESSION-TEST
samba3.smbtorture_s3.crypt_client.UNLINK
samba3.smbtorture_s3.crypt_client.W2K
samba3.smbtorture_s3.crypt_client.WILDDELETE
samba3.smbtorture_s3.crypt_client.XCOPY

and have been removed from skip_smb1_fail

list of tests modified has been verified with

python3 source3/selftest/tests.py | grep "^samba3.smbtorture_s3." | grep nt4_dc_smb1 | cut -f1 -d\( | sort -u

addionally any knownfail entries have been updated as appropriate.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move rpc.samba3.netlogon & rpc.samba3.sessionkey to nt4_dc_smb1
Noel Power [Fri, 13 Dec 2019 13:32:22 +0000 (13:32 +0000)]
s3/selftest: Move rpc.samba3.netlogon & rpc.samba3.sessionkey to nt4_dc_smb1

Move test samba3.rpc.samba3.netlogon & ^samba3.rpc.samba3.sessionkey
to nt4_dc_smb1 as these tests will fail when run against an environment
that doesn't support SMB1 and remove the entries from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.rpc.lsa.lookupsids to nt4_dc_smb1
Noel Power [Fri, 13 Dec 2019 13:21:13 +0000 (13:21 +0000)]
s3/selftest: Move samba3.rpc.lsa.lookupsids to nt4_dc_smb1

Test samba3.rpc.lsa.lookupsids when run with protocol options specifying
smb1 will of course fail when run against environments the don't support
SMB1 so move such tests to nt4_dc_smb1

Additionally remove those entries from the skip file as porting is
not needed.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.raw.session to nt4_dc_smb1
Noel Power [Fri, 13 Dec 2019 12:39:48 +0000 (12:39 +0000)]
s3/selftest: Move samba3.raw.session to nt4_dc_smb1

Move test samba3.raw.session which fails in test environments that
don't support SMB1 to nt4_dc_smb1 and remove entry from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.raw.search to nt4_dc_smb1
Noel Power [Fri, 13 Dec 2019 12:32:09 +0000 (12:32 +0000)]
s3/selftest: Move samba3.raw.search to nt4_dc_smb1

Test samba3.raw.search fails in test environments that don't
support SMB1 so move test to nt4_dc_smb1 and remove entry from
skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.raw.samba3posixtimedlock to nt4_dc_smb1
Noel Power [Mon, 16 Dec 2019 12:54:11 +0000 (12:54 +0000)]
s3/selftest: Move samba3.raw.samba3posixtimedlock to nt4_dc_smb1

Test samba3.raw.samba3posixtimedlock will not succeed in test
environments that don't support SMB1 so we move it to nt4_dc_smb1
and remove associated entries from skip_smb1_selftest

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.raw.samba3posixtimedlock to ad_dc_smb1
Noel Power [Mon, 16 Dec 2019 12:51:25 +0000 (12:51 +0000)]
s3/selftest: Move samba3.raw.samba3posixtimedlock to ad_dc_smb1

Test samba3.raw.samba3posixtimedlock will not succeed in test
environments that don't support SMB1 so we move it to ad_dc_smb1
and also remove associated entry from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Prep commit split handling for raw.samba3posixtimedlock
Noel Power [Mon, 16 Dec 2019 12:48:39 +0000 (12:48 +0000)]
s3/selftest: Prep commit split handling for raw.samba3posixtimedlock

raw.samba3posixtimedlock & smb2.samba3misc share the same logic block
but in a future commit we will need to split these tests into
'_smb1' & non '_smb1' environments

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move raw.samba3checkfsp, raw.samba3hide & raw.samba3closeerr
Noel Power [Fri, 13 Dec 2019 12:22:05 +0000 (12:22 +0000)]
s3/selftest: Move raw.samba3checkfsp, raw.samba3hide & raw.samba3closeerr

Tests samba3.raw.samba3checkfsp, samba3.raw.samba3hide &
samba3.raw.samba3closeerr fail in test environments that don't support
SMB1 so move to nt4_dc_smb1. Additionally samba3.raw.samba3closeer was
a known fail in nt4_dc so this also needs to be adjusted for the new
env.

Remove the remaining entries from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest Move samba.raw.read to nt4_dc_smb1
Noel Power [Fri, 13 Dec 2019 12:19:38 +0000 (12:19 +0000)]
s3/selftest Move samba.raw.read to nt4_dc_smb1

Move test samba.raw.read which fails in test environments that
don't support SMB1 to nt4_dc_smb1 and remove entry from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.raw.notify & samba3.raw.oplock to nt4_dc_smb1
Noel Power [Fri, 13 Dec 2019 12:18:03 +0000 (12:18 +0000)]
s3/selftest: Move samba3.raw.notify & samba3.raw.oplock to nt4_dc_smb1

Move samba3.raw.notify & samba3.raw.oplock which fail when used with
test environments that don't support SMB1 to nt4_dc_smb1 and remove
associated entry from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Use variable for test env rather than hardcoding
Noel Power [Fri, 13 Dec 2019 12:14:17 +0000 (12:14 +0000)]
s3/selftest: Use variable for test env rather than hardcoding

This change makes it easier and clearer in following commits
to make specific changes based on test name.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.raw.chkpath to nt4_dc_smb1
Noel Power [Fri, 13 Dec 2019 12:10:29 +0000 (12:10 +0000)]
s3/selftest: Move samba3.raw.chkpath to nt4_dc_smb1

Move samba3.raw.chkpath which fails in environments that don't
support SMB1 to nt4_dc_smb1 and remove entry from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.raw.acls* to nt4_dc_smb1
Noel Power [Fri, 13 Dec 2019 12:01:49 +0000 (12:01 +0000)]
s3/selftest: Move samba3.raw.acls* to nt4_dc_smb1

Tests samba3.raw.acls* don't succeed in environments that don't
support SMB1 so move them to nt4_dc_smb1

Also need to adjust knownfail for samba3.raw.acls nfs4acl_xattr*
Additionally remove the entries for test from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.blackbox.smbclient_s3.NT1.sign to nt4_dc_smb1
Noel Power [Fri, 13 Dec 2019 11:57:40 +0000 (11:57 +0000)]
s3/selftest: Move samba3.blackbox.smbclient_s3.NT1.sign to nt4_dc_smb1

samba3.blackbox.smbclient_s3.NT1.sign as the name suggests will fail
in test envs that do not support SMB1 so move it to a _smb1
environment.

Additionally the associated skip_smb1_fails entry is removed as the
test doesn't need to be ported

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Remove unnecssary for loop
Noel Power [Fri, 13 Dec 2019 11:49:16 +0000 (11:49 +0000)]
s3/selftest: Remove unnecssary for loop

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.blackbox.smbclient_ntlm.plain to nt4_dc_smb1
Noel Power [Fri, 3 Apr 2020 13:14:58 +0000 (14:14 +0100)]
s3/selftest: Move samba3.blackbox.smbclient_ntlm.plain to nt4_dc_smb1

samba3.blackbox.smbclient_ntlm.plain will fail in test environment
that doesn't support SMB1 so move to nt4_dc_smb1

This test only fails with options that require it to communicate over
SMB1, there are sibling tests that test against >= SMB2 so also we
remove the skip_smb1_fail entry as this test doen't need porting
(for this env)

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.rap.sam to nt4_dc_smb1
Noel Power [Fri, 13 Dec 2019 11:39:52 +0000 (11:39 +0000)]
s3/selftest: Move samba3.rap.sam to nt4_dc_smb1

This tests fails against nt4_dc because it doesn't support SMB1 so
we move it to nt4_dc_smb1 and remove the corrosponding entry from
skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.blackbox.smbclient_large_file*NT1 to nt4_dc_smb1
Noel Power [Fri, 13 Dec 2019 11:34:13 +0000 (11:34 +0000)]
s3/selftest: Move samba3.blackbox.smbclient_large_file*NT1 to nt4_dc_smb1

Test samba3.blackbox.smbclient_large_file*NT1 will only succeed against
test environments that support SMB1 so we move it to nt4_dc_smb1.

Additionally remove the entry from the skip_smb1_faill file

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.blackbox.smbclient_s3.NT1.plain to nt4_dc_smb1
Noel Power [Fri, 13 Dec 2019 11:28:06 +0000 (11:28 +0000)]
s3/selftest: Move samba3.blackbox.smbclient_s3.NT1.plain to nt4_dc_smb1

Test samba3.blackbox.smbclient_s3.NT1.plain as its name suggests
requires a test environment that supports SMB1 so we move it to one.
Additionally the entry from the skip_smb1_fail file is removed (for this
env) as not porting is required.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Remove unnecessary for loop
Noel Power [Fri, 13 Dec 2019 11:04:51 +0000 (11:04 +0000)]
s3/selftest: Remove unnecessary for loop

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.blackbox.smbclient_s3.NT1.crypt to nt4_dc_smb1
Noel Power [Fri, 13 Dec 2019 10:49:51 +0000 (10:49 +0000)]
s3/selftest: Move samba3.blackbox.smbclient_s3.NT1.crypt to nt4_dc_smb1

now that a specific SMB1 enabled env is available lets move this
test to nt4_dc_smb1 env. Additionally the entry is removed from
skip_smb1_fails as no porting is required

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Remove unnecessary 'for' loop
Noel Power [Fri, 13 Dec 2019 10:44:51 +0000 (10:44 +0000)]
s3/selftest: Remove unnecessary 'for' loop

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.blackbox.smbclient_auth.plain to _smb1_done
Noel Power [Fri, 13 Dec 2019 10:28:40 +0000 (10:28 +0000)]
s3/selftest: Move samba3.blackbox.smbclient_auth.plain to _smb1_done

samba3.blackbox.smbclient_auth.plain will fail in test environment
that doesn't support SMB1 so move to directly to test env
nt4_dc_smb1_done as it doesn't require porting.

This test only fails with options that require it to communicate over
SMB1, there are sibling tests that test against >= SMB2 so also we
remove the skip_smb1_fail entry as this test doen't need porting
(for this env)

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.base.rw1 to nt4_dc_smb1
Noel Power [Fri, 13 Dec 2019 10:26:59 +0000 (10:26 +0000)]
s3/selftest: Move samba3.base.rw1 to nt4_dc_smb1

Test samba3.base.rw1 only works in test environments that support
SMB1 so move test to nt4_dc_smb1 and remove the entry from
skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.raw.lock & samba3.base.lock to nt4_dc_smb1
Noel Power [Tue, 7 Jan 2020 10:32:33 +0000 (10:32 +0000)]
s3/selftest: Move samba3.raw.lock & samba3.base.lock to nt4_dc_smb1

samba3.raw.lock & samba3.raw.lock currently will only work in
environments that negotiate SMB1 so lets move them to new nt4_dc_smb1
and remove those entries form skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos4/selftest: Adjust samba4.blackbox.pkinit to use (s3) smbclient
Noel Power [Thu, 12 Dec 2019 14:48:54 +0000 (14:48 +0000)]
s4/selftest: Adjust samba4.blackbox.pkinit to use (s3) smbclient

samba4.blackbox.pkinit falls to pass in environments that don't support
SMB2 because of use (s4) smbclient4. Change test to use (s3) smbclient

Additionally a test within the test script test_kinit_trusts_heimdal.sh
explicitly uses smbclient4 which can't negotiate SMB1 in environments
that don't support it. Add knownfail to cater for this & also remove entry
from the skip file

Further reference the smbclient4 specific test is associated with
https://bugzilla.samba.org/show_bug.cgi?id=12554 so maybe we should
keep it for the moment

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos4/selftest: Move samba.tests.net_join_no_spnego to ad_dc_smb1
Noel Power [Thu, 12 Dec 2019 11:27:18 +0000 (11:27 +0000)]
s4/selftest: Move samba.tests.net_join_no_spnego to ad_dc_smb1

Test samba.tests.net_join_no_spnego when run in environment
doesn't support SMB1 so move it to ad_dc_smb1 and remove
skip_smb1_fail entry

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos4/selftest: Move samba.tests.auth_log_pass_change to ad_dc_smb1
Noel Power [Thu, 12 Dec 2019 11:23:54 +0000 (11:23 +0000)]
s4/selftest: Move samba.tests.auth_log_pass_change to ad_dc_smb1

Test samba.tests.auth_log_pass_change  will fail when run against
environments that don't support SMB1 so move this test to ad_dc_smb1
and remove entry from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos4/selftest: Move samba.tests.auth_log to ad_dc_smb1
Noel Power [Thu, 12 Dec 2019 11:22:35 +0000 (11:22 +0000)]
s4/selftest: Move samba.tests.auth_log to ad_dc_smb1

Test samba.tests.auth_log will fail when run against environments that
don't support SMB1 so move this test to ad_dc_smb1 and removing
entry from skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.blackbox.smbclient_ntlm.plain NT1 to _smb1_done
Noel Power [Tue, 7 Jan 2020 10:28:39 +0000 (10:28 +0000)]
s3/selftest: Move samba3.blackbox.smbclient_ntlm.plain NT1 to _smb1_done

samba3.blackbox.smbclient_ntlm.plain NT1 fails in environments that
don't support SMB2 so we need to move it to the appropriate _smb1
test env and since this test doesn't need to be ported we can actually
move it directly to the _smb1_done env to indicate that.

Also remove the samba3.blackbox.smbclient_ntlm.plain NT1(ad_dc)
entry from the skip file because we have moved this to the ad_dc_smb1
*and* this test is already ported to >=SMB2

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos4/selftest: Move samba4.smb.spnego to ad_dc_smb1
Noel Power [Wed, 11 Dec 2019 13:02:25 +0000 (13:02 +0000)]
s4/selftest: Move samba4.smb.spnego to ad_dc_smb1

Moving

samba4.smb.spnego.krb5.no_optimistic(ad_dc)
samba4.smb.spnego.ntlmssp.no_optimistic(ad_dc)

and additionally removing the entries from skip_smb1_fails

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos4/selftest: Move samba4.rpc.join tests from ad_dc to ad_dc_smb1
Noel Power [Wed, 11 Dec 2019 12:53:24 +0000 (12:53 +0000)]
s4/selftest: Move samba4.rpc.join tests from ad_dc to ad_dc_smb1

Move the following tests from ad_dc to ad_dc_smb1

samba4.rpc.join with bigendian(ad_dc)
samba4.rpc.join with seal,padcheck(ad_dc)
samba4.rpc.join with validate(ad_dc)

and additionally remove the corrosponding entries from skip_smb1_fails

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos4/selftest: Move failing samba4.rpc.authcontext.* (ad_dc) to ad_dc_smb1
Noel Power [Tue, 3 Mar 2020 17:24:36 +0000 (17:24 +0000)]
s4/selftest: Move failing samba4.rpc.authcontext.* (ad_dc) to ad_dc_smb1

Move
samba4.rpc.authcontext with bigendian(ad_dc)
samba4.rpc.authcontext with seal,padcheck(ad_dc)
samba4.rpc.authcontext with validate(ad_dc)

to ad_dc_smb1 environment and remove the corrosponding entries in
skip_smb1_fail

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos4/selftest: run samba4.libsmbclient.*.NT1.* tests in ad_dc_smb1
Noel Power [Wed, 11 Dec 2019 12:33:04 +0000 (12:33 +0000)]
s4/selftest: run samba4.libsmbclient.*.NT1.* tests in ad_dc_smb1

additionally remove those related entries from skip_smb1_fails

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos4/selftest: move samba4.dfs.domain to ad_dc_smb1
Noel Power [Wed, 11 Dec 2019 12:28:05 +0000 (12:28 +0000)]
s4/selftest: move samba4.dfs.domain to ad_dc_smb1

Additionally remove the test entry from skip_smb1_fails

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.rpc.samba3.netlogon to ad_dc_smb1
Noel Power [Wed, 11 Dec 2019 18:48:38 +0000 (18:48 +0000)]
s3/selftest: Move samba3.rpc.samba3.netlogon to ad_dc_smb1

Move test samba3.rpc.samba3.netlogon which fails in enviroments that
don't support SMB1 to ad_dc_smb1 and remove the test entry from
skip_smb1_fails

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.raw.search to ad_dc_smb1 environments
Noel Power [Wed, 11 Dec 2019 18:46:36 +0000 (18:46 +0000)]
s3/selftest: Move samba3.raw.search to ad_dc_smb1 environments

Test samba3.raw.search fails in envrionments that don't support SMB1
so we move it to ad_dc_smb1 and also remove the entry in skip_smb1_fails

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.raw.read to ad_dc_smb1
Noel Power [Wed, 11 Dec 2019 18:45:33 +0000 (18:45 +0000)]
s3/selftest: Move samba3.raw.read to ad_dc_smb1

Test samba3.raw.read fails in environments that don't support SMB1
so move it to ad_dc_smb1 and also remove the entry in skip_smb1_fails

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.raw.acls to ad_dc_smb1 env
Noel Power [Wed, 11 Dec 2019 18:44:00 +0000 (18:44 +0000)]
s3/selftest: Move samba3.raw.acls to ad_dc_smb1 env

Test samba3.raw.acls fails in environments that don't support SMB1
so move it to ad_dc_smb1 and remove the entry in skip_smb1_fails

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.base.rw1 to environment ad_dc_smb1
Noel Power [Wed, 11 Dec 2019 18:42:24 +0000 (18:42 +0000)]
s3/selftest: Move samba3.base.rw1 to environment ad_dc_smb1

Test samba3.base.rw1 fails in environments that don't support
SMB1 so we move it to ad_dc_smb1 and also remove the entry in
skip_smb1_fails

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
4 years agos3/selftest: Move samba3.raw.session* to ad_dc_smb1
Noel Power [Wed, 11 Dec 2019 18:40:23 +0000 (18:40 +0000)]
s3/selftest: Move samba3.raw.session* to ad_dc_smb1

The following tests which fail when used with environments that don't
support SMB1 fail so we move them to ad_dc_smb1 instead and also remove
th entry in skip_smb1_fails

samba3.raw.session ntlm
samba3.raw.session krb5

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>