X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Fsuites%2Ftopoprocessing%2Fbasic-topology-operations%2F020_Filtration_nodes.robot;h=134ab9286d44684addf2a4e064f650c344809d31;hb=91b1a3d441b9f114f1797c02b27afc16da5d0b06;hp=7e97aa66b622d3ddf1be9fe39a58b7c86442fbd8;hpb=39ee1426c6814d5d5a045d48a48600dae983530e;p=integration%2Ftest.git diff --git a/csit/suites/topoprocessing/basic-topology-operations/020_Filtration_nodes.robot b/csit/suites/topoprocessing/basic-topology-operations/020_Filtration_nodes.robot index 7e97aa66b6..134ab9286d 100644 --- a/csit/suites/topoprocessing/basic-topology-operations/020_Filtration_nodes.robot +++ b/csit/suites/topoprocessing/basic-topology-operations/020_Filtration_nodes.robot @@ -6,7 +6,7 @@ Documentation Test suite to verify fitration operation on different models. ... Topology-id on the end of each urls must match topology-id from xml. Yang models of components in topology are defined in xmls. Suite Setup Setup Environment Suite Teardown Clean Environment -Test Teardown Filtration Nodes Test Teardown +Test Teardown Test Teardown network-topology:network-topology/topology/topo:1 Library RequestsLibrary Library SSHLibrary Library XML @@ -29,9 +29,9 @@ Filtration IPV4 Network Topology Model ${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:1']/.. ${node} Element to String ${node} Should Contain X Times ${node} 3 - Should Contain ${node} tp:1:1 - Should Contain ${node} tp:1:2 - Should Contain ${node} tp:1:3 + Should Contain X Times ${node} /network-topology/topology/network-topo:1/node/bgp:1/termination-point/tp:1:3 1 + Should Contain X Times ${node} /network-topology/topology/network-topo:1/node/bgp:1/termination-point/tp:1:2 1 + Should Contain X Times ${node} /network-topology/topology/network-topo:1/node/bgp:1/termination-point/tp:1:3 1 Should Contain X Times ${resp.content} bgp:2 1 Filtration IPV4 Inventory Model @@ -44,8 +44,6 @@ Filtration IPV4 Inventory Model Should Contain X Times ${resp.content} node: 3 : FOR ${index} IN RANGE 1 3 \ Should Contain X Times ${resp.content} of-node:${index} 1 - [Teardown] Run Keywords Filtration Nodes Test Teardown - ... AND Report_Failure_Due_To_Bug 4683 Filtration Range Number Network Topology Model [Documentation] Test of range number type of filtration operation on Network Topology model @@ -58,11 +56,23 @@ Filtration Range Number Network Topology Model : FOR ${index} IN RANGE 7 10 \ Should Contain X Times ${resp.content} bgp:${index} 1 Should Contain X Times ${resp.content} 5 - Should Contain ${resp.content} tp:7:1 - Should Contain ${resp.content} tp:7:2 - Should Contain ${resp.content} tp:8:1 - Should Contain ${resp.content} tp:9:1 - Should Contain ${resp.content} tp:10:1 + #node bgp:7 + ${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:7']/.. + ${node} Element to String ${node} + Should Contain X Times ${node} /network-topology/topology/network-topo:2/node/bgp:7/termination-point/tp:7:1 1 + Should Contain X Times ${node} /network-topology/topology/network-topo:2/node/bgp:7/termination-point/tp:7:2 1 + #node bgp:8 + ${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:8']/.. + ${node} Element to String ${node} + Should Contain X Times ${node} /network-topology/topology/network-topo:2/node/bgp:8/termination-point/tp:8:1 1 + #node bgp:9 + ${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:9']/.. + ${node} Element to String ${node} + Should Contain X Times ${node} /network-topology/topology/network-topo:2/node/bgp:9/termination-point/tp:9:1 1 + #node bgp:10 + ${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:10']/.. + ${node} Element to String ${node} + Should Contain X Times ${node} /network-topology/topology/network-topo:2/node/bgp:10/termination-point/tp:10:1 1 Filtration Range Number Inventory Model [Documentation] Test of range number type of filtration operation on Inventory model @@ -74,8 +84,6 @@ Filtration Range Number Inventory Model Should Contain X Times ${resp.content} node: 3 : FOR ${index} IN RANGE 8 10 \ Should Contain X Times ${resp.content} of-node:${index} 1 - [Teardown] Run Keywords Filtration Nodes Test Teardown - ... AND Report_Failure_Due_To_Bug 4683 Filtration Specific Number Network Topology Model [Documentation] Test of specific number type of filtration operation on Network Topology model @@ -91,8 +99,6 @@ Filtration Specific Number Network Topology Model Should Contain X Times ${resp.content} 2 Should Contain ${resp.content} tp:9:1 Should Contain ${resp.content} tp:10:1 - [Teardown] Run Keywords Filtration Nodes Test Teardown - ... AND Report_Failure_Due_To_Bug 4721 Filtration Specific Number Inventory Model [Documentation] Test of specific number type of filtration operation on Inventory model @@ -105,9 +111,6 @@ Filtration Specific Number Inventory Model Should Contain X Times ${resp.content} node: 2 Should Contain X Times ${resp.content} of-node:8 1 Should Contain X Times ${resp.content} of-node:9 1 - [Teardown] Run Keywords Filtration Nodes Test Teardown - ... AND Report_Failure_Due_To_Bug 4683 - ... AND Report_Failure_Due_To_Bug 4721 Filtration Specific String Network Topology Model [Documentation] Test of specific string type of filtration operation on Network Topology model @@ -120,8 +123,14 @@ Filtration Specific String Network Topology Model Should Contain X Times ${resp.content} bgp:9 1 Should Contain X Times ${resp.content} bgp:10 1 Should Contain X Times ${resp.content} 2 - Should Contain ${resp.content} tp:9:1 - Should Contain ${resp.content} tp:10:1 + #node bgp:9 + ${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:9']/.. + ${node} Element to String ${node} + Should Contain X Times ${node} /network-topology/topology/network-topo:2/node/bgp:9/termination-point/tp:9:1 1 + #node bgp:10 + ${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:10']/.. + ${node} Element to String ${node} + Should Contain X Times ${node} /network-topology/topology/network-topo:2/node/bgp:10/termination-point/tp:10:1 1 Filtration Specific String Inventory Model [Documentation] Test of specific string type of filtration operation on Inventory model @@ -133,8 +142,6 @@ Filtration Specific String Inventory Model Should Contain X Times ${resp.content} node: 2 Should Contain X Times ${resp.content} of-node:8 1 Should Contain X Times ${resp.content} of-node:9 1 - [Teardown] Run Keywords Filtration Nodes Test Teardown - ... AND Report_Failure_Due_To_Bug 4683 Filtration Range String Network Topology Model [Documentation] Test of range string type of filtration operation on Network Topology model @@ -147,11 +154,23 @@ Filtration Range String Network Topology Model : FOR ${index} IN RANGE 7 10 \ Should Contain X Times ${resp.content} bgp:${index} 1 Should Contain X Times ${resp.content} 5 - Should Contain ${resp.content} tp:7:1 - Should Contain ${resp.content} tp:7:2 - Should Contain ${resp.content} tp:8:1 - Should Contain ${resp.content} tp:9:1 - Should Contain ${resp.content} tp:10:1 + #node bgp:7 + ${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:7']/.. + ${node} Element to String ${node} + Should Contain X Times ${node} /network-topology/topology/network-topo:2/node/bgp:7/termination-point/tp:7:1 1 + Should Contain X Times ${node} /network-topology/topology/network-topo:2/node/bgp:7/termination-point/tp:7:2 1 + #node bgp:8 + ${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:8']/.. + ${node} Element to String ${node} + Should Contain X Times ${node} /network-topology/topology/network-topo:2/node/bgp:8/termination-point/tp:8:1 1 + #node bgp:9 + ${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:9']/.. + ${node} Element to String ${node} + Should Contain X Times ${node} /network-topology/topology/network-topo:2/node/bgp:9/termination-point/tp:9:1 1 + #node bgp:10 + ${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:10']/.. + ${node} Element to String ${node} + Should Contain X Times ${node} /network-topology/topology/network-topo:2/node/bgp:10/termination-point/tp:10:1 1 Filtration Range String Inventory Model [Documentation] Test of range string type of filtration operation on Inventory model @@ -163,8 +182,6 @@ Filtration Range String Inventory Model Should Contain X Times ${resp.content} node: 3 : FOR ${index} IN RANGE 8 10 \ Should Contain X Times ${resp.content} of-node:${index} 1 - [Teardown] Run Keywords Filtration Nodes Test Teardown - ... AND Report_Failure_Due_To_Bug 4683 Filtration IPV6 Network Topology Model [Documentation] Test of ipv6 type of filtration operation on Network Topology model @@ -177,7 +194,14 @@ Filtration IPV6 Network Topology Model Should Contain X Times ${resp.content} bgp:11 1 Should Contain X Times ${resp.content} bgp:12 1 Should Contain X Times ${resp.content} 1 - Should Contain ${resp.content} tp:11:1 + #node bgp:11 + ${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:11']/.. + ${node} Element to String ${node} + Should Contain X Times ${node} /network-topology/topology/network-topo:3/node/bgp:11/termination-point/tp:11:1 1 + #node bgp:12 + ${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:12']/.. + ${node} Element to String ${node} + Should Not Contain ${node} Filtration IPV6 Inventory Model [Documentation] Test of ipv6 type of filtration operation on Inventory model @@ -190,8 +214,6 @@ Filtration IPV6 Inventory Model Should Contain X Times ${resp.content} of-node:12 1 Should Contain X Times ${resp.content} of-node:14 1 Should Contain X Times ${resp.content} of-node:15 1 - [Teardown] Run Keywords Filtration Nodes Test Teardown - ... AND Report_Failure_Due_To_Bug 4683 Filtration Script Network Topology Model [Documentation] Test of script type of filtration operation on Network Topology model @@ -205,11 +227,20 @@ Filtration Script Network Topology Model : FOR ${index} IN RANGE 3 5 \ Should Contain X Times ${resp.content} bgp:${index} 1 Should Contain X Times ${resp.content} 5 - Should Contain ${resp.content} tp:3:1 - Should Contain ${resp.content} tp:3:2 - Should Contain ${resp.content} tp:4:1 - Should Contain ${resp.content} tp:4:2 - Should Contain ${resp.content} tp:5:1 + #node bgp:3 + ${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:3']/.. + ${node} Element to String ${node} + Should Contain X Times ${node} /network-topology/topology/network-topo:1/node/bgp:3/termination-point/tp:3:1 1 + Should Contain X Times ${node} /network-topology/topology/network-topo:1/node/bgp:3/termination-point/tp:3:2 1 + #node bgp:4 + ${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:4']/.. + ${node} Element to String ${node} + Should Contain X Times ${node} /network-topology/topology/network-topo:1/node/bgp:4/termination-point/tp:4:1 1 + Should Contain X Times ${node} /network-topology/topology/network-topo:1/node/bgp:4/termination-point/tp:4:2 1 + #node bgp:5 + ${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:5']/.. + ${node} Element to String ${node} + Should Contain X Times ${node} /network-topology/topology/network-topo:1/node/bgp:5/termination-point/tp:5:1 1 Filtration Script Inventory Model [Documentation] Test of script type of filtration operation on Inventory model @@ -222,10 +253,3 @@ Filtration Script Inventory Model Should Contain X Times ${resp.content} node: 3 : FOR ${index} IN RANGE 1 3 \ Should Contain X Times ${resp.content} of-node:${index} 1 - [Teardown] Run Keywords Filtration Nodes Test Teardown - ... AND Report_Failure_Due_To_Bug 4683 - -*** Keywords *** -Filtration Nodes Test Teardown - Test Teardown network-topology:network-topology/topology/topo:1 - Report_Failure_Due_To_Bug 4673