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: v16.2.6~54^2~22 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d2df9d3f744016bbc8f62249eb9a3fa7c100831b;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 (cherry picked from commit 141072bc71b23d10554cb3b3414451a7eda76ce4) --- diff --git a/src/pybind/mgr/cephadm/tests/test_cephadm.py b/src/pybind/mgr/cephadm/tests/test_cephadm.py index d85e27ab9901..36ec08e7469c 100644 --- a/src/pybind/mgr/cephadm/tests/test_cephadm.py +++ b/src/pybind/mgr/cephadm/tests/test_cephadm.py @@ -1112,7 +1112,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()