From dc24dd636b6146caaca89b053b7faff5e429c60a Mon Sep 17 00:00:00 2001 From: Christian Manivong Date: Fri, 13 Nov 2026 23:00:31 +0100 Subject: [PATCH] test(system-identity): compare the identity's keys only napalm-device-types reads the system firmware in the same round trip (bios_vendor, bios_version, bios_date). The driver only carries the command across, so its test checks the identity it reads and passes against napalm-device-types with and without the firmware. NetOrk/netork#2518 --- tests/test_system_identity.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_system_identity.py b/tests/test_system_identity.py index 0f1b620..664badf 100644 --- a/tests/test_system_identity.py +++ b/tests/test_system_identity.py @@ -25,7 +25,8 @@ def test_it_runs_the_shared_command(driver): identity = driver.get_system_identity() exec_.assert_called_once_with(SYSTEM_IDENTITY_COMMAND) - assert identity == { + # The identity's keys only: napalm-device-types reads more in the same round trip. + assert {k: identity[k] for k in ("system_uuid", "product_serial", "board_serial")} == { "system_uuid": "31303043-534d-c40c-7a72-6f1300000000", "product_serial": "", "board_serial": "ZM155S026022", -- 2.54.0