test(system-identity): compare the identity's keys only
driver / standard (pull_request) Successful in 14s
driver / lint (pull_request) Successful in 13s
driver / types (pull_request) Successful in 1m2s
driver / test (3.12) (pull_request) Successful in 1m1s
driver / test (3.13) (pull_request) Successful in 53s
driver / lowest (pull_request) Successful in 31s
driver / build (pull_request) Successful in 33s
driver / security (pull_request) Successful in 1m9s
CI / driver (pull_request) Successful in 2m37s
driver / publish (pull_request) Skipped

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
This commit is contained in:
Christian Manivong committed 2026-11-13 23:00:31 +01:00
1 parent 4db8b05ab4
commit 94badd0e23
1 file changed
+2 -1
+2 -1
View File
@@ -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",