diff options
author | Zach Chadwick <zachad@qacafe.com> | 2023-02-19 01:55:21 +0000 |
---|---|---|
committer | Gilbert Ramirez <gilbertr@gmail.com> | 2023-02-19 01:55:21 +0000 |
commit | 5c0af364f168e1cbdf3b27ff13d1457fa12ac6db (patch) | |
tree | 3129fb4cb06efdd0681ce2207c0e4168e9ccc574 /test | |
parent | a9a7dcec212c7932ee0886d2c0c848c0b7a8c614 (diff) |
Sharkd: Add column header labels to the "status" output
Diffstat (limited to 'test')
-rw-r--r-- | test/suite_sharkd.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/suite_sharkd.py b/test/suite_sharkd.py index c89c30689b..4f3a8d4fcb 100644 --- a/test/suite_sharkd.py +++ b/test/suite_sharkd.py @@ -74,7 +74,7 @@ class case_sharkd(subprocesstest.SubprocessTestCase): check_sharkd_session(( {"jsonrpc":"2.0", "id":1, "method":"status"}, ), ( - {"jsonrpc":"2.0","id":1,"result":{"frames":0,"duration":0.000000000}}, + {"jsonrpc":"2.0","id":1,"result":{"frames":0,"duration":0.000000000,"columns":["No.","Time","Source","Destination","Protocol","Length","Info"]}}, )) def test_sharkd_req_status(self, check_sharkd_session, capture_file): @@ -86,7 +86,8 @@ class case_sharkd(subprocesstest.SubprocessTestCase): ), ( {"jsonrpc":"2.0","id":1,"result":{"status":"OK"}}, {"jsonrpc":"2.0","id":2,"result":{"frames": 4, "duration": 0.070345000, - "filename": "dhcp.pcap", "filesize": 1400}}, + "filename": "dhcp.pcap", "filesize": 1400, + "columns":["No.","Time","Source","Destination","Protocol","Length","Info"]}}, )) def test_sharkd_req_analyse(self, check_sharkd_session, capture_file): |