From: Sage Weil Date: Thu, 11 Mar 2021 18:47:37 +0000 (-0500) Subject: mgr/cephadm/schedule: add test case X-Git-Tag: v17.1.0~2601^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ee9399a1395ec05d0392ddda1bce5595e07b3f2a;p=ceph.git mgr/cephadm/schedule: add test case Matches wonky cephadm.py placement (+1 on the count). Signed-off-by: Sage Weil --- diff --git a/src/pybind/mgr/cephadm/tests/test_scheduling.py b/src/pybind/mgr/cephadm/tests/test_scheduling.py index 5e10bc729fac..408415e92be0 100644 --- a/src/pybind/mgr/cephadm/tests/test_scheduling.py +++ b/src/pybind/mgr/cephadm/tests/test_scheduling.py @@ -556,6 +556,18 @@ class NodeAssignmentTest(NamedTuple): 'host2(port=81)', 'host3(port=81)'], ['rgw.c'] ), + # cephadm.py teuth case + NodeAssignmentTest( + 'mgr', + PlacementSpec(count=3, hosts=['host1=y', 'host2=x']), + 'host1 host2'.split(), + [ + DaemonDescription('mgr', 'y', 'host1'), + DaemonDescription('mgr', 'x', 'host2'), + ], + ['host1(name=y)', 'host2(name=x)'], + [], [] + ), ]) def test_node_assignment(service_type, placement, hosts, daemons, expected, expected_add, expected_remove):