]> 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>
Thu, 11 Sep 2025 14:30:57 +0000 (20:00 +0530)
commit6021dda7ed137445885979cd4d4b28c770abce13
treedffbca1268fb44112fe5249c99d361478edb4e34
parent05082a932984bb6329481c14ee76ae033c019f4e
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>
qa/workunits/fs/test_python.sh
src/test/pybind/test_cephfs.py