1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

CI: smb3unix.py: use libsmb.SMB2_FIND_POSIX_INFORMATION

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: David Mulder <dmulder@samba.org>
This commit is contained in:
Ralph Boehme 2023-10-29 11:09:04 +01:00
parent 4ff144c247
commit 6944aa7caf

View File

@ -239,7 +239,7 @@ class Smb3UnixTests(samba.tests.libsmb.LibsmbTests):
CreateContexts=[posix_context(perm)])
c.close(f)
res = c.list("", info_level=100, posix=True)
res = c.list("", info_level=libsmb.SMB2_FIND_POSIX_INFORMATION, posix=True)
found_files = {get_string(i['name']): i['perms'] for i in res}
for fname, perm in test_files.items():
self.assertIn(get_string(fname), found_files.keys(),
@ -262,7 +262,7 @@ class Smb3UnixTests(samba.tests.libsmb.LibsmbTests):
posix=True)
self.assertTrue(c.have_posix())
res = c.list("", info_level=100, posix=True)
res = c.list("", info_level=libsmb.SMB2_FIND_POSIX_INFORMATION, posix=True)
found_files = {get_string(i['name']): i for i in res}
dotdot = found_files['..']
self.assertEqual('S-1-0-0', dotdot['owner_sid'],