From f3ac1dd5823fd7798b47d319e764da5945b5812c Mon Sep 17 00:00:00 2001 From: Filip Tehlar Date: Wed, 8 Feb 2017 11:27:52 +0100 Subject: Improve mapping timer test Change-Id: I2007c0a8c76b8ce2c91f1030de6a98e5d508ab8c Signed-off-by: Filip Tehlar --- tests/data_plane/vpp_lite_topo/test_driver/src_dst.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/data_plane/vpp_lite_topo/test_driver/src_dst.sh b/tests/data_plane/vpp_lite_topo/test_driver/src_dst.sh index 99c74bf..c4a756d 100644 --- a/tests/data_plane/vpp_lite_topo/test_driver/src_dst.sh +++ b/tests/data_plane/vpp_lite_topo/test_driver/src_dst.sh @@ -59,7 +59,7 @@ function test_src_dst maybe_pause 3_node_star_topo_clean - print_status $rc "No ICM response!" + print_status $rc "No ICMP response!" exit $test_result } @@ -96,7 +96,7 @@ function test_src_dst_l2 maybe_pause 3_node_star_topo_clean - print_status $rc "No ICM response!" + print_status $rc "No ICMP response!" exit $test_result } @@ -123,14 +123,20 @@ function test_mapping_timers mapping_exists "vpp1" "6.0.1.0/24|6.0.2.0/24" assert_rc_ok $? 3_node_star_topo_clean "mapping not in map-cache!" + mapping_exists "vpp1" "6.0.5.0/24|6.0.2.0/24" + assert_rc_ok $? 3_node_star_topo_clean "mapping not in map-cache!" mapping_exists "vpp2" "6.0.1.0/24" assert_rc_ok $? 3_node_star_topo_clean "mapping not in map-cache!" # sleep enough so the mapping expires sleep 65 + maybe_pause + mapping_exists "vpp1" "6.0.1.0/24|6.0.2.0/24" assert_rc_not_ok $? 3_node_star_topo_clean "mapping still present in map-cache!" + mapping_exists "vpp1" "6.0.5.0/24|6.0.2.0/24" + assert_rc_not_ok $? 3_node_star_topo_clean "mapping still present in map-cache!" mapping_exists "vpp2" "6.0.1.0/24" assert_rc_not_ok $? 3_node_star_topo_clean "mapping still present in map-cache!" -- cgit 1.2.3-korg