make body a str
@@ -36,6 +36,6 @@ def test_callback():
ch = MockChannel()
method = MockMethod()
- body = {'id': '', 'type': 'metadata', 'file_path': '/files/tcprewrite-dot1q-2019-12-31-17_33_32.961111-UTC/pcap-node-splitter-2019-12-31-17_34_17.314910-UTC/clients/trace_5c7820e51dbabbf0476097dda838c7eabfa8e160_2019-12-31_17_18_17-client-ip-38-103-36-98-192-168-0-46-38-103-36-98-eth-udpencap-ip-frame-wsshort-udp-esp-port-4500.pcap', 'data': '', 'results': {'tool': 'p0f', 'version': '0.1.7'}}
+ body = "{'id': '', 'type': 'metadata', 'file_path': '/files/tcprewrite-dot1q-2019-12-31-17_33_32.961111-UTC/pcap-node-splitter-2019-12-31-17_34_17.314910-UTC/clients/trace_5c7820e51dbabbf0476097dda838c7eabfa8e160_2019-12-31_17_18_17-client-ip-38-103-36-98-192-168-0-46-38-103-36-98-eth-udpencap-ip-frame-wsshort-udp-esp-port-4500.pcap', 'data': '', 'results': {'tool': 'p0f', 'version': '0.1.7'}}"
os.environ['VOL_PREFIX'] = '/tmp'
callback(ch, method, None, body)
