]> git.apps.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>
Fri, 6 Dec 2024 06:50:38 +0000 (12:20 +0530)
commit0e6c5212aafe5344bcd8925f588d65dd95177dd2
tree4ac53bd74383bb783dc77bcab22c0e6066f82407
parenteb5f80fd3e4eb6a1255108a490820503ad326104
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>
(cherry picked from commit b8f3db5b4042b737a4146833269f82512421e0a5)
qa/tasks/cephfs/test_nfs.py
src/pybind/mgr/nfs/tests/test_nfs.py