Topoprocessing - bugfix for bug5156 96/35396/3
authorSamuel Kontriš <samuel.kontris@pantheon.tech>
Thu, 25 Feb 2016 13:20:27 +0000 (14:20 +0100)
committerGerrit Code Review <gerrit@opendaylight.org>
Thu, 10 Mar 2016 14:26:01 +0000 (14:26 +0000)
Change-Id: Iaf9e7aadbc05bc49400286fe5c37f814ecc7650c
Signed-off-by: Samuel Kontriš <samuel.kontris@pantheon.tech>
csit/libraries/TopoprocessingKeywords.robot
csit/suites/topoprocessing/basic-topology-operations/010_Aggregation.robot
csit/suites/topoprocessing/basic-topology-operations/020_Filtration_nodes.robot
csit/suites/topoprocessing/basic-topology-operations/030_Filtration_termination_points.robot
csit/suites/topoprocessing/basic-topology-operations/040_Filtration_links.robot
csit/suites/topoprocessing/basic-topology-operations/050_Aggregation_filtration.robot

index 0a03c9c2e58facc32770e37bd6666ceb27c78e61..14a5569ff43eae633a098322830d023aa2fb6ba0 100644 (file)
@@ -110,10 +110,10 @@ Prepare Unification Topology Request
     [Return]    ${request_template}
 
 Prepare Unification Filtration Topology Request
-    [Arguments]    ${request_template}    ${model}    ${target-field}    ${underlay_topo2}
+    [Arguments]    ${request_template}    ${model}    ${target_field}    ${underlay_topo2}
     [Documentation]    Prepare topology request for unification on two topologies from template
     ${request_template}    Set Element Text    ${request_template}    ${underlay_topo2}    xpath=.//correlation/aggregation/mapping[2]/underlay-topology
-    ${request_template}    Set Element Text    ${request_template}    ${target-field}    xpath=.//correlation/aggregation/mapping[2]/target-field[1]/target-field-path
+    Insert Target Field    ${request_template}    2    ${target_field}    1
     ${request_template}    Set Element Text    ${request_template}    ${model}    xpath=.//correlation/aggregation/mapping[2]/input-model
     ${request_template}    Element to String    ${request_template}
     [Return]    ${request_template}
@@ -127,7 +127,7 @@ Prepare Unification Filtration Inside Topology Request
     ${request_template}    Set Element Text    ${request_template}    unification    xpath=.//correlation/aggregation/aggregation-type
     ${request_template}    Set Element Text    ${request_template}    ${model}    xpath=.//correlation/aggregation/mapping[1]/input-model
     ${request_template}    Set Element Text    ${request_template}    ${underlay_topo}    xpath=.//correlation/aggregation/mapping[1]/underlay-topology
-    ${request_template}    Set Element Text    ${request_template}    ${target-field}    xpath=.//correlation/aggregation/mapping[1]/target-field[1]/target-field-path
+    Insert Target Field    ${request_template}    1    ${target-field}    1
     ${request_template}    Set Element Text    ${request_template}    ${underlay_topo}    xpath=.//correlation/filtration/underlay-topology
     ${request_template}    Element to String    ${request_template}
     [Return]    ${request_template}
index 0de1ab6e6d283ba2b5f81f0476f2394e06dec533..0e9def6dd45d2da4a03925c7996dfabf58af0160 100644 (file)
@@ -6,7 +6,7 @@ Documentation     Test suite to verify unification operation on different models
 ...               xmls and verify output. 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     Aggregation Test Teardown
+Test Teardown     Test Teardown    network-topology:network-topology/topology/topo:1
 Library           RequestsLibrary
 Library           SSHLibrary
 Library           XML
@@ -179,10 +179,4 @@ Unification Termination Point Inside Inventory
     ${node}    Get Element    ${resp.content}    xpath=.//node/supporting-node[node-ref='of-node:5']/..
     ${node}    Element to String    ${node}
     Should Contain X Times    ${node}    <termination-point>    1
