From 94badd0e232ef3b53ef267eca417f3d7ae8846ad 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_linux.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_linux.py b/tests/test_linux.py index ff6a4b8..54415a9 100644 --- a/tests/test_linux.py +++ b/tests/test_linux.py @@ -2033,7 +2033,8 @@ class TestGetSystemIdentity: identity = driver.get_system_identity() - 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": "", # Supermicro's placeholder "board_serial": "ZM155S026022", -- 2.54.0