From af9c65d44a4f21ac3899b28dd0dbbe900b17f544 Mon Sep 17 00:00:00 2001 From: Kuldeep Kashyap Date: Mon, 16 Mar 2020 19:51:41 +0000 Subject: tests: Optimize bgp-basic-functionality-topo1 test suite 1. Used aggresive values to verify keepalive and holddown timers functionality 2. Modified variable name in lib/bgp.py Signed-off-by: Kuldeep Kashyap --- .../test_bgp_basic_functionality.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tests/topotests/bgp-basic-functionality-topo1/test_bgp_basic_functionality.py') diff --git a/tests/topotests/bgp-basic-functionality-topo1/test_bgp_basic_functionality.py b/tests/topotests/bgp-basic-functionality-topo1/test_bgp_basic_functionality.py index e99111d90b..43639a81d1 100755 --- a/tests/topotests/bgp-basic-functionality-topo1/test_bgp_basic_functionality.py +++ b/tests/topotests/bgp-basic-functionality-topo1/test_bgp_basic_functionality.py @@ -79,6 +79,9 @@ try: except IOError: assert False, "Could not read file {}".format(jsonFile) +#Global Variable +KEEPALIVETIMER = 2 +HOLDDOWNTIMER = 6 class CreateTopo(Topo): """ @@ -292,8 +295,8 @@ def test_bgp_timers_functionality(request): "r2": { "dest_link":{ "r1": { - "keepalivetimer": 60, - "holddowntimer": 180, + "keepalivetimer": KEEPALIVETIMER, + "holddowntimer": HOLDDOWNTIMER } } } @@ -319,8 +322,6 @@ def test_bgp_timers_functionality(request): write_test_footer(tc_name) - - def test_static_routes(request): """ Test to create and verify static routes. """ -- cgit v1.2.3