-    [Teardown]    Run Keywords    Aggregation Test Teardown
-    ...    AND    Report_Failure_Due_To_Bug    4674
-
-*** Keywords ***
-Aggregation Test Teardown
-    Test Teardown    network-topology:network-topology/topology/topo:1
-    Report_Failure_Due_To_Bug    5157
+    [Teardown]    Report_Failure_Due_To_Bug    4674
index 7e97aa66b622d3ddf1be9fe39a58b7c86442fbd8..134ab9286d44684addf2a4e064f650c344809d31 100644 (file)
@@ -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}    <termination-point>    3
-    Should Contain    ${node}    <tp-id>tp:1:1</tp-id>
-    Should Contain    ${node}    <tp-id>tp:1:2</tp-id>
-    Should Contain    ${node}    <tp-id>tp:1:3</tp-id>
+    Should Contain X Times    ${node}    <tp-ref>/network-topology/topology/network-topo:1/node/bgp:1/termination-point/tp:1:3</tp-ref>    1
+    Should Contain X Times    ${node}    <tp-ref>/network-topology/topology/network-topo:1/node/bgp:1/termination-point/tp:1:2</tp-ref>    1
+    Should Contain X Times    ${node}    <tp-ref>/network-topology/topology/network-topo:1/node/bgp:1/termination-point/tp:1:3</tp-ref>    1
     Should Contain X Times    ${resp.content}    <node-ref>bgp:2</node-ref>    1
 
 Filtration IPV4 Inventory Model
@@ -44,8 +44,6 @@ Filtration IPV4 Inventory Model
     Should Contain X Times    ${resp.content}    <node-id>node:    3
     : FOR    ${index}    IN RANGE    1    3
     \    Should Contain X Times    ${resp.content}    <node-ref>of-node:${index}</node-ref>    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}    <node-ref>bgp:${index}</node-ref>    1
     Should Contain X Times    ${resp.content}    <termination-point>    5
-    Should Contain    ${resp.content}    <tp-id>tp:7:1</tp-id>
-    Should Contain    ${resp.content}    <tp-id>tp:7:2</tp-id>
-    Should Contain    ${resp.content}    <tp-id>tp:8:1</tp-id>
-    Should Contain    ${resp.content}    <tp-id>tp:9:1</tp-id>
-    Should Contain    ${resp.content}    <tp-id>tp:10:1</tp-id>
+    #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}    <tp-ref>/network-topology/topology/network-topo:2/node/bgp:7/termination-point/tp:7:1</tp-ref>    1
+    Should Contain X Times    ${node}    <tp-ref>/network-topology/topology/network-topo:2/node/bgp:7/termination-point/tp:7:2</tp-ref>    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}    <tp-ref>/network-topology/topology/network-topo:2/node/bgp:8/termination-point/tp:8:1</tp-ref>    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}    <tp-ref>/network-topology/topology/network-topo:2/node/bgp:9/termination-point/tp:9:1</tp-ref>    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}    <tp-ref>/network-topology/topology/network-topo:2/node/bgp:10/termination-point/tp:10:1</tp-ref>    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-id>node:    3
     : FOR    ${index}    IN RANGE    8    10
     \    Should Contain X Times    ${resp.content}    <node-ref>of-node:${index}</node-ref>    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}    <termination-point>    2
     Should Contain    ${resp.content}    <tp-id>tp:9:1</tp-id>
     Should Contain    ${resp.content}    <tp-id>tp:10:1</tp-id>
-    [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-id>node:    2
     Should Contain X Times    ${resp.content}    <node-ref>of-node:8</node-ref>    1
     Should Contain X Times    ${resp.content}    <node-ref>of-node:9</node-ref>    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}    <node-ref>bgp:9</node-ref>    1
     Should Contain X Times    ${resp.content}    <node-ref>bgp:10</node-ref>    1
     Should Contain X Times    ${resp.content}    <termination-point>    2
-    Should Contain    ${resp.content}    <tp-id>tp:9:1</tp-id>
-    Should Contain    ${resp.content}    <tp-id>tp:10:1</tp-id>
+    #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}    <tp-ref>/network-topology/topology/network-topo:2/node/bgp:9/termination-point/tp:9:1</tp-ref>    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}    <tp-ref>/network-topology/topology/network-topo:2/node/bgp:10/termination-point/tp:10:1</tp-ref>    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-id>node:    2
     Should Contain X Times    ${resp.content}    <node-ref>of-node:8</node-ref>    1
     Should Contain X Times    ${resp.content}    <node-ref>of-node:9</node-ref>    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}    <node-ref>bgp:${index}</node-ref>    1
     Should Contain X Times    ${resp.content}    <termination-point>    5
