]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
qa, test: run unit tests for cephfs.pyx with non-root user
authorRishabh Dave <ridave@redhat.com>
Fri, 25 Jul 2025 08:20:06 +0000 (13:50 +0530)
committerRishabh Dave <ridave@redhat.com>
Tue, 7 Oct 2025 16:28:28 +0000 (21:58 +0530)
commit1e082beec687fefa59516bf3745275d43769ee5a
tree9c6e1e34e3d5a37a72c04ff40bd82b93e968e314
parent99c7c56e8f26f45d634adcbe9ee9c33c8a5a3287
qa, test: run unit tests for cephfs.pyx with non-root user

Run test_python.sh with non-root user. This makes it necessary to change
the owner user and group of file system root to be same as this non-root
user. This brings testing closer to the real-world scenario and also
allows exercising negative tests where an FS op would fail for a non-root
user but it would pass for root user.

There are few tests that exercise FS operations where root user is
needed. Group these tests under a separate class and add extra code for
this class that allows these tests to run with root UID and GID.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 6021dda7ed137445885979cd4d4b28c770abce13)

Conflicts:
src/test/pybind/test_cephfs.py
- Slight difference in this file compared to main branch version led to
  confict.
qa/workunits/fs/test_python.sh
src/test/pybind/test_cephfs.py