]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tests: Create symlinks using posix extensions
authorVolker Lendecke <vl@samba.org>
Thu, 7 Sep 2023 15:00:17 +0000 (17:00 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 8 Sep 2023 16:27:39 +0000 (16:27 +0000)
This way we can run the tests and more easily put them into knownfail
individually. Before this, everything went into the error category,
which was not so easy to catch in something like knownfail.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
python/samba/tests/smb2symlink.py
selftest/knownfail.d/symlink [new file with mode: 0644]
selftest/skip

index 14f6056ac15b81f8c782369e73a4d5460d97633f..32d2f94b37e0b0b24e59b6873a6c4cfc9f76a903 100644 (file)
@@ -34,10 +34,12 @@ class Smb2SymlinkTests(samba.tests.libsmb.LibsmbTests):
                 self.server_ip,
                 share,
                 self.lp,
-                self.creds)
+                self.creds,
+                force_smb1=True)
         except NTSTATUSError as e:
             if e.args[0] != ntstatus.NT_STATUS_CONNECTION_RESET:
                 raise
+        smb1.smb1_posix()
 
         share = samba.tests.env_get_var_value(
             "SMB2_SHARE", allow_missing=True)
diff --git a/selftest/knownfail.d/symlink b/selftest/knownfail.d/symlink
new file mode 100644 (file)
index 0000000..6413566
--- /dev/null
@@ -0,0 +1,4 @@
+^samba.tests.smb2symlink.samba.tests.smb2symlink.Smb2SymlinkTests.test_symlinkerror_directory
+^samba.tests.smb2symlink.samba.tests.smb2symlink.Smb2SymlinkTests.test_symlinkerror_file
+^samba.tests.smb2symlink.samba.tests.smb2symlink.Smb2SymlinkTests.test_symlinkerror_absolute_outside_share
+^samba.tests.smb2symlink.samba.tests.smb2symlink.Smb2SymlinkTests.test_symlinkerror_absolute_inshare
index e808367c00db7e03324b4ac4a06d8f133bc39ba1..cc2fe8979e8a99bf986aa13a38a74e3cce22d41f 100644 (file)
@@ -147,5 +147,4 @@ bench # don't run benchmarks in our selftest
 ^samba4.smb2.tcon.*\(ad_dc_ntvfs\)$ # Ignore ad_dc_ntvfs since this is a new test
 ^samba4.smb2.mkdir.*\(ad_dc_ntvfs\)$ # Ignore ad_dc_ntvfs since this is a new test
 ^samba.tests.reparsepoints.*
-^samba.tests.smb2symlink.*
 ^samba3.blackbox.open-eintr.*