From: Adam King Date: Mon, 19 Jul 2021 16:14:16 +0000 (-0400) Subject: mgr/cephadm: fix unit test for don't touch offline hosts X-Git-Tag: v17.1.0~1238^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=141072bc71b23d10554cb3b3414451a7eda76ce4;p=ceph.git mgr/cephadm: fix unit test for don't touch offline hosts We use an offline_hosts set for marking offline hosts rather than the host status so changing this unit test to reflect that Signed-off-by: Adam King --- diff --git a/src/pybind/mgr/cephadm/tests/test_cephadm.py b/src/pybind/mgr/cephadm/tests/test_cephadm.py index b80500b108b84..e6082a8c778d7 100644 --- a/src/pybind/mgr/cephadm/tests/test_cephadm.py +++ b/src/pybind/mgr/cephadm/tests/test_cephadm.py @@ -1108,7 +1108,7 @@ spec: assert len(cephadm_module.cache.get_daemons_by_type('mgr')) == 3 # put one host in offline state and one host in maintenance state - cephadm_module.inventory._inventory['test2']['status'] = 'offline' + cephadm_module.offline_hosts = {'test2'} cephadm_module.inventory._inventory['test3']['status'] = 'maintenance' cephadm_module.inventory.save()