Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NAS-131077 / 25.04 / adjust request mask in filesystem test #14456

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions tests/api2/test_190_filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,13 @@ def test_07_test_filesystem_stat_filetype(request):
assert statout['is_ctldir']

assert call('filesystem.stat', f'{path}/.zfs/snapshot/{snap_name}')['is_ctldir']
assert all(dirent['is_ctldir'] for dirent in call('filesystem.listdir', f'{path}/.zfs/snapshot'))
assert all(dirent['is_ctldir'] for dirent in call(
'filesystem.listdir', f'{path}/.zfs/snapshot', [], {'select': ['name', 'is_ctldir']}
))
assert call('filesystem.stat', f'{path}/.zfs/snapshot')['is_ctldir']
assert all(dirent['is_ctldir'] for dirent in call('filesystem.listdir', f'{path}/.zfs'))
assert all(dirent['is_ctldir'] for dirent in call(
'filesystem.listdir', f'{path}/.zfs', [], {'select': ['name', 'is_ctldir']}
))
assert call('filesystem.stat', f'{path}/.zfs')['is_ctldir']


Expand Down
Loading