Skip to content

Commit ad880f6

Browse files
authored
Merge pull request ceph#58677 from rhcs-dashboard/fix-cephfs-e2e-error
mgr/test_orchestrator: add apply_mds command in the test_orch Reviewed-by: Avan Thakkar <[email protected]>
2 parents 0ad4dbe + 90bc354 commit ad880f6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/pybind/mgr/test_orchestrator/module.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,3 +304,11 @@ def apply_mon(self, spec):
304304
assert all([isinstance(h[0], str) for h in spec.placement.hosts])
305305
assert all([isinstance(h[1], str) or h[1] is None for h in spec.placement.hosts])
306306
return spec.one_line_str()
307+
308+
@handle_orch_error
309+
def apply_mds(self, spec):
310+
#type: (ServiceSpec) -> str
311+
312+
assert not spec.placement.hosts or len(spec.placement.hosts) == spec.placement.count
313+
assert all([isinstance(h, str) for h in spec.placement.hosts])
314+
return spec.one_line_str()

0 commit comments

Comments
 (0)