MCPcopy Create free account
hub / github.com/ceph/ceph / test_single_target_command

Function test_single_target_command

src/test/pybind/test_cephfs.py:843–851  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

841 diff.close()
842
843def test_single_target_command():
844 command = {'prefix': u'session ls', 'format': 'json'}
845 mds_spec = "a"
846 inbuf = b''
847 ret, outbl, outs = cephfs.mds_command(mds_spec, json.dumps(command), inbuf)
848 if outbl:
849 session_map = json.loads(outbl)
850 # Standby MDSs will return -38
851 assert(ret == 0 or ret == -38)
852
853def test_multi_target_command():
854 mds_get_command = {'prefix': 'status', 'format': 'json'}

Callers

nothing calls this directly

Calls 1

mds_commandMethod · 0.80

Tested by

no test coverage detected