Pavel Filipenský
b36a64289c
tests: Replace PREFIX_ABS with PREFIX
...
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org >
Reviewed-by: Andreas Schneider <asn@samba.org >
2025-07-10 15:17:34 +00:00
Ralph Boehme
93ad870a1e
tests: expand SMB3 POSIX test for Windows illegal characters behaviour
...
The test was testing file creation, but not FIND behaviour.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15862
Signed-off-by: Ralph Boehme <slow@samba.org >
Reviewed-by: Jeremy Allison <jra@samba.org >
2025-07-07 16:47:35 +00:00
Ralph Boehme
e18a5381a8
tests: test SMB3 POSIX append-IO behaviour
...
Signed-off-by: Ralph Boehme <slow@samba.org >
Reviewed-by: Jeremy Allison <jra@samba.org >
2025-01-07 22:04:33 +00:00
Ralph Boehme
5c36cd2b9e
tests: add a test for copy-chunk on a POSIX handle
...
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15751
Signed-off-by: Ralph Boehme <slow@samba.org >
Reviewed-by: Jeremy Allison <jra@samba.org >
2025-01-07 22:04:32 +00:00
Ralph Boehme
c9001999ca
tests: use libsmb.unix_mode_to_wire() in smb3unix.py
...
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15751
Signed-off-by: Ralph Boehme <slow@samba.org >
Reviewed-by: Jeremy Allison <jra@samba.org >
2025-01-07 22:04:32 +00:00
Ralph Boehme
63d59c15bb
tests: use clean_file() from our superclass in smb3unix.py
...
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15751
Signed-off-by: Ralph Boehme <slow@samba.org >
Reviewed-by: Jeremy Allison <jra@samba.org >
2025-01-07 22:04:32 +00:00
Ralph Boehme
d46bfc5d50
tests: move wire_mode_to_unix() to libsmb.py
...
Signed-off-by: Ralph Boehme <slow@samba.org >
Reviewed-by: Volker Lendecke <vl@samba.org >
2024-11-27 18:22:28 +00:00
Volker Lendecke
79d3b504ce
tests: Use unix_mode_to_wire() in smb3unix tests
...
Also add the file type. Not really relevant in create, IMHO it looks
nicer in the code.
Signed-off-by: Volker Lendecke <vl@samba.org >
Reviewed-by: Ralph Boehme <slow@samba.org >
2024-11-19 18:11:29 +00:00
Jule Anger
1428519372
tests: add test for cli_get_posix_fs_info
...
Signed-off-by: Jule Anger <janger@samba.org >
Reviewed-by: Volker Lendecke <vl@samba.org >
Autobuild-User(master): Volker Lendecke <vl@samba.org >
Autobuild-Date(master): Mon Oct 14 08:48:07 UTC 2024 on atb-devel-224
2024-10-14 08:48:07 +00:00
Volker Lendecke
93db1c7f3b
pylibsmb: Fix a typo
...
pylibsmb is supposed to be used only internally, at least I hope this
has not made it into an API that is perceived to be publically used.
Signed-off-by: Volker Lendecke <vl@samba.org >
Reviewed-by: Ralph Boehme <slow@samba.org >
Autobuild-User(master): Ralph Böhme <slow@samba.org >
Autobuild-Date(master): Thu Sep 26 16:35:55 UTC 2024 on atb-devel-224
2024-09-26 16:35:55 +00:00
Volker Lendecke
83794d08bc
tests: Check that we return the posix type in query_directory
...
Signed-off-by: Volker Lendecke <vl@samba.org >
Reviewed-by: Ralph Boehme <slow@samba.org >
2024-09-26 15:22:46 +00:00
Volker Lendecke
3b63170f50
tests: Check that posix extensions return the file type
...
We'll need to check more, but this is a start
Signed-off-by: Volker Lendecke <vl@samba.org >
Reviewed-by: Ralph Boehme <slow@samba.org >
2024-09-26 15:22:46 +00:00
Volker Lendecke
5a3fd9c0f5
idl: Rename smb3_posix_cc_info.posix_perms to posix_mode
...
We'll stash the file type in there soon
Signed-off-by: Volker Lendecke <vl@samba.org >
Reviewed-by: Ralph Boehme <slow@samba.org >
2024-09-26 15:22:46 +00:00
Volker Lendecke
ecb17c12c5
smbd: Test reparse tag in smb3_posix_cc_info
...
Signed-off-by: Volker Lendecke <vl@samba.org >
Reviewed-by: Jeremy Allison <jra@samba.org >
2024-05-14 22:29:36 +00:00
Pavel Filipenský
833c3f26b4
python/tests: Fix nlink test in smb3unix on btrfs filesystem
...
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org >
Reviewed-by: Volker Lendecke <vl@samba.org >
Autobuild-User(master): Pavel Filipensky <pfilipensky@samba.org >
Autobuild-Date(master): Tue May 14 13:37:53 UTC 2024 on atb-devel-224
2024-05-14 13:37:53 +00:00
Rob van der Linde
6ac4833678
python: tests: update all super calls to python 3 style in tests
...
Signed-off-by: Rob van der Linde <rob@catalyst.net.nz >
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz >
Reviewed-by: Andrew Bartlett <abartlet@samba.org >
[abartlet@samba.org Some python2 style super() calls remain due
to being an actual, even if reasonable, behaviour change]
2023-11-30 01:05:32 +00:00
Rob van der Linde
6bcfcacd53
python: PEP275: docstrings should always use double quotes
...
Signed-off-by: Rob van der Linde <rob@catalyst.net.nz >
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz >
Reviewed-by: Andrew Bartlett <abartlet@samba.org >
2023-11-30 01:05:32 +00:00
Ralph Boehme
8ccc809f93
CI/smb3unix: add test_delete_on_close
...
BUG:https://bugzilla.samba.org/show_bug.cgi?id=15517
Signed-off-by: Ralph Boehme <slow@samba.org >
Reviewed-by: Jeremy Allison <jra@samba.org >
2023-11-13 18:35:32 +00:00
Ralph Boehme
273d48504e
CI: smb3unix.py: check more attributes of test files (and dirs) in test_posix_perm_files()
...
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): Sun Nov 5 19:35:51 UTC 2023 on atb-devel-224
2023-11-05 19:35:51 +00:00
Ralph Boehme
7a5228ffce
CI: smb3unix.py: check basic CreateContexts response
...
Signed-off-by: Ralph Boehme <slow@samba.org >
Reviewed-by: David Mulder <dmulder@samba.org >
Autobuild-User(master): Ralph Böhme <slow@samba.org >
Autobuild-Date(master): Tue Oct 31 05:41:17 UTC 2023 on atb-devel-224
2023-10-31 05:41:17 +00:00
Ralph Boehme
ea89dd0069
libsmb: infer posix context from info_level
...
No need for an explcit additional argument, we can just infer this from the
info_level.
Signed-off-by: Ralph Boehme <slow@samba.org >
Reviewed-by: David Mulder <dmulder@samba.org >
2023-10-31 04:38:42 +00:00
Ralph Boehme
6944aa7caf
CI: smb3unix.py: use libsmb.SMB2_FIND_POSIX_INFORMATION
...
Signed-off-by: Ralph Boehme <slow@samba.org >
Reviewed-by: David Mulder <dmulder@samba.org >
2023-10-31 04:38:42 +00:00
Volker Lendecke
b3cae8dcf1
conf: Remove "smb3 unix extensions" parameter
...
Always offer it, it's a client thing to ask for it or not.
Signed-off-by: Volker Lendecke <vl@samba.org >
Reviewed-by: Ralph Boehme <slow@samba.org >
Reviewed-by: Jeremy Allison <jra@samba.org >
Autobuild-User(master): Jeremy Allison <jra@samba.org >
Autobuild-Date(master): Thu Sep 21 17:43:23 UTC 2023 on atb-devel-224
2023-09-21 17:43:23 +00:00
Andreas Schneider
e6f0e4d532
python:tests: Avoid exceptions in cleanup code if a test fails in smb3unix.py
...
Signed-off-by: Andreas Schneider <asn@samba.org >
Reviewed-by: Ralph Boehme <slow@samba.org >
2023-01-26 12:15:33 +00:00
David Mulder
bbc82a5d42
s3: Test that store_smb2_posix_info hides info for '..'
...
Signed-off-by: David Mulder <dmulder@samba.org >
Reviewed-by: Volker Lendecke <vl@samba.org >
2022-11-29 10:26:38 +00:00
David Mulder
a73d903238
tests/s3: Test file/dir permissions with SMB3 posix
...
Signed-off-by: David Mulder <dmulder@suse.com >
Reviewed-by: Volker Lendecke <vl@samba.org >
2022-11-29 10:26:37 +00:00
David Mulder
09c8426b95
tests/s3: Test case sensitive open with SMB3 posix
...
Disabled because we don't handle posix paths
correctly yet.
Signed-off-by: David Mulder <dmulder@suse.com >
Reviewed-by: Volker Lendecke <vl@samba.org >
2022-11-29 10:26:37 +00:00
David Mulder
160173ee06
tests/s3: Test delete on close with SMB3 posix
...
Signed-off-by: David Mulder <dmulder@suse.com >
Reviewed-by: Volker Lendecke <vl@samba.org >
2022-11-29 10:26:37 +00:00
David Mulder
f0e1137425
tests/s3: Test reserved chars in posix filename
...
Disabled because we don't handle posix paths
correctly yet.
Signed-off-by: David Mulder <dmulder@suse.com >
Reviewed-by: Volker Lendecke <vl@samba.org >
2022-11-29 10:26:37 +00:00
David Mulder
7c2f08d564
tests/s3: Test SMB2_FIND_POSIX_INFORMATION dir query
...
Signed-off-by: David Mulder <dmulder@suse.com >
Reviewed-by: Volker Lendecke <vl@samba.org >
2022-11-29 10:26:37 +00:00
Volker Lendecke
9d4ac46ea8
tests: Use samba.tests.libsmb.LibsmbTests in smb3unix.py
...
Signed-off-by: Volker Lendecke <vl@samba.org >
Reviewed-by: Jeremy Allison <jra@samba.org >
2022-10-27 18:18:36 +00:00
Volker Lendecke
a5156649d5
tests: Test basic handling of SMB2_CREATE_TAG_POSIX
...
Signed-off-by: Volker Lendecke <vl@samba.org >
Reviewed-by: Ralph Boehme <slow@samba.org >
Autobuild-User(master): Ralph Böhme <slow@samba.org >
Autobuild-Date(master): Fri Sep 2 14:31:25 UTC 2022 on sn-devel-184
2022-09-02 14:31:25 +00:00
Volker Lendecke
51f99b7f19
tests: Test invalid smb3 unix negotiate contexts
...
Signed-off-by: Volker Lendecke <vl@samba.org >
Reviewed-by: Ralph Boehme <slow@samba.org >
2022-09-02 13:31:38 +00:00
Volker Lendecke
887facd373
tests: Add smb3 posix negotiate tests
...
Make sure we do and don't announce posix depending on "smb3 unix
extensions" parameter
Signed-off-by: Volker Lendecke <vl@samba.org >
Reviewed-by: Ralph Boehme <slow@samba.org >
2022-09-02 13:31:38 +00:00