X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Fsuites%2Fsxp%2Ftopology%2F010_Topology_Features.robot;h=dfb6e206394cb48af71fd85f5d68654a596b09c0;hb=d11f5895faa57e1fa84e5b3cb92ed9aabe62229b;hp=12c90a7cbde5eacbc446c773c928f69f12a21ed9;hpb=3d1de8349187a1924d920e2fd581088866e2fae1;p=integration%2Ftest.git diff --git a/csit/suites/sxp/topology/010_Topology_Features.robot b/csit/suites/sxp/topology/010_Topology_Features.robot index 12c90a7cbd..dfb6e20639 100644 --- a/csit/suites/sxp/topology/010_Topology_Features.robot +++ b/csit/suites/sxp/topology/010_Topology_Features.robot @@ -1,19 +1,20 @@ *** Settings *** -Documentation Test suite to verify Behaviour in different topologies -Suite Setup Setup SXP Environment 6 -Suite Teardown Clean SXP Environment 6 -Test Teardown Clean Nodes -Library RequestsLibrary -Library SSHLibrary -Library ../../../libraries/Sxp.py -Resource ../../../libraries/SxpLib.robot +Documentation Test suite to verify Behaviour in different topologies + +Library RequestsLibrary +Library SSHLibrary +Library ../../../libraries/Sxp.py +Resource ../../../libraries/SxpLib.robot + +Suite Setup Setup SXP Environment 5 +Suite Teardown Clean SXP Environment 5 +Test Teardown Clean Nodes -*** Variables *** *** Test Cases *** Export Test [Documentation] Test behaviour after shutting down connections in Version4 - [Tags] SXP TopoBuiltIn.Logy + [Tags] sxp topobuiltin.logy Setup TopoBuiltIn.Logy Triangel version4 BuiltIn.Wait Until Keyword Succeeds 4 1 Check Export Part One SxpLib.Delete Connections 127.0.0.1 64999 127.0.0.3 @@ -25,40 +26,41 @@ Export Test Export Test Legacy [Documentation] Test behaviour after shutting down connections in Legacy versions - [Tags] SXP TopoBuiltIn.Logy + [Tags] sxp topobuiltin.logy @{list} = Create List version1 - : FOR ${version} IN @{list} - \ Setup TopoBuiltIn.Logy Triangel ${version} - \ BuiltIn.Wait Until Keyword Succeeds 4 1 Check Export Part One - \ SxpLib.Delete Connections 127.0.0.1 64999 127.0.0.3 - \ SxpLib.Delete Connections 127.0.0.3 64999 127.0.0.1 - \ BuiltIn.Wait Until Keyword Succeeds 4 1 Check Export Part Two - \ SxpLib.Delete Connections 127.0.0.1 64999 127.0.0.2 - \ SxpLib.Delete Connections 127.0.0.2 64999 127.0.0.1 - \ BuiltIn.Wait Until Keyword Succeeds 4 1 Check Export Part Three - \ Clean Nodes + FOR ${version} IN @{list} + Setup TopoBuiltIn.Logy Triangel ${version} + BuiltIn.Wait Until Keyword Succeeds 4 1 Check Export Part One + SxpLib.Delete Connections 127.0.0.1 64999 127.0.0.3 + SxpLib.Delete Connections 127.0.0.3 64999 127.0.0.1 + BuiltIn.Wait Until Keyword Succeeds 4 1 Check Export Part Two + SxpLib.Delete Connections 127.0.0.1 64999 127.0.0.2 + SxpLib.Delete Connections 127.0.0.2 64999 127.0.0.1 + BuiltIn.Wait Until Keyword Succeeds 4 1 Check Export Part Three + Clean Nodes + END Forwarding Test V2=>V1 [Documentation] Version 2 => 1 functionality - [Tags] SXP TopoBuiltIn.Logy + [Tags] sxp topobuiltin.logy Setup TopoBuiltIn.Logy Linear version2 version1 BuiltIn.Wait Until Keyword Succeeds 4 1 Check Forwarding V2=>V1 Forwarding Test V3=>V2 [Documentation] Version 3 => 2 functionality - [Tags] SXP TopoBuiltIn.Logy + [Tags] sxp topobuiltin.logy Setup TopoBuiltIn.Logy Linear version3 version2 BuiltIn.Wait Until Keyword Succeeds 4 1 Check Forwarding V3=>V2 Forwarding Test V4=>V3 [Documentation] Version 4 => 3 functionality - [Tags] SXP TopoBuiltIn.Logy + [Tags] sxp topobuiltin.logy Setup TopoBuiltIn.Logy Linear version4 version3 BuiltIn.Wait Until Keyword Succeeds 4 1 Check Forwarding V4=>V3 Most Recent Rule Test [Documentation] Most Recent Rule - [Tags] SXP TopoBuiltIn.Logy + [Tags] sxp topobuiltin.logy Setup TopoBuiltIn.Logy Fork version4 SxpLib.Add Bindings 542 5.5.5.5/32 127.0.0.2 BuiltIn.Sleep 2s @@ -70,7 +72,7 @@ Most Recent Rule Test Shorthest Path Test [Documentation] Shorthes Path over Most Recent - [Tags] SXP TopoBuiltIn.Logy + [Tags] sxp topobuiltin.logy SxpLib.Add Connection version4 listener 127.0.0.5 64999 127.0.0.3 SxpLib.Add Connection version4 speaker 127.0.0.3 64999 127.0.0.5 BuiltIn.Wait Until Keyword Succeeds 15 1 Verify Connection version4 listener 127.0.0.5 @@ -83,10 +85,11 @@ Shorthest Path Test SxpLib.Add Bindings 95 15.15.15.15/32 127.0.0.5 BuiltIn.Wait Until Keyword Succeeds 4 1 Check Shorthest Path + *** Keywords *** Setup TopoBuiltIn.Logy Triangel - [Arguments] ${version} [Documentation] Setup 3 nodes connected to each other + [Arguments] ${version} SxpLib.Add Bindings 542 5.5.5.5/32 127.0.0.2 SxpLib.Add Bindings 543 5.5.5.5/32 127.0.0.3 SxpLib.Add Bindings 99 15.15.15.15/32 127.0.0.3 @@ -103,8 +106,8 @@ Setup TopoBuiltIn.Logy Triangel ... 64999 127.0.0.3 Setup TopoBuiltIn.Logy Linear - [Arguments] ${version} ${r_version} [Documentation] Setup 3 nodes connected linearly + [Arguments] ${version} ${r_version} SxpLib.Add Bindings 6 56.56.56.0/24 127.0.0.2 SxpLib.Add Bindings 66 9.9.9.9/32 127.0.0.2 SxpLib.Add Bindings 666 2001:db8:0:0:0:0:1428:57ab/128 127.0.0.2 @@ -117,8 +120,8 @@ Setup TopoBuiltIn.Logy Linear BuiltIn.Wait Until Keyword Succeeds 15 1 Verify Connection ${r_version} speaker 127.0.0.3 Setup TopoBuiltIn.Logy Fork - [Arguments] ${version} [Documentation] Setup 4 nodes in to T topoBuiltIn.Logy + [Arguments] ${version} SxpLib.Add Connection ${version} speaker 127.0.0.1 64999 127.0.0.3 SxpLib.Add Connection ${version} listener 127.0.0.3 64999 127.0.0.1 BuiltIn.Wait Until Keyword Succeeds 15 1 Verify Connection ${version} listener 127.0.0.3