summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2019-07-26 22:32:48 +0200
committerRafael Zalamena <rzalamena@opensourcerouting.org>2019-07-26 22:35:45 +0200
commit5d45cea234b4275e5437f3b9729df0ea70226129 (patch)
tree0feae657f407a14417a7d86e9ce86ec212de3b22 /tests
parentMerge pull request #4730 from idryzhov/fix (diff)
downloadfrr-5d45cea234b4275e5437f3b9729df0ea70226129.tar.xz
frr-5d45cea234b4275e5437f3b9729df0ea70226129.zip
topotest: fix bgp-path-attributes-topology
The first RIB check wants to assert that we don't have the r7's routes in r1, so right after that code the routers r2 and r3 are configured then `verify_rib` is called again to check for those routes. This test never passed, but it didn't cause failures because of the `try`/`except`. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/topotests/bgp-path-attributes-topo1/test_bgp_path_attributes.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/topotests/bgp-path-attributes-topo1/test_bgp_path_attributes.py b/tests/topotests/bgp-path-attributes-topo1/test_bgp_path_attributes.py
index abd6b396d..2b9c411ff 100755
--- a/tests/topotests/bgp-path-attributes-topo1/test_bgp_path_attributes.py
+++ b/tests/topotests/bgp-path-attributes-topo1/test_bgp_path_attributes.py
@@ -218,11 +218,8 @@ def test_next_hop_attribute(request):
# Verifying RIB routes
dut = "r1"
protocol = "bgp"
- result = verify_rib(tgen, "ipv4", dut, input_dict, protocol=protocol)
- try:
- assert result is True
- except AssertionError:
- logger.info("Expected behaviour: %s", result)
+ result = verify_rib(tgen, "ipv4", dut, input_dict, protocol=protocol, expected=False)
+ assert result is not True
# Configure next-hop-self to bgp neighbor
input_dict_1 = {