02 · VALIDATION PLAN

OSPF Automation Test Cases

Detailed objectives, execution procedures and acceptance criteria for the seven Phase I tests.

7 test cases

Objective

Connect to all four routers over OOB SSH, execute a CLI command and record per-router results.

Execution procedure

Netmiko connection to R1–R4; run show ip interface brief; disconnect cleanly.

Expected result / acceptance criteria

All four SSH sessions and CLI commands succeed.

Objective

Apply the approved OSPF process 1, router IDs and Area 0 network statements.

Execution procedure

Check existing OSPF process; apply router ospf 1, router-id and network statements; save; verify running configuration.

Expected result / acceptance criteria

Expected process, router ID and network statements are present on all routers.

Configuration change: OSPF-002 applies and saves router configuration. Review the target lab and configuration before execution.

Objective

Verify OSPF process ID and router ID on every router.

Execution procedure

Run show ip ospf and inspect process ID and router ID.

Expected result / acceptance criteria

Process 1 and expected router ID are detected on R1–R4.

Objective

Verify the two expected OSPF neighbors on each router.

Execution procedure

Run show ip ospf neighbor; compare neighbor IDs and states with the topology.

Expected result / acceptance criteria

Each router has exactly two expected neighbors and both are FULL.

Expected neighbor router IDs

RouterExpected neighbors
R12.2.2.2 · 3.3.3.3
R21.1.1.1 · 4.4.4.4
R31.1.1.1 · 4.4.4.4
R42.2.2.2 · 3.3.3.3

Objective

Verify the intended transit interfaces participate in OSPF Area 0.

Execution procedure

Run show ip ospf interface brief; validate interface identity and area.

Expected result / acceptance criteria

Exactly two expected transit interfaces per router are detected in Area 0.

Expected OSPF interfaces – Area 0

RouterInterfacesArea
R1Fa0/0, Fa1/00
R2Fa0/0, Fa1/00
R3Fa0/0, Fa2/00
R4Fa0/0, Fa1/00

Objective

Verify expected remote /30 networks are learned through OSPF.

Execution procedure

Run show ip route ospf; parse IOS subnet summaries and route entries.

Expected result / acceptance criteria

Both expected remote OSPF routes are present on each router.

Expected remote OSPF routes

RouterExpected routes
R112.1.1.0/30, 14.1.1.0/30
R213.1.1.0/30, 14.1.1.0/30
R311.1.1.0/30, 12.1.1.0/30
R411.1.1.0/30, 13.1.1.0/30

Objective

Validate neighbor loss after R1–R2 transit-link failure and FULL adjacency after restoration.

Execution procedure

Verify initial FULL; shut R1 Fa0/0; wait up to 60 seconds for neighbor loss; no shutdown; wait up to 90 seconds for FULL recovery.

Expected result / acceptance criteria

Neighbor disappears on both routers, link is restored and adjacency returns to FULL.

Lab safety: OSPF-008 is disruptive. It shuts R1 FastEthernet0/0 and then restores it. Run only in the isolated lab with OOB access available. Confirm the interface is up and the neighbor is FULL after the test.
DEFERRED TO PHASE II

OSPF-007 – End-to-End Reachability

Ping and traffic/reachability testing was intentionally excluded from the Phase I regression suite and is planned for Phase II traffic testing.