]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/nfs: add additional tests for cmount_path & user_id deletion
authorAvan Thakkar <athakkar@redhat.com>
Thu, 29 Aug 2024 10:39:14 +0000 (16:09 +0530)
committerAvan Thakkar <athakkar@redhat.com>
Thu, 29 Aug 2024 12:15:55 +0000 (17:45 +0530)
commitb8f3db5b4042b737a4146833269f82512421e0a5
tree12f2567ea1f4882125b0f1980dcdc673d8df1e95
parentd02b94d8200a681f14d868387d155f081400ef34
mgr/nfs: add additional tests for cmount_path & user_id deletion

Add unit tests for unique user ID generation, deletion and `cmount_path` handling in FSAL exports

- Ensure unique user ID generation for different FSAL blocks when creating exports.
- Test deletion behavior when multiple exports share the same user ID and one has a unique ID.
- Test default behavior when no `cmount_path` is provided (defaults to `/`).
- Add tests to validate error handling for invalid `cmount_path` values.

Signed-off-by: Avan Thakkar <athakkar@redhat.com>
qa/tasks/cephfs/test_nfs.py
src/pybind/mgr/nfs/tests/test_nfs.py