test: documentation names and addresses in fixtures #41

Closed
christianmanivong wants to merge 0 commits from test/documentation-fixtures into main
pull from: test/documentation-fixtures
Owner

What changed

Test fixtures, docstring examples and the README now use neutral values only:

  • host names ap-01 / ap-02;
  • addresses from the documentation ranges 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24 (RFC 5737).

Each old address maps to one new address throughout the repo, so every test keeps its meaning:

  • the management-network test still has its interface address, broadcast and SSH peer inside the management network, apart from the LAN;
  • a static route still covers the prefix the test looks for;
  • the NTP, SNMP and syslog readings still name the same server in reading and assertion.

Loopback (127.0.0.1), the wildcard address (0.0.0.0) and netmasks are unchanged. MAC addresses were already synthetic and are unchanged.

Files: tests/unit/test_driver.py, test_time_sync.py, test_snmp_agent.py, test_ssh_host_key.py, test_packages.py, test_updates.py, docstring examples in interfaces_mixin.py, routing_mixin.py and system_mixin.py (comments only, no code), and the README quick start. CHANGELOG untouched: nothing changes for users of the driver.

Tests

No behaviour change. pytest 345 passed, ruff format/check clean, napalm-standard check/ratchet green.

## What changed Test fixtures, docstring examples and the README now use neutral values only: - host names `ap-01` / `ap-02`; - addresses from the documentation ranges 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24 (RFC 5737). Each old address maps to one new address throughout the repo, so every test keeps its meaning: - the management-network test still has its interface address, broadcast and SSH peer inside the management network, apart from the LAN; - a static route still covers the prefix the test looks for; - the NTP, SNMP and syslog readings still name the same server in reading and assertion. Loopback (127.0.0.1), the wildcard address (0.0.0.0) and netmasks are unchanged. MAC addresses were already synthetic and are unchanged. Files: `tests/unit/test_driver.py`, `test_time_sync.py`, `test_snmp_agent.py`, `test_ssh_host_key.py`, `test_packages.py`, `test_updates.py`, docstring examples in `interfaces_mixin.py`, `routing_mixin.py` and `system_mixin.py` (comments only, no code), and the README quick start. CHANGELOG untouched: nothing changes for users of the driver. ## Tests No behaviour change. pytest 345 passed, ruff format/check clean, `napalm-standard check`/`ratchet` green.
christianmanivong added 1 commit 2026-11-12 18:21:55 +00:00
test: documentation names and addresses in fixtures
driver / types (pull_request) Successful in 1m0s
driver / standard (pull_request) Successful in 16s
driver / lint (pull_request) Successful in 15s
driver / test (3.12) (pull_request) Successful in 1m9s
driver / test (3.13) (pull_request) Successful in 1m3s
driver / lowest (pull_request) Successful in 32s
driver / build (pull_request) Successful in 44s
driver / security (pull_request) Successful in 1m19s
CI / driver (pull_request) Successful in 2m56s
driver / publish (pull_request) Skipped
e4ae42fea0
Fixtures, docstring examples and the README use neutral host names
(ap-01, ap-02) and addresses from the documentation ranges 192.0.2.0/24,
198.51.100.0/24 and 203.0.113.0/24, mapped one to one so every test
keeps its meaning: the management network test still has its address
inside that network, a route still covers its prefix. Loopback, the
wildcard address and netmasks are unchanged.
Author
Owner

Superseded by #42: same commit on a branch named per STANDARDS §1 (chore/).

Superseded by #42: same commit on a branch named per STANDARDS §1 (`chore/`).

Pull request closed

This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.