selftest/knownfail.d: Add entries for samba3.unix.whoami
authorNoel Power <noel.power@suse.com>
Thu, 19 Dec 2019 18:10:02 +0000 (18:10 +0000)
committerRalph Boehme <slow@samba.org>
Fri, 3 Apr 2020 15:08:33 +0000 (15:08 +0000)
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>
selftest/knownfail.d/smb1-tests
selftest/skip_smb1_fails
source3/selftest/tests.py

index f11c43934eba585b59458d43580937da7d72d7ed..21aab4d639ca1ba63bc2c25ef94f0a8c54996e46 100644 (file)
 ^samba3.blackbox.smbclient_s3.NT1.(plain|sign).member_creds.rename_dotdot\((ad_member|nt4_member)\)
 ^samba3.blackbox.smbclient_s3.NT1.(plain|sign).member_creds.volume\((ad_member|nt4_member)\)
 ^samba3.blackbox.smbclient_s3.NT1.(plain|sign).member_creds.delete a non empty directory\((ad_member|nt4_member)\)
+^samba3.unix.whoami machine account.whoami\(ad_member:local\)
+^samba3.unix.whoami.whoami\(nt4_member\)
+^samba3.unix.whoami anonymous connection.whoami\(nt4_member\)
+^samba3.unix.whoami.whoami\(ad_member\)
+^samba3.unix.whoami kerberos connection.whoami\(ad_member\)
+^samba3.unix.whoami anonymous connection.whoami\(ad_member\)
+^samba3.unix.whoami ntlm user@realm.whoami\(ad_member\)
index 22b14d13025cd61c6ce41cb53b86eb6dfa705f56..2c175a9e30d4d6dfc8b36f35d3a192f314feb45d 100644 (file)
@@ -7,13 +7,6 @@
 # b) port the failing test to SMB2
 # c) fix the test
 ^samba3.blackbox.smbclient_basic.NT1\(nt4_dc_schannel\)
-^samba3.unix.whoami\(ad_member\)
-^samba3.unix.whoami anonymous connection\(ad_member\)
-^samba3.unix.whoami anonymous connection\(nt4_member\)
-^samba3.unix.whoami kerberos connection\(ad_member\)
-^samba3.unix.whoami machine account\(ad_member:local\)
-^samba3.unix.whoami\(nt4_member\)
-^samba3.unix.whoami ntlm user@realm\(ad_member\)
 ^samba4.blackbox.smbclient\(ad_member:local\)\(ad_member:local\)
 ^samba4.blackbox.smbclient\(chgdcpass:local\)\(chgdcpass:local\)
 ^samba4.smb.signing disabled on with -k no --option=gensec:spengo=no --signing=off domain-creds\(ad_member\)
index df984531e7c2978bccc1d390b9ee9178fc72bf26..be1342988f96f07d2b695f430a2b4202db860e80 100755 (executable)
@@ -587,7 +587,9 @@ for t in tests:
         plansmbtorture4testsuite(t, "ad_member:local", '//$SERVER/tmp --realm=$REALM --machine-pass --option=torture:addc=$DC_SERVER', description="machine account")
     elif t == "unix.whoami":
         plansmbtorture4testsuite(t, "nt4_member:local", '//$SERVER/tmp --machine-pass', description="machine account")
+        plansmbtorture4testsuite(t, "ad_dc_smb1:local", '//$SERVER/tmp --machine-pass', description="machine account")
         plansmbtorture4testsuite(t, "ad_member:local", '//$SERVER/tmp --machine-pass --option=torture:addc=$DC_SERVER', description="machine account")
+        plansmbtorture4testsuite(t, "ad_dc_smb1:local", '//$SERVER/tmp --machine-pass --option=torture:addc=$DC_SERVER', description="machine account")
         for env in ["nt4_dc_smb1", "nt4_member"]:
             plansmbtorture4testsuite(t, env, '//$SERVER/tmp -U$DC_USERNAME%$DC_PASSWORD')
             plansmbtorture4testsuite(t, env, '//$SERVER/tmpguest -U%', description='anonymous connection')