-    Should Contain    ${resp.content}    <tp-id>tp:7:1</tp-id>
-    Should Contain    ${resp.content}    <tp-id>tp:7:2</tp-id>
-    Should Contain    ${resp.content}    <tp-id>tp:8:1</tp-id>
-    Should Contain    ${resp.content}    <tp-id>tp:9:1</tp-id>
-    Should Contain    ${resp.content}    <tp-id>tp:10:1</tp-id>
+    #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}    <tp-ref>/network-topology/topology/network-topo:2/node/bgp:7/termination-point/tp:7:1</tp-ref>    1
+    Should Contain X Times    ${node}    <tp-ref>/network-topology/topology/network-topo:2/node/bgp:7/termination-point/tp:7:2</tp-ref>    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}    <tp-ref>/network-topology/topology/network-topo:2/node/bgp:8/termination-point/tp:8:1</tp-ref>    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}    <tp-ref>/network-topology/topology/network-topo:2/node/bgp:9/termination-point/tp:9:1</tp-ref>    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}    <tp-ref>/network-topology/topology/network-topo:2/node/bgp:10/termination-point/tp:10:1</tp-ref>    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-id>node:    3
     : FOR    ${index}    IN RANGE    8    10
     \    Should Contain X Times    ${resp.content}    <node-ref>of-node:${index}</node-ref>    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}    <node-ref>bgp:11</node-ref>    1
     Should Contain X Times    ${resp.content}    <node-ref>bgp:12</node-ref>    1
     Should Contain X Times    ${resp.content}    <termination-point>    1
-    Should Contain    ${resp.content}    <tp-id>tp:11:1</tp-id>
+    #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}    <tp-ref>/network-topology/topology/network-topo:3/node/bgp:11/termination-point/tp:11:1</tp-ref>    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}    <tp-ref>
 
 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}    <node-ref>of-node:12</node-ref>    1
     Should Contain X Times    ${resp.content}    <node-ref>of-node:14</node-ref>    1
     Should Contain X Times    ${resp.content}    <node-ref>of-node:15</node-ref>    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}    <node-ref>bgp:${index}</node-ref>    1
     Should Contain X Times    ${resp.content}    <termination-point>    5
-    Should Contain    ${resp.content}    <tp-id>tp:3:1</tp-id>
-    Should Contain    ${resp.content}    <tp-id>tp:3:2</tp-id>
-    Should Contain    ${resp.content}    <tp-id>tp:4:1</tp-id>
-    Should Contain    ${resp.content}    <tp-id>tp:4:2</tp-id>
-    Should Contain    ${resp.content}    <tp-id>tp:5:1</tp-id>
+    #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}    <tp-ref>/network-topology/topology/network-topo:1/node/bgp:3/termination-point/tp:3:1</tp-ref>    1
+    Should Contain X Times    ${node}    <tp-ref>/network-topology/topology/network-topo:1/node/bgp:3/termination-point/tp:3:2</tp-ref>    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}    <tp-ref>/network-topology/topology/network-topo:1/node/bgp:4/termination-point/tp:4:1</tp-ref>    1
+    Should Contain X Times    ${node}    <tp-ref>/network-topology/topology/network-topo:1/node/bgp:4/termination-point/tp:4:2</tp-ref>    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}    <tp-ref>/network-topology/topology/network-topo:1/node/bgp:5/termination-point/tp:5:1</tp-ref>    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-id>node:    3
     : FOR    ${index}    IN RANGE    1    3
     \    Should Contain X Times    ${resp.content}    <node-ref>of-node:${index}</node-ref>    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
index 54565a963337622e9baf671a24971870a5d21ba3..f9a3410eacab0a9ba806ce4061444bb5295ce086 100644 (file)
@@ -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 Termination Points Test Teardown
+Test Teardown     Test Teardown    network-topology:network-topology/topology/topo:1
 Library           RequestsLibrary
 Library           SSHLibrary
 Library           XML
@@ -21,7 +21,7 @@ Filtration IPV4 Network Topology Model
     [Documentation]    Test of ipv4 type of filtration operation on Network Topology model
     ${request}    Prepare Filtration Topology Request    ${FILTRATION_NT}    network-topology-model    termination-point    network-topo:1
     ${request}    Insert Filter    ${request}    ${FILTER_IPV4}    l3-unicast-igp-topology:igp-termination-point-attributes/l3-unicast-igp-topology:ip-address
