]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: fix unit test for don't touch offline hosts
authorAdam King <adking@redhat.com>
Mon, 19 Jul 2021 16:14:16 +0000 (12:14 -0400)
committerAdam King <adking@redhat.com>
Wed, 28 Jul 2021 19:59:27 +0000 (15:59 -0400)
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 <adking@redhat.com>
src/pybind/mgr/cephadm/tests/test_cephadm.py

index b80500b108b849d064720d10c253a46baf5ae7f9..e6082a8c778d78b96856b309cd174e70628135e1 100644 (file)
@@ -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()