Test suite overview¶
Live checks require a deployed lab (make containerlab-deploy). Offline unit tests run via make test-offline (pytest, no deployed lab).
make test-lab¶
Runs all sections in order (one pass per service, no duplication):
| Step | Target | Module |
|---|---|---|
| 1 | make test-ssh |
lab.test_ssh |
| 2 | make test-eapi |
lab.test_eapi |
| 3 | make test-radsec |
lab.test_radsec |
| 4 | make test-syslog |
lab.test_syslog |
| 5 | make test-openconfig |
lab.test_openconfig |
| 6 | make test-kme |
lab.test_kme |
| 7 | make test-macsec-dot1x |
lab.test_macsec_dot1x |
| 8 | make test-macsec-qkd |
lab.test_macsec_qkd (always checks static MACsec; skips daemon/KME checks when QuaDRA extension absent - see QKD service) |
| 9 | make test-hosts |
lab.test_hosts - host routing matrix |
Optional extended waits: make test-macsec-dot1x-reauth (75 s fixed wait, up to 103 s including MKA retry delays) and make test-quadra-tls (135 s capture, TLS phase budget up to 250 s). Baseline checks and command overhead add to these times; see Wait times.
On a bare Linux host without PQC-capable curl/OpenSSL on the host OS, use make test-lab-runner instead. It runs the same checks from the test-runner container on the lab mgmt network (Docker + deployed lab only).
PQC live probes (TLS handshakes, eAPI command-api, gNMI GET via gnmic, SSH) use the test-runner node (arista-quantum-safe-test-runner, mgmt 172.20.127.54) by default. Override with PROBE_CLIENT=radius or PROBE_CLIENT=host when debugging.
Use VERBOSE=1 to echo every command and full output:
make test-ssh VERBOSE=1
make test-eapi VERBOSE=1
make test-openconfig VERBOSE=1
Each test page follows the same chapter order: What is checked (Check | Type | Method, using the labels below) → Pass criteria → Expected SKIP / WARN (when the suite can warn or skip) → Manual reproduction → footer (Configuration reference to the matching service page, then the Result summary link when the check records live KEX). Multi-protocol pages (OpenConfig) keep a grouped check table and may add a recorded Result summary.
Wait times¶
Tests print [wait] with the expected duration when known and the configured maximum before waiting, including without VERBOSE=1. These messages do not count as passed checks.
The defaults below describe each wait phase, not a deadline for the entire suite. Retry delays exclude time spent executing commands. Polling windows can finish up to one polling interval late, plus the final command's runtime. A healthy service can satisfy a polling check immediately. SSH and eAPI have no intentional settling wait; ordinary QuaDRA checks have no intentional rotation wait.
| Target / phase | Expected wait | Configured maximum and scope |
|---|---|---|
test-syslog: collector health |
Immediate when healthy | 90 s polling window, 2 s intervals; inspect time extra |
test-syslog: message delivery |
Usually first successful poll | 45 s polling window per switch/address family, 2 s intervals; 0.5 s capture setup extra. The 30 s cleartext guard runs concurrently and stops when delivery completes |
test-syslog: wire KEX |
7.5 s on first capture | 19 s capture/reconnect/retry delays per switch/address family across two attempts; command/decode time extra. Six sequential endpoints: 45 s expected / 114 s maximum wire waits alone |
test-radsec: AAA readiness |
Immediate when ready | 15 attempts, 2 s apart: 28 s retry delays per switch/address family; AAA command time extra |
test-macsec-dot1x: MKA convergence |
Immediate when converged | 15 paired attempts, 2 s apart: 28 s retry delays; command time extra |
test-macsec-qkd / test-quadra-tls: static MACsec convergence |
Immediate when converged | 15 attempts, 2 s apart per switch: 28 s retry delays per check, up to 56 s combined; ping/show command time extra |
test-macsec-dot1x-reauth: additional reauth phase |
75 s fixed wait (60 s period + 15 s buffer) | 103 s including up to 28 s paired MKA retry delays; baseline checks and command time extra |
test-quadra-tls: TLS phase |
135 s capture for both clients concurrently | 250 s timeout budget: 135 s capture + 15 s grace + two clients × (30 s decode + 20 s logs). Functional checks and process overhead extra; override capture length with QUADRA_TLS_CAPTURE_SEC |
test-kme: empty key pool |
Immediate when keys exist | 35 s retry window, 5 s polling intervals; each request has a 20 s Docker timeout (curl limit 15 s) |
test-openconfig: gNPSI Subscribe |
8 s stream window per endpoint | 8 s per endpoint; six sequential endpoints up to 48 s. Other RPC/TLS checks and Docker overhead extra |
test-hosts: ping responses |
Usually about 2 s per route | 30 s command timeout per route in both normal and verbose mode; 12 sequential routes, up to 360 s timeout budget; no convergence wait |
Deployment readiness is separate: images-kme-pool-wait allows a 60 s container-start polling window, then a fixed 15 s generation wait and a 90 s key-pool polling window; command time and polling intervals add overhead.
Check labels¶
| Label | Meaning |
|---|---|
[config] |
EOS show commands, listener presence, template contract |
[live] |
Real handshake, API call, AAA test, or traffic probe (non-probe-client checks) |
[live / test-runner] |
Live probe executed from the test-runner container (default PROBE_CLIENT) |
[live / radius] |
Live probe executed from the radius container (PROBE_CLIENT=radius) |
[live / host] |
Live probe executed on the host (PROBE_CLIENT=host) |
[kme] |
Check executed inside a KME container (make test-kme / make test-macsec-qkd) |
[host] |
Check from a cEOS SAE client to a KME (make test-kme) |
[log] |
Syslog or container-log assertion (make test-macsec-qkd) |
[keys] |
Static SAK / key-mapping check (make test-macsec-qkd) |
[wait] |
Timing notice before a capture, retry loop, polling window, or response timeout; not a check result |
WARN |
Check completes with a caveat (for example classical KEX); this is not proof of PQC safety |
SKIP |
Check cannot establish the result (for example no sample or no listener); not a failure |
Suite summary line¶
Each make test-* target ends with a one-line summary that counts individual checks ([config], [live], [live / test-runner], etc.):
OpenConfig: ✓ - 105 passed, 15 warnings, 3 skipped
HOSTS: ✓ - 12 passed
RadSec: ✓ - 23 passed
| Part | Meaning |
|---|---|
| Name | Suite label (e.g. OpenConfig, RadSec, HOSTS) |
| ✓ / ✗ | Overall outcome - ✓ when no check failed; ✗ when the suite aborts |
| passed | Checks that completed successfully |
| warnings | Checks marked WARN (e.g. classical wire KEX) - still a pass |
| failed | Shown only when failed checks were recorded before abort |
| skipped | Checks marked SKIP (platform limitation - not a failure) |
Only non-zero buckets are shown. On failure the summary is printed to stderr, e.g. OpenConfig FAILED: ✗ - <first error>.
make test-lab prints each suite's summary in order, then ✓ All lab checks passed. when every suite succeeds.
Default management addresses¶
| Node | IPv4 | IPv6 |
|---|---|---|
| ceos1-both | 172.20.127.11 | 2001:db8:127::11 |
| ceos2-pqc | 172.20.127.12 | 2001:db8:127::12 |
| ceos3-qkd | 172.20.127.13 | 2001:db8:127::13 |
| host1 | 172.20.127.21 | 2001:db8:127::21 |
| host2 | 172.20.127.22 | 2001:db8:127::22 |
| host3 | 172.20.127.23 | 2001:db8:127::23 |
| radius | 172.20.127.50 | 2001:db8:127::50 |
| kme-a | 172.20.127.51 | 2001:db8:127::51 |
| kme-b | 172.20.127.52 | 2001:db8:127::52 |
| syslog | 172.20.127.53 | 2001:db8:127::53 |
| test-runner | 172.20.127.54 | 2001:db8:127::54 |
Override the IPv4 subnet with make test-lab MGMT_SUBNET=….
Recorded test results¶
Results reflect the default EOS 4.37.0F (CEOS_IMAGE=ceos:4.37.0F; see Setup), verified on three ARM64 cEOS switches over IPv4 and IPv6 unless noted, with QuaDRA 1.0.10.rel1. These results describe this lab, not a hardware qualification.
| Suite | Result on 4.37.0F |
|---|---|
| SSH | 9 passed |
| eAPI | 15 passed |
| RadSec | 23 passed |
| Syslog | 15 passed |
| OpenConfig | 105 passed, 15 warnings, 3 skipped |
| KME | 9 passed |
| Dynamic MACsec | 9 passed |
| QuaDRA / QKD | 19 passed |
QuaDRA with passive TLS measurement (test-quadra-tls) |
21 passed (includes functional checks; both IPv4 client paths) |
| Extended MACsec reauthentication | 13 passed (includes baseline) |
| Settled host routing | 12 routes passed |
The four MACsec/QuaDRA runs have no warnings, failures, or skips. The TLS total includes 19 functional checks and two wire checks. QuaDRA startup/recovery log checks can produce warnings when those messages are absent from recent syslog; see expected warnings.
The 15 OpenConfig warnings are gRIBI TLS/RPC checks (12) and eos-sdk-rpc IPv4 checks (3). The three skips are eos-sdk-rpc IPv6 without a listener. The six gNPSI Subscribe probes pass with sflow source-interface Ethernet8 and two-second counter polling. Warnings and skips do not establish PQC-safe application operation. Release comparisons are recorded in the Changelog.
Result summary¶
Recorded live behavior on EOS 4.37.0F (3 switches, IPv4 + IPv6 unless noted).
| Service | Make target | TLS 1.3 observed | KEX configured | KEX used (live) | PQC-safe |
|---|---|---|---|---|---|
| SSH | test-ssh |
N/A (SSH, not TLS) | mlkem768x25519-sha256 |
mlkem768x25519-sha256 |
Yes |
| eAPI | test-eapi |
Yes | X25519MLKEM768 |
X25519MLKEM768 |
Yes |
| gNMI | test-openconfig |
Yes | X25519MLKEM768 |
X25519MLKEM768 |
Yes |
| gNOI (transport + RPC) | test-openconfig |
Yes | X25519MLKEM768 |
X25519MLKEM768 |
Yes |
| gRIBI | test-openconfig |
Yes | X25519MLKEM768 |
classical (secp256r1) |
No |
| gNSI Certz | test-openconfig |
Yes | X25519MLKEM768 |
X25519MLKEM768 |
Yes |
| gNPSI (TLS) | test-openconfig |
Yes | X25519MLKEM768 |
X25519MLKEM768 |
Yes |
| gNPSI (Subscribe) | test-openconfig |
Yes | X25519MLKEM768 |
X25519MLKEM768 |
Yes |
| RESTCONF | test-openconfig |
Yes | X25519MLKEM768 |
X25519MLKEM768 |
Yes |
| RadSec | test-radsec |
Yes | X25519MLKEM768 |
X25519MLKEM768 |
Yes |
| Syslog (EOS to collector) | test-syslog |
Yes | X25519MLKEM768 (+ classical fallback) |
X25519MLKEM768 |
Yes |
| eos-sdk-rpc (IPv4) | test-openconfig |
Yes | X25519MLKEM768 |
classical (secp256r1) |
No |
| eos-sdk-rpc (IPv6) | test-openconfig |
SKIP | X25519MLKEM768 |
- (no listener) | - |
| Syslog collector probe | test-syslog |
Yes | X25519MLKEM768 (+ classical fallback) |
X25519MLKEM768 |
Yes |
| QuaDRA → KME (both clients, IPv4) | test-quadra-tls |
Yes | Client defaults (hybrid + classical offers) | X25519MLKEM768 |
Yes |
Columns
| Column | Meaning |
|---|---|
| TLS 1.3 observed | Live session uses TLS 1.3 (or SSH for port 22). Yes records the positive probe; it does not assert rejection of TLS 1.2 or classical offers. See the service notes below. |
| KEX configured | Key-establishment group(s) in EOS ssl profile or management ssh config (what the switch is configured to offer). |
| KEX used (live) | Group negotiated on the wire during the listed make target. |
| PQC-safe | Yes when the live KEX is the lab hybrid (X25519MLKEM768 or mlkem768x25519-sha256); No when classical KEX is used or PQC negotiation fails. Unverified means no successful application data check; WARN in suite output is not a PQC-safe value. |
| SKIP | Result not established because of a platform/config limitation or missing data; not proof of success. |
Notes
- Syslog: All six EOS-to-collector connections selected hybrid group 4588, with delivery verified using unique per-run markers. Classical fallback remains configured; hybrid-only enforcement was not tested.
- gNPSI: Hybrid mTLS and reflection pass. Classical TLS 1.3 and TLS 1.2 are rejected. Subscribe receives sFlow datagrams on all six endpoints with the sFlow source on Ethernet8 and two-second counter polling. Idle probes receive counter samples; controlled traffic with temporary 1:1 sampling also verified flow samples. Actual Subscribe ServerHellos select hybrid KEX.
- gRIBI: Hybrid-only mTLS fails;
secp256r1TLS 1.3 and Get RPC work. Separate TLS 1.2 probes also complete despite the strict profile. - eos-sdk-rpc (IPv4): Hybrid-only probe gets EOF; explicit
secp256r1completes TLS 1.3. TLS 1.2 negotiates then ends with EOF, which is not a verified application session. - eos-sdk-rpc (IPv6): Native IPv6 connections refuse on 9543 with
local interface Management0. Socket inspection shows an IPv4-mapped bind; IPv4 mTLS and IPv6 eAPI controls succeed on all three switches. Alternative binding configurations were not evaluated. - RESTCONF: Hybrid positive probes pass, but classical TLS 1.3 and TLS 1.2 also complete despite the strict profile. This policy gap is outside the standard suite’s positive handshake assertion.
Test guides¶
Same order as make test-lab:
| Guide | Target | Covers |
|---|---|---|
| SSH | make test-ssh |
Management SSH PQC KEX |
| eAPI | make test-eapi |
HTTPS + JSON-RPC PQC |
| RadSec | make test-radsec |
Reachability, AAA, collector TLS |
| Syslog | make test-syslog |
TLS delivery + collector PQC |
| OpenConfig connectivity | make test-openconfig |
gNMI, gNOI, gRIBI, gNSI, gNPSI, RESTCONF, eos-sdk-rpc |
| KME (ETSI QKD 014) | make test-kme |
SAE status + enc/dec round-trip |
| MACsec 802.1X | make test-macsec-dot1x |
Dynamic MACsec (EAP-TLS + MKA); optional test-macsec-dot1x-reauth |
| MACsec QuaDRA QKD | make test-macsec-qkd |
Static MACsec always; daemon/KME checks skip when extension absent |
| QuaDRA TLS KEX | make test-quadra-tls |
Functional checks plus passive KEX measurement of both actual clients |
| Host routing | make test-hosts |
Data-plane ping matrix |
Configuration reference: Services overview.
Offline tests¶
pip install -r requirements-dev.txt
make test-offline
Validates topology contracts, template rendering, helper parsers, and Makefile image-selection/verification recipes using stubs. It does not run live lab suites or smoke-test built images. Run make images-check for actual image smoke checks. The default pytest selection excludes Containerlab integration tests; python3 -m pytest -o addopts= includes them when Containerlab is available.
Documentation site (local build)¶
Build this site locally with:
pip install -r docs/requirements.txt
mkdocs build --strict
Published docs are deployed automatically via GitHub Actions on push to main.