test(system-identity): compare the identity's keys only
driver / standard (pull_request) Successful in 15s
driver / lint (pull_request) Successful in 14s
driver / types (pull_request) Successful in 58s
driver / test (3.12) (pull_request) Successful in 1m10s
driver / test (3.13) (pull_request) Successful in 1m6s
driver / lowest (pull_request) Successful in 37s
driver / build (pull_request) Successful in 30s
driver / security (pull_request) Successful in 1m4s
CI / driver (pull_request) Successful in 2m44s
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 eff6af8b45
commit dc24dd636b
1 file changed
+2 -1
+2 -1
View File
@@ -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",