]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/pybind/rbd: convert from nose to pytest
authorCasey Bodley <cbodley@redhat.com>
Tue, 20 Jun 2023 18:46:40 +0000 (14:46 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 10 Jan 2024 20:57:54 +0000 (15:57 -0500)
commit57d07d711ff509b008402969b65a69d2ee81cbc7
tree80d9bbe5b0fcd1911c7fe96dbddc189eb53f0a62
parent322fc615e67de87ccc9fe429c6dbb2058aa9c7d8
test/pybind/rbd: convert from nose to pytest

* use fixtures for temporary images and groups
* use pytest.skip instead of nose.SkipTest
* replace setUp/tearDown with setup/teardown_method
* add @pytest.mark.skip_if_crimson
* replace nose assertions

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit af04457a43921bcac85b572098245a4c8a79452e)

Conflicts:
qa/suites/crimson-rados/rbd/tasks/rbd_python_api_tests.yaml
does not exist on quincy
qa/suites/crimson-rados/rbd/tasks/rbd_python_api_tests_old_format.yaml
qa/workunits/rbd/test_librbd_python.sh
src/test/pybind/test_rbd.py
skip_if_crimson filter not present on quincy
qa/workunits/rbd/test_librbd_python.sh
src/test/pybind/assertions.py [new file with mode: 0644]
src/test/pybind/test_rbd.py