Sxp Topology tests update of Most Recent Rule test 98/38098/7
authorMartin Mihálek <mamihale@cisco.com>
Tue, 26 Apr 2016 08:20:35 +0000 (10:20 +0200)
committerMartin Mihálek <mamihale@cisco.com>
Tue, 14 Jun 2016 09:36:04 +0000 (09:36 +0000)
to check state via Wait Until Keyword

Change-Id: Ib14354508b1d8abd513a6d33b3df91dabd014b6b
Signed-off-by: Martin Mihálek <mamihale@cisco.com>
csit/suites/sxp/topology/010_Topology_Features.robot

index d6331fc53cd447a87afb7011514fa7082eb2ffd6..0e3a832e5b0fe34315b4bebf7c094a712fb70c7c 100644 (file)
@@ -63,13 +63,7 @@ Most Recent Rule Test
     Add Binding    100    15.15.15.15/32    127.0.0.3
     Sleep    2s
     Add Binding    99    15.15.15.15/32    127.0.0.2
-    Sleep    1s
-    ${resp}    Get Bindings
-    Should Contain Binding    ${resp}    543    5.5.5.5/32
-    Should Contain Binding    ${resp}    99    15.15.15.15/32
-    ${resp}    Get Bindings    127.0.0.4
-    Should Contain Binding    ${resp}    543    5.5.5.5/32
-    Should Contain Binding    ${resp}    99    15.15.15.15/32
+    Wait Until Keyword Succeeds    4    1    Check Most Recent
 
 Shorthest Path Test
     [Documentation]    Shorthes Path over Most Recent
@@ -210,6 +204,15 @@ Check Shorthest Path
     Should Contain Binding    ${resp}    9954    105.15.125.15/32
     Should Contain Binding    ${resp}    99    15.15.15.15/32
 
+Check Most Recent
+    [Documentation]    Checks if MostRecent rule is applied onto bindings
+    ${resp}    Get Bindings
+    Should Contain Binding    ${resp}    543    5.5.5.5/32
+    Should Contain Binding    ${resp}    99    15.15.15.15/32
+    ${resp}    Get Bindings    127.0.0.4
+    Should Contain Binding    ${resp}    543    5.5.5.5/32
+    Should Contain Binding    ${resp}    99    15.15.15.15/32
+
 Clean Nodes
     Clean Connections    127.0.0.1
     Clean Connections    127.0.0.2