]> 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 11:42:19 +0000 (17:12 +0530)
commit3c0d554ee69c1340cd21809dbfd2e3d41dba1094
tree387b1e4dc696626a84eb2863e6aff2e03563d121
parent06e65487441e1ef4716a3763342b1f10964dff10
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
- minor conflict due slightly different file in tentacle vs main
qa/workunits/fs/test_python.sh
src/test/pybind/test_cephfs.py