Skip to content

Commit b3e1cf8

Browse files
committed
tests: Rename bgp_route_map_unused to route_map_check_unused
This is going to be extended in the future not only for BGP, so let it be more generic. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
1 parent a20eeaf commit b3e1cf8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
File renamed without changes.

tests/topotests/bgp_route_map_unused/test_bgp_route_map_unused.py renamed to tests/topotests/route_map_check_unused/test_route_map_check_unused.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ def teardown_module(mod):
3939
tgen.stop_topology()
4040

4141

42-
def test_bgp_route_map_unused():
42+
def test_route_map_check_unused():
4343
tgen = get_topogen()
4444

4545
if tgen.routers_have_failure():
4646
pytest.skip(tgen.errors)
4747

4848
r1 = tgen.gears["r1"]
4949

50-
def _bgp_converge():
50+
def _check_unused_route_maps():
5151
output = json.loads(r1.vtysh_cmd("show route-map-unused json"))
5252
expected = {
5353
"zebra": {
@@ -125,9 +125,9 @@ def _bgp_converge():
125125

126126
return topotest.json_cmp(output, expected, exact=True)
127127

128-
test_func = functools.partial(_bgp_converge)
128+
test_func = functools.partial(_check_unused_route_maps)
129129
_, result = topotest.run_and_expect(test_func, None, count=20, wait=1)
130-
assert result is None, "There are some unused route-maps in BGP"
130+
assert result is None, "There are some unused route-maps"
131131

132132

133133
if __name__ == "__main__":

0 commit comments

Comments
 (0)