8 Read json output of admin socket command 'dump_ops_in_flight' from
9 stdin, and check that it is consistent.
11 read = sys.stdin.read()
12 records = json.loads(read)
14 info_types = ['num_ops', 'ops']
15 assert sorted(records.keys()) == sorted(info_types)
16 assert(records['num_ops'] == len(records['ops']))
18 for op in records['ops']:
19 assert op['description'] is not None
20 assert op['received_at'] is not None
21 assert op['age'] is not None
22 assert op['flag_point'] is not None
24 assert op['client_info']['client'] is not None
25 assert op['client_info']['tid'] is not None
27 if __name__ == '__main__':