X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Fsuites%2Fsxp%2Fclustering%2F010_Connection_switchover.robot;h=632255d5c792063f04c374152004d012c945b47a;hb=b431bc0f1aeed84cfb0df2622137b043eb2ec0f6;hp=69481d80caecb10f8e83e95959290b7a6af48d6c;hpb=2e2d81e857113575325038257a861bae300e16eb;p=integration%2Ftest.git diff --git a/csit/suites/sxp/clustering/010_Connection_switchover.robot b/csit/suites/sxp/clustering/010_Connection_switchover.robot index 69481d80ca..632255d5c7 100644 --- a/csit/suites/sxp/clustering/010_Connection_switchover.robot +++ b/csit/suites/sxp/clustering/010_Connection_switchover.robot @@ -4,30 +4,29 @@ Suite Setup Setup SXP Cluster Session Suite Teardown Clean SXP Cluster Session Test Setup Setup SXP Cluster Test Teardown Clean SXP Cluster -Library ../../../libraries/Sxp.py Resource ../../../libraries/ClusterManagement.robot Resource ../../../libraries/SxpClusterLib.robot *** Test Cases *** Isolation of SXP service follower Test [Documentation] Test SXP connection switchover only if Controller with SCS is isolated - Check Shards Status - ${controller_index} = Get Active Controller + SxpClusterLib.Check Shards Status + ${controller_index} = SxpClusterLib.Get Active Controller Isolate SXP Controller ${controller_index} Isolation of SXP noservice follower Test [Documentation] Test SXP connection switchover only if Controller without SCS are isolated - Check Shards Status - ${controller_index} = Get Inactive Controller + SxpClusterLib.Check Shards Status + ${controller_index} = SxpClusterLib.Get Inactive Controller Isolate SXP Controller ${controller_index} *** Keywords *** Isolate SXP Controller [Arguments] ${controller_index} [Documentation] Isolate one of cluster nodes and perform check that Device is still connected afterwards reverts isolation - Isolate_Member_From_List_Or_All ${controller_index} - Wait Until Keyword Succeeds 240 1 Sync_Status_Should_Be_False ${controller_index} - Wait Until Keyword Succeeds 60 1 Check Device is Connected ${DEVICE_NODE_ID} session=${DEVICE_SESSION} - Flush_Iptables_From_List_Or_All - Wait Until Keyword Succeeds 240 1 Sync_Status_Should_Be_True ${controller_index} - Wait Until Keyword Succeeds 60 1 Check Device is Connected ${DEVICE_NODE_ID} session=${DEVICE_SESSION} + ClusterManagement.Isolate_Member_From_List_Or_All ${controller_index} + BuiltIn.Wait Until Keyword Succeeds 240 1 ClusterManagement.Sync_Status_Should_Be_False ${controller_index} + BuiltIn.Wait Until Keyword Succeeds 60 1 SxpClusterLib.Check Device is Connected ${DEVICE_NODE_ID} session=${DEVICE_SESSION} + ClusterManagement.Flush_Iptables_From_List_Or_All + BuiltIn.Wait Until Keyword Succeeds 240 1 ClusterManagement.Sync_Status_Should_Be_True ${controller_index} + BuiltIn.Wait Until Keyword Succeeds 60 1 SxpClusterLib.Check Device is Connected ${DEVICE_NODE_ID} session=${DEVICE_SESSION}