]> git-server-git.apps.pok.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)
committerSebastian Wagner <sewagner@redhat.com>
Tue, 10 Aug 2021 14:32:17 +0000 (16:32 +0200)
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>
(cherry picked from commit 141072bc71b23d10554cb3b3414451a7eda76ce4)

src/pybind/mgr/cephadm/tests/test_cephadm.py

index d85e27ab9901f8209a5f36a24707021372507f86..36ec08e7469c9c2339ff48b3e7081e9be5dacf51 100644 (file)
@@ -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()