From: Noel Power Date: Thu, 19 Dec 2019 17:43:10 +0000 (+0000) Subject: selftest/knownfail.d knownfail samba3.blackbox.smbclient_auth.plain X-Git-Tag: ldb-2.2.0~1017 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ecaaef4ff7ecefbeec58b814c674831cf408a30d;p=thirdparty%2Fsamba.git 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 Reviewed-by: Ralph Boehme --- diff --git a/selftest/skip_smb1_fails b/selftest/skip_smb1_fails index 7a983df7a7b..b5a2a09afde 100644 --- a/selftest/skip_smb1_fails +++ b/selftest/skip_smb1_fails @@ -6,10 +6,6 @@ # a) remove the failing test # b) port the failing test to SMB2 # c) fix the test -^samba3.blackbox.smbclient_auth.plain.--option=clientusespnego=no --option=clientntlmv2auth=no -mNT1\(ad_member\) -^samba3.blackbox.smbclient_auth.plain.--option=clientusespnego=no --option=clientntlmv2auth=no -mNT1.member_creds\(ad_member\) -^samba3.blackbox.smbclient_auth.plain.--option=clientusespnego=no --option=clientntlmv2auth=no -mNT1.member_creds\(nt4_member\) -^samba3.blackbox.smbclient_auth.plain.--option=clientusespnego=no --option=clientntlmv2auth=no -mNT1\(nt4_member\) ^samba3.blackbox.smbclient_basic.NT1\(nt4_dc_schannel\) ^samba3.blackbox.smbclient_s3.NT1.plain.member_creds\(ad_member\) ^samba3.blackbox.smbclient_s3.NT1.plain.member_creds\(nt4_member\) diff --git a/source3/selftest/tests.py b/source3/selftest/tests.py index 3609defc8c9..df984531e7c 100755 --- a/source3/selftest/tests.py +++ b/source3/selftest/tests.py @@ -269,7 +269,12 @@ for env in ["nt4_dc", "nt4_member", "ad_member", "ad_dc", "ad_dc_ntvfs", "s4memb plantestsuite("samba3.blackbox.smbclient_ntlm.plain SMB3", env, [os.path.join(samba3srcdir, "script/tests/test_smbclient_ntlm.sh"), '$SERVER', '$DC_USERNAME', '$DC_PASSWORD', "never", smbclient3, "SMB3", configuration]) for options in ["--option=clientntlmv2auth=no", "--option=clientusespnego=no --option=clientntlmv2auth=no", "--option=clientusespnego=no --option=clientntlmv2auth=no -mNT1", ""]: - for env in ["nt4_member", "ad_member"]: + # don't attempt to run SMB1 tests in nt4_member or ad_member + # as these test envs don't support SMB1, use nt4_dc instead + environs = ["nt4_member", "ad_member"] + if "NT1" in options or "LANMAN2" in options: + environs = ["nt4_dc_smb1_done"] + for env in environs: plantestsuite("samba3.blackbox.smbclient_auth.plain.%s" % (options), env, [os.path.join(samba3srcdir, "script/tests/test_smbclient_auth.sh"), '$SERVER', '$SERVER_IP', '$DC_USERNAME', '$DC_PASSWORD', smbclient3, configuration, options]) plantestsuite("samba3.blackbox.smbclient_auth.plain.%s.member_creds" % (options), env, [os.path.join(samba3srcdir, "script/tests/test_smbclient_auth.sh"), '$SERVER', '$SERVER_IP', '$SERVER/$USERNAME', '$PASSWORD', smbclient3, configuration, options])