()
| 841 | diff.close() |
| 842 | |
| 843 | def 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 | |
| 853 | def test_multi_target_command(): |
| 854 | mds_get_command = {'prefix': 'status', 'format': 'json'} |
nothing calls this directly
no test coverage detected