]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cephadm: add support for not mocking certain call methods
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 30 Jan 2025 00:10:47 +0000 (19:10 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 30 Jan 2025 00:41:01 +0000 (19:41 -0500)
commitc20073f425c9a58263c902b553d92e86ed621e05
tree82fbbdb086bfb7963e1f21e8c839705260f2e264
parent52b573299cd8183a02c87e6c2618a4e5018593fb
cephadm: add support for not mocking certain call methods

Add support for not mocking certain call methods that are usually mocked
out when with_cephadm_ctx is called. These mocks are fairly limited and
do not coordinate well when other mocks (esp. funkypatch) is being used
in a test. Allow the caller to set `mock_cephadm_call_fn=False` and skip
setting these mocks.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/tests/fixtures.py