From: Ralph Boehme Date: Sun, 29 Oct 2023 10:09:04 +0000 (+0100) Subject: CI: smb3unix.py: use libsmb.SMB2_FIND_POSIX_INFORMATION X-Git-Url: http://git.samba.org/samba.git/?a=commitdiff_plain;h=6944aa7cafd536598053812ce6b66b4d8e284859;p=metze%2Fsamba-autobuild%2F.git CI: smb3unix.py: use libsmb.SMB2_FIND_POSIX_INFORMATION Signed-off-by: Ralph Boehme Reviewed-by: David Mulder --- diff --git a/python/samba/tests/smb3unix.py b/python/samba/tests/smb3unix.py index 7b25c4bcd68..bdca1e5d41a 100644 --- a/python/samba/tests/smb3unix.py +++ b/python/samba/tests/smb3unix.py @@ -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'],