]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/cephadm: add test_offline, edit with_cephadm_module
authorMelissa <li.melissa.kun@gmail.com>
Wed, 21 Jul 2021 03:28:04 +0000 (23:28 -0400)
committerMelissa Li <li.melissa.kun@gmail.com>
Fri, 20 Aug 2021 18:27:46 +0000 (14:27 -0400)
commit9b334fe971977ceebd32b86eba4090d735df9937
tree66f6308e20fe48ea8d2f23d319066a4db7113e24
parent1633ba325b03fee19016d8b0bf9e780b9f8f7157
mgr/cephadm: add test_offline, edit with_cephadm_module

add `event_loop` and `tkey` object to with_cephadm_module, and create MockEventLoopThread in fixtures.py to test async functions of ssh.py.
rewrite test_offline to be compatible with asyncssh

Fixes: https://tracker.ceph.com/issues/44676
Signed-off-by: Melissa Li <li.melissa.kun@gmail.com>
src/pybind/mgr/cephadm/tests/fixtures.py
src/pybind/mgr/cephadm/tests/test_cephadm.py