-    ${request}    Set IPV4 Filter    ${request}    192.168.1.1/24
+    ${request}    Set IPV4 Filter    ${request}    192.168.1.1/8
     ${resp}    Send Basic Request    ${request}    network-topology:network-topology/topology/topo:1
     Should Contain    ${resp.content}    <topology-id>topo:1</topology-id>
     Should Contain X Times    ${resp.content}    <node-id>node:    5
@@ -36,8 +36,6 @@ Filtration IPV4 Network Topology Model
     Should Contain X Times    ${node}    <termination-point>    2
     Should Contain    ${node}    <tp-id>tp:3:1</tp-id>
     Should Contain    ${node}    <tp-id>tp:3:2</tp-id>
-    [Teardown]    Run Keywords    Filtration Termination Points Test Teardown
-    ...    AND    Report_Failure_Due_To_Bug    4750
 
 Filtration Range Number Network Topology Model
     [Documentation]    Test of range number type of filtration operation on Network Topology model
@@ -57,8 +55,6 @@ Filtration Range Number Network Topology Model
     ${node}    Element to String    ${node}
     Should Contain X Times    ${node}    <termination-point>    1
     Should Contain    ${node}    <tp-id>tp:6:1</tp-id>
-    [Teardown]    Run Keywords    Filtration Termination Points Test Teardown
-    ...    AND    Report_Failure_Due_To_Bug    4750
 
 Filtration Range Number Inventory Model
     [Documentation]    Test of range number type of filtration operation on Inventory model
@@ -78,7 +74,7 @@ Filtration Range Number Inventory Model
     ${node}    Get Element    ${resp.content}    xpath=.//node/supporting-node[node-ref='of-node:5']/..
     ${node}    Element to String    ${node}
     Should Contain X Times    ${node}    <termination-point>    1
-    [Teardown]    Run Keywords    Filtration Termination Points Test Teardown
+    [Teardown]    Run Keywords    Test Teardown    network-topology:network-topology/topology/topo:1
     ...    AND    Report_Failure_Due_To_Bug    4674
 
 Filtration Specific Number Network Topology Model
@@ -94,8 +90,6 @@ Filtration Specific Number Network Topology Model
     ${node}    Element to String    ${node}
     Should Contain X Times    ${node}    <termination-point>    1
     Should Contain    ${node}    <tp-id>tp:7:1</tp-id>
-    [Teardown]    Run Keywords    Filtration Termination Points Test Teardown
-    ...    AND    Report_Failure_Due_To_Bug    4750
 
 Filtration Specific Number Inventory Model
     [Documentation]    Test of specific number type of filtration operation on Inventory model
@@ -118,7 +112,7 @@ Filtration Specific Number Inventory Model
     ${node}    Get Element    ${resp.content}    xpath=.//node/supporting-node[node-ref='of-node:4']/..
     ${node}    Element to String    ${node}
     Should Contain X Times    ${node}    <termination-point>    3
-    [Teardown]    Run Keywords    Filtration Termination Points Test Teardown
+    [Teardown]    Run Keywords    Test Teardown    network-topology:network-topology/topology/topo:1
     ...    AND    Report_Failure_Due_To_Bug    4674
 
 Filtration Specific String Network Topology Model
@@ -133,8 +127,6 @@ Filtration Specific String Network Topology Model
     ${node}    Get Element    ${resp.content}    xpath=.//node/supporting-node[node-ref='bgp:7']/..
     ${node}    Element to String    ${node}
     Should Contain X Times    ${node}    <termination-point>    1
-    [Teardown]    Run Keywords    Filtration Termination Points Test Teardown
-    ...    AND    Report_Failure_Due_To_Bug    4750
 
 Filtration Specific String Inventory Model
     [Documentation]    Test of specific string type of filtration operation on Inventory model
@@ -150,7 +142,7 @@ Filtration Specific String Inventory Model
     ${node}    Get Element    ${resp.content}    xpath=.//node/supporting-node[node-ref='of-node:5']/..
     ${node}    Element to String    ${node}
     Should Contain X Times    ${node}    <termination-point>    1
-    [Teardown]    Run Keywords    Filtration Termination Points Test Teardown
+    [Teardown]    Run Keywords    Test Teardown    network-topology:network-topology/topology/topo:1
     ...    AND    Report_Failure_Due_To_Bug    4674
 
 Filtration Range String Network Topology Model
