Skip to content

Commit

Permalink
Add more complex test case
Browse files Browse the repository at this point in the history
  • Loading branch information
ktbyers committed Nov 8, 2024
1 parent da97740 commit 8fd7e11
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions tests/unit/test_base_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,46 @@ def test_disable_sha2_fix():
"more data\nsome important data\n--{ candidate private private-admin }--[ ]--\nA:srl1#",
"more data\nsome important data",
),
(
"""
{
"basic system info": {
"Hostname": "srl1",
"Chassis Type": "7220 IXR-D2L",
"Part Number": "Sim Part No.",
"Serial Number": "Sim Serial No.",
"System HW MAC Address": "1A:03:00:FF:00:00",
"OS": "SR Linux",
"Software Version": "v24.7.2",
"Build Number": "319-g64b71941f7",
"Architecture": "<Unknown>",
"Last Booted": "2024-11-01T17:21:00.164Z",
"Total Memory": "<Unknown>",
"Free Memory": "<Unknown>"
}
}
--{ running }--[ ]--
A:srl1#""",
"""
{
"basic system info": {
"Hostname": "srl1",
"Chassis Type": "7220 IXR-D2L",
"Part Number": "Sim Part No.",
"Serial Number": "Sim Serial No.",
"System HW MAC Address": "1A:03:00:FF:00:00",
"OS": "SR Linux",
"Software Version": "v24.7.2",
"Build Number": "319-g64b71941f7",
"Architecture": "<Unknown>",
"Last Booted": "2024-11-01T17:21:00.164Z",
"Total Memory": "<Unknown>",
"Free Memory": "<Unknown>"
}
}
""",
),
]


Expand Down

0 comments on commit 8fd7e11

Please sign in to comment.