Improve mapping timer test 71/5071/1
authorFilip Tehlar <ftehlar@cisco.com>
Wed, 8 Feb 2017 10:27:52 +0000 (11:27 +0100)
committerFilip Tehlar <ftehlar@cisco.com>
Wed, 8 Feb 2017 10:27:52 +0000 (11:27 +0100)
Change-Id: I2007c0a8c76b8ce2c91f1030de6a98e5d508ab8c
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
tests/data_plane/vpp_lite_topo/test_driver/src_dst.sh

index 99c74bf..c4a756d 100644 (file)
@@ -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!"