Skip to content

Commit

Permalink
test: Add OSPF tests when no OSPF is configured (#445)
Browse files Browse the repository at this point in the history
Test: Add OSPF tests when no OSPF is configured
  • Loading branch information
gmuloc committed Nov 9, 2023
1 parent b374e7b commit 62b4d5b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/units/anta_tests/routing/test_ospf.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,17 @@
],
},
},
{
"name": "skipped",
"test": VerifyOSPFNeighborState,
"eos_data": [
{
"vrfs": {},
}
],
"inputs": None,
"expected": {"result": "skipped", "messages": ["no OSPF neighbor found"]},
},
{
"name": "success",
"test": VerifyOSPFNeighborCount,
Expand Down Expand Up @@ -273,4 +284,15 @@
],
},
},
{
"name": "skipped",
"test": VerifyOSPFNeighborCount,
"eos_data": [
{
"vrfs": {},
}
],
"inputs": {"number": 3},
"expected": {"result": "skipped", "messages": ["no OSPF neighbor found"]},
},
]

0 comments on commit 62b4d5b

Please sign in to comment.