Skip to content

pgremapper test: Prevent tests from accidentally sharing Ceph command implementations - #39

Merged
baergj merged 1 commit into
mainfrom
fix-test-cmd-impl-sharing
May 19, 2023
Merged

baergj merged 1 commit into
mainfrom
fix-test-cmd-impl-sharing

Conversation

@baergj

@baergj baergj commented May 19, 2023

Copy link
Copy Markdown
Contributor

It turns out that quite a few tests of ours were working like luck as they were inheriting command implementations from previous tests. If any of these tests were run by themselves or in a different order, they would fail.

Explicitly clear command implementations in teardownTest(), introduce setupTest() with some reduced sane defaults, and then fix tests to configure Ceph command implementations after running setupTest().

… implementations

It turns out that quite a few tests of ours were working like luck as
they were inheriting command implementations from previous tests. If any
of these tests were run by themselves or in a different order, they
would fail.

Explicitly clear command implementations in teardownTest(), introduce
setupTest() with some reduced sane defaults, and then fix tests to
configure Ceph command implementations after running setupTest().
@baergj
baergj merged commit 14fba70 into main May 19, 2023
@baergj
baergj deleted the fix-test-cmd-impl-sharing branch May 19, 2023 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants