1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-19 00:17:51 +02:00

Add error type support for Linux Ping (#575)

* feat: add icmp error handle into linux_parse

* refactor: fixed timestamp offset logic(including error-response-type condition)
This commit is contained in:
Mabuchin
2024-09-08 11:46:43 +09:00
committed by GitHub
parent 8a22f8a468
commit 1593d0bf79
3 changed files with 83 additions and 23 deletions

View File

@ -597,7 +597,7 @@ class MyTests(unittest.TestCase):
"""
Test 'ping' on Ubuntu 22.4 with destination unreachable message
"""
self.assertEqual(list(jc.parsers.ping_s.parse(self.ubuntu_22_4_ping_dest_unreachable.splitlines(), quiet=True)), [self.ubuntu_22_4_ping_dest_unreachable_streaming_json])
self.assertEqual(list(jc.parsers.ping_s.parse(self.ubuntu_22_4_ping_dest_unreachable.splitlines(), quiet=True)), self.ubuntu_22_4_ping_dest_unreachable_streaming_json)
def test_ping_s_hostname_I_ubuntu_22_4(self):