SXP: Wait for bindings to be send/received 18/78618/1
authorIvan Hrasko <ihrasko@cisco.com>
Mon, 10 Dec 2018 11:17:44 +0000 (12:17 +0100)
committerIvan Hrasko <ihrasko@cisco.com>
Mon, 10 Dec 2018 11:20:01 +0000 (12:20 +0100)
Change-Id: Ide429e7a77fe89840a8b740b4640d61e428e58c0
Signed-off-by: Ivan Hrasko <ihrasko@cisco.com>
csit/suites/sxp/cluster-routing/020_Sxp_Node_Switching.robot

index bf0946b87d7c3875ffe914da29e49288a6d8ffca..17df5f280be79f16a583dfff7930aa97c584856e 100644 (file)
@@ -42,11 +42,11 @@ Isolation Of SXP Service Follower Listener Test
     BuiltIn.Wait Until Keyword Succeeds    240    1    SxpClusterLib.Ip Addres Should Be Routed To Follower    ${MAC_ADDRESS_TABLE}    ${VIRTUAL_IP}    ${cluster_owner}
     Check Connections    ${cluster_owner}    listener
     Add Bindings To Node    ${CLUSTER_NODE_ID}    ClusterManagement__session_${cluster_owner}
-    Check Bindings    ${DEVICE_NODE_ID}    ${DEVICE_SESSION}
+    BuiltIn.Wait Until Keyword Succeeds    240    1    Check Bindings    ${DEVICE_NODE_ID}    ${DEVICE_SESSION}
     Isolate SXP Controller    ${cluster_owner}
     BuiltIn.Wait Until Keyword Succeeds    240    1    SxpClusterLib.Ip Addres Should Be Routed To Follower    ${MAC_ADDRESS_TABLE}    ${VIRTUAL_IP}    ${NEW_OWNER}
     Check Connections    ${NEW_OWNER}    listener
-    Check Bindings    ${DEVICE_NODE_ID}    ${DEVICE_SESSION}
+    BuiltIn.Wait Until Keyword Succeeds    240    1    Check Bindings    ${DEVICE_NODE_ID}    ${DEVICE_SESSION}
     [Teardown]    Clean Custom SXP Cluster
 
 Isolation Of SXP Service Follower Speaker Test
@@ -56,11 +56,11 @@ Isolation Of SXP Service Follower Speaker Test
     BuiltIn.Wait Until Keyword Succeeds    240    1    SxpClusterLib.Ip Addres Should Be Routed To Follower    ${MAC_ADDRESS_TABLE}    ${VIRTUAL_IP}    ${cluster_owner}
     Check Connections    ${cluster_owner}    speaker
     Add Bindings To Node    ${DEVICE_NODE_ID}    ${DEVICE_SESSION}
-    Check Bindings    ${CLUSTER_NODE_ID}    ClusterManagement__session_${cluster_owner}
+    BuiltIn.Wait Until Keyword Succeeds    240    1    Check Bindings    ${CLUSTER_NODE_ID}    ClusterManagement__session_${cluster_owner}
     Isolate SXP Controller    ${cluster_owner}
     BuiltIn.Wait Until Keyword Succeeds    240    1    SxpClusterLib.Ip Addres Should Be Routed To Follower    ${MAC_ADDRESS_TABLE}    ${VIRTUAL_IP}    ${NEW_OWNER}
     Check Connections    ${NEW_OWNER}    speaker
-    Check Bindings    ${CLUSTER_NODE_ID}    ClusterManagement__session_${NEW_OWNER}
+    BuiltIn.Wait Until Keyword Succeeds    240    1    Check Bindings    ${CLUSTER_NODE_ID}    ClusterManagement__session_${NEW_OWNER}
     [Teardown]    Clean Custom SXP Cluster
 
 *** Keywords ***