@@ -171,8 +163,6 @@ Filtration Range String Network Topology Model
     ${node}    Get Element    ${resp.content}    xpath=.//node/supporting-node[node-ref='bgp:10']/..
     ${node}    Element to String    ${node}
     Should Contain X Times    ${node}    <termination-point>    1
-    [Teardown]    Run Keywords    Filtration Termination Points Test Teardown
-    ...    AND    Report_Failure_Due_To_Bug    4750
 
 Filtration Range String Inventory Model
     [Documentation]    Test of range string type of filtration operation on Inventory model
@@ -188,7 +178,7 @@ Filtration Range String Inventory Model
     ${node}    Get Element    ${resp.content}    xpath=.//node/supporting-node[node-ref='of-node:5']/..
     ${node}    Element to String    ${node}
     Should Contain X Times    ${node}    <termination-point>    1
-    [Teardown]    Run Keywords    Filtration Termination Points Test Teardown
+    [Teardown]    Run Keywords    Test Teardown    network-topology:network-topology/topology/topo:1
     ...    AND    Report_Failure_Due_To_Bug    4674
 
 Filtration IPV6 Network Topology Model
@@ -203,8 +193,6 @@ Filtration IPV6 Network Topology Model
     ${node}    Get Element    ${resp.content}    xpath=.//node/supporting-node[node-ref='bgp:11']/..
     ${node}    Element to String    ${node}
     Should Contain X Times    ${node}    <termination-point>    1
-    [Teardown]    Run Keywords    Filtration Termination Points Test Teardown
-    ...    AND    Report_Failure_Due_To_Bug    4750
 
 Filtration Script Network Topology Model
     [Documentation]    Test of script type of filtration operation on Network Topology model
@@ -222,8 +210,6 @@ Filtration Script Network Topology Model
     ${node}    Get Element    ${resp.content}    xpath=.//node/supporting-node[node-ref='bgp:5']/..
     ${node}    Element to String    ${node}
     Should Contain X Times    ${node}    <termination-point>    1
-    [Teardown]    Run Keywords    Filtration Termination Points Test Teardown
-    ...    AND    Report_Failure_Due_To_Bug    4750
 
 Filtration Script Inventory Model
     [Documentation]    Test of script type of filtration operation on Inventory model
@@ -241,10 +227,5 @@ Filtration Script Inventory Model
     ${node}    Get Element    ${resp.content}    xpath=.//node/supporting-node[node-ref='of-node:1']/..
     ${node}    Element to String    ${node}
     Should Contain X Times    ${node}    <termination-point>    1
-    [Teardown]    Run Keywords    Filtration Termination Points Test Teardown
+    [Teardown]    Run Keywords    Test Teardown    network-topology:network-topology/topology/topo:1
     ...    AND    Report_Failure_Due_To_Bug    4674
-
-*** Keywords ***
-Filtration Termination Points Test Teardown
-    Test Teardown    network-topology:network-topology/topology/topo:1
-    Report_Failure_Due_To_Bug    4673
index cb88d327da4b9b05a00c5a12261bff65a5eaf2a2..aa94ccd756163ee0d18a779a1e5d4015db03ecd6 100644 (file)
@@ -39,8 +39,6 @@ Filtration Range Number Inventory Model
     Should Contain X Times    ${resp.content}    <link-id>link:    2
     Should Contain X Times    ${resp.content}    <link-ref>link:14:12</link-ref>    1
     Should Contain X Times    ${resp.content}    <link-ref>link:15:13</link-ref>    1
-    [Teardown]    Run Keywords    Filtration Links Test Teardown
-    ...    AND    Report_Failure_Due_To_Bug    4761
 
 Filtration Specific Number Network Topology Model
     [Documentation]    Test of specific number type of filtration operation on Network Topology model
@@ -53,8 +51,6 @@ Filtration Specific Number Network Topology Model
     Should Contain X Times    ${resp.content}    <link-id>link:    2
     Should Contain X Times    ${resp.content}    <link-ref>link:1:4</link-ref>    1
     Should Contain X Times    ${resp.content}    <link-ref>link:1:2-1</link-ref>    1
-    [Teardown]    Run Keywords    Filtration Links 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
@@ -67,8 +63,6 @@ Filtration Specific Number Inventory Model
     Should Contain X Times    ${resp.content}    <link-id>link:    1
     Should Contain X Times    ${resp.content}    <link-ref>link:11:12</link-ref>    1
     [Teardown]    Run Keywords    Filtration Links Test Teardown
-    ...    AND    Report_Failure_Due_To_Bug    4761
-    ...    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
@@ -90,8 +84,6 @@ Filtration Specific String Inventory Model
     Should Contain    ${resp.content}    <topology-id>topo:1</topology-id>
     Should Contain X Times    ${resp.content}    <link-id>link:    1
     Should Contain X Times    ${resp.content}    <link-ref>link:15:13</link-ref>    1
-    [Teardown]    Run Keywords    Filtration Links Test Teardown
-    ...    AND    Report_Failure_Due_To_Bug    4761
 
 Filtration Range String Network Topology Model
     [Documentation]    Test of range string type of filtration operation on Network Topology model
@@ -115,8 +107,6 @@ Filtration Range String Inventory Model
     Should Contain X Times    ${resp.content}    <link-id>link:    2
     Should Contain X Times    ${resp.content}    <link-ref>link:14:12</link-ref>    1
     Should Contain X Times    ${resp.content}    <link-ref>link:15:13</link-ref>    1
-    [Teardown]    Run Keywords    Filtration Links Test Teardown
-    ...    AND    Report_Failure_Due_To_Bug    4761
 
 Filtration Script Network Topology Model
     [Documentation]    Test of script type of filtration operation on Network Topology model
@@ -142,10 +132,8 @@ Filtration Script Inventory Model
     Should Contain X Times    ${resp.content}    <link-ref>link:11:12</link-ref>    1
     Should Contain X Times    ${resp.content}    <link-ref>link:14:12</link-ref>    1
     Should Contain X Times    ${resp.content}    <link-ref>link:15:13</link-ref>    1
-    [Teardown]    Run Keywords    Filtration Links Test Teardown
-    ...    AND    Report_Failure_Due_To_Bug    4761
 
 *** Keywords ***
 Filtration Links Test Teardown
     Test Teardown    network-topology:network-topology/topology/topo:1
-    Report_Failure_Due_To_Bug    4673
+    Report_Failure_Due_To_Bug    5188
index e229c5d1c07a8c7bd1616107aa570dd0637c87f1..a1f5c42c26ec4e68362a93d5ecfc0f77b316b853 100644 (file)
@@ -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     Aggregation Filtration Test Teardown
+Test Teardown     Test Teardown    network-topology:network-topology/topology/topo:1
 Library           RequestsLibrary
 Library           SSHLibrary
 Library           XML
@@ -51,8 +51,6 @@ Unification Filtration Node Inside Inventory model
     Should Contain    ${node}    <node-ref>of-node:17</node-ref>
     Should Contain    ${node}    <node-ref>of-node:19</node-ref>
     Should Contain    ${node}    <node-ref>of-node:20</node-ref>
-    [Teardown]    Run Keywords    Aggregation Filtration Test Teardown
-    ...    AND    Report_Failure_Due_To_Bug    4683
 
 Unification Filtration Termination Point Inside Network Topology model
     [Documentation]    Test unification filtration inside operation on Network Topology model
@@ -82,8 +80,6 @@ Unification Filtration Termination Point Inside Network Topology model
     Should Contain    ${node}    <tp-ref>tp:24:1</tp-ref>
     Should Contain    ${node}    <tp-ref>tp:24:2</tp-ref>
     Should Contain    ${node}    <tp-ref>tp:24:3</tp-ref>
-    [Teardown]    Run Keywords    Aggregation Filtration Test Teardown
-    ...    AND    Report_Failure_Due_To_Bug    4750
 
 Unification Filtration Node Network Topology model
     [Documentation]    Test unification filtration operation on Network Topology model
@@ -138,10 +134,3 @@ Unification Filtration Node Inventory model
     Should Contain X Times    ${node}    <supporting-node>    2
     Should Contain    ${node}    <node-ref>of-node:6</node-ref>
     Should Contain    ${node}    <node-ref>of-node:16</node-ref>
-    [Teardown]    Run Keywords    Aggregation Filtration Test Teardown
-    ...    AND    Report_Failure_Due_To_Bug    4683
-
-*** Keywords ***
-Aggregation Filtration Test Teardown
-    Test Teardown    network-topology:network-topology/topology/topo:1
-    Report_Failure_Due_To_Bug    4673