From 62b4d5b6d02809ff14082b34af7625961983d7eb Mon Sep 17 00:00:00 2001 From: Guillaume Mulocher Date: Thu, 9 Nov 2023 09:30:17 +0100 Subject: [PATCH] test: Add OSPF tests when no OSPF is configured (#445) Test: Add OSPF tests when no OSPF is configured --- tests/units/anta_tests/routing/test_ospf.py | 22 +++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tests/units/anta_tests/routing/test_ospf.py b/tests/units/anta_tests/routing/test_ospf.py index b131f5a1a..4a43b2254 100644 --- a/tests/units/anta_tests/routing/test_ospf.py +++ b/tests/units/anta_tests/routing/test_ospf.py @@ -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, @@ -273,4 +284,15 @@ ], }, }, + { + "name": "skipped", + "test": VerifyOSPFNeighborCount, + "eos_data": [ + { + "vrfs": {}, + } + ], + "inputs": {"number": 3}, + "expected": {"result": "skipped", "messages": ["no OSPF neighbor found"]}, + }, ]