2 Documentation Test suite to verify fitration operation on different models.
3 ... Before test starts, configurational file have to be rewriten to change listners registration datastore type from CONFIGURATION to OPERATIONAL.
4 ... Need for this change is also a reason why main feature (odl-topoprocessing-framework) is installed after file change and not during boot.
5 ... Tests themselves install feature required for specific model, clear karaf logs for futher synchronization, send configurational xmls and verify output.
6 ... Topology-id on the end of each urls must match topology-id from xml. Yang models of components in topology are defined in xmls.
7 Suite Setup Setup Environment
8 Suite Teardown Clean Environment
9 Test Teardown Aggregation Filtration Test Teardown
10 Library RequestsLibrary
13 Variables ../../../variables/topoprocessing/TopologyRequests.py
14 Variables ../../../variables/Variables.py
15 Resource ../../../libraries/KarafKeywords.robot
16 Resource ../../../libraries/Utils.robot
17 Resource ../../../libraries/TopoprocessingKeywords.robot
20 Unification Filtration Node Inside Network Topology model
21 [Documentation] Test unification filtration inside operation on Network Topology model
22 ${request} Prepare Unification Filtration Inside Topology Request ${UNIFICATION_FILTRATION_NT_AGGREGATE_INSIDE} network-topology-model node l3-unicast-igp-topology:igp-node-attributes/isis-topology:isis-node-attributes/isis-topology:ted/isis-topology:te-router-id-ipv4 network-topo:4
23 ${request} Insert Filter ${request} ${FILTER_IPV4} l3-unicast-igp-topology:igp-node-attributes/isis-topology:isis-node-attributes/isis-topology:ted/isis-topology:te-router-id-ipv4
24 ${request} Set IPV4 Filter ${request} 192.168.2.1/24
25 ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
26 Should Contain ${resp.content} <topology-id>topo:1</topology-id>
27 Should Contain X Times ${resp.content} <node-id>node: 2
28 Should Contain ${resp.content} <node-ref>bgp: 3
29 : FOR ${index} IN RANGE 18 20
30 \ Should Contain X Times ${resp.content} <node-ref>bgp:${index}</node-ref> 1
31 ${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:18']/..
32 ${node} Element to String ${node}
33 Should Contain X Times ${node} <supporting-node> 2
34 Should Contain ${node} <node-ref>bgp:18</node-ref>
35 Should Contain ${node} <node-ref>bgp:20</node-ref>
37 Unification Filtration Node Inside Inventory model
38 [Documentation] Test unification filtration inside operation on Inventory model
39 ${request} Prepare Unification Filtration Inside Topology Request ${UNIFICATION_FILTRATION_NT_AGGREGATE_INSIDE} opendaylight-inventory-model node flow-node-inventory:ip-address openflow-topo:4
40 ${request} Insert Filter ${request} ${FILTER_IPV4} flow-node-inventory:ip-address
41 ${request} Set IPV4 Filter ${request} 192.168.2.1/24
42 ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
43 Should Contain ${resp.content} <topology-id>topo:1</topology-id>
44 Should Contain X Times ${resp.content} <node-id>node: 2
45 Should Contain ${resp.content} <node-ref>of-node: 4
46 : FOR ${index} IN RANGE 17 20
47 \ Should Contain X Times ${resp.content} <node-ref>of-node:${index}</node-ref> 1
48 ${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='of-node:17']/..
49 ${node} Element to String ${node}
50 Should Contain X Times ${node} <supporting-node> 3
51 Should Contain ${node} <node-ref>of-node:17</node-ref>
52 Should Contain ${node} <node-ref>of-node:19</node-ref>
53 Should Contain ${node} <node-ref>of-node:20</node-ref>
54 [Teardown] Run Keywords Aggregation Filtration Test Teardown
55 ... AND Report_Failure_Due_To_Bug 4683
57 Unification Filtration Termination Point Inside Network Topology model
58 [Documentation] Test unification filtration inside operation on Network Topology model
59 ${request} Prepare Unification Filtration Inside Topology Request ${UNIFICATION_FILTRATION_NT_AGGREGATE_INSIDE} network-topology-model termination-point l3-unicast-igp-topology:igp-termination-point-attributes/l3-unicast-igp-topology:ip-address network-topo:5
60 ${request} Insert Filter ${request} ${FILTER_IPV4} l3-unicast-igp-topology:igp-termination-point-attributes/l3-unicast-igp-topology:ip-address
61 ${request} Set IPV4 Filter ${request} 192.168.1.1/24
62 ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
63 Should Contain ${resp.content} <topology-id>topo:1</topology-id>
64 Should Contain X Times ${resp.content} <node-id>node: 5
65 Should Contain X Times ${resp.content} <termination-point> 4
66 ${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:21']/..
67 ${node} Element to String ${node}
68 Should Contain X Times ${node} <termination-point> 2
69 ${tp} Get Element ${node} xpath=.//termination-point/supporting-termin-point[tp-ref='tp:21:2']/..
70 ${tp} Element to String ${tp}
71 Should Contain X Times ${tp} <tp-ref>tp: 2
72 Should Contain ${tp} <tp-ref>tp:21:3</tp-ref>
73 ${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:22']/..
74 ${node} Element to String ${node}
75 Should Contain X Times ${node} <termination-point> 1
76 Should Contain X Times ${node} <tp-ref>tp: 1
77 Should Contain ${node} <tp-ref>tp:22:2</tp-ref>
78 ${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:24']/..
79 ${node} Element to String ${node}
80 Should Contain X Times ${node} <termination-point> 1
81 Should Contain X Times ${node} <tp-ref>tp: 3
82 Should Contain ${node} <tp-ref>tp:24:1</tp-ref>
83 Should Contain ${node} <tp-ref>tp:24:2</tp-ref>
84 Should Contain ${node} <tp-ref>tp:24:3</tp-ref>
85 [Teardown] Run Keywords Aggregation Filtration Test Teardown
86 ... AND Report_Failure_Due_To_Bug 4750
88 Unification Filtration Node Network Topology model
89 [Documentation] Test unification filtration operation on Network Topology model
90 ${request} Prepare Unification Filtration Inside Topology Request ${UNIFICATION_FILTRATION_NT} network-topology-model node l3-unicast-igp-topology:igp-node-attributes/isis-topology:isis-node-attributes/isis-topology:ted/isis-topology:te-router-id-ipv4 network-topo:4
91 ${request} Prepare Unification Filtration Topology Request ${request} network-topology-model l3-unicast-igp-topology:igp-node-attributes/isis-topology:isis-node-attributes/isis-topology:ted/isis-topology:te-router-id-ipv4 network-topo:1
92 ${request} Insert Filter ${request} ${FILTER_IPV4} l3-unicast-igp-topology:igp-node-attributes/isis-topology:isis-node-attributes/isis-topology:ted/isis-topology:te-router-id-ipv4
93 ${request} Set IPV4 Filter ${request} 192.168.2.1/24
94 ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
95 Should Contain ${resp.content} <topology-id>topo:1</topology-id>
96 Should Contain X Times ${resp.content} <node-id>node: 5
97 : FOR ${index} IN RANGE 18 20
98 \ Should Contain X Times ${resp.content} <node-ref>bgp:${index}</node-ref> 1
99 : FOR ${index} IN RANGE 1 5
100 \ Should Contain X Times ${resp.content} <node-ref>bgp:${index}</node-ref> 1
101 ${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:18']/..
102 ${node} Element to String ${node}
103 Should Contain X Times ${node} <supporting-node> 4
104 Should Contain ${node} <node-ref>bgp:18</node-ref>
105 Should Contain ${node} <node-ref>bgp:20</node-ref>
106 Should Contain ${node} <node-ref>bgp:3</node-ref>
107 Should Contain ${node} <node-ref>bgp:4</node-ref>
108 Should Contain ${node} <termination-point> 4
109 Should Contain ${node} <tp-id>tp:3:1</tp-id>
110 Should Contain ${node} <tp-id>tp:3:2</tp-id>
111 Should Contain ${node} <tp-id>tp:4:1</tp-id>
112 Should Contain ${node} <tp-id>tp:4:2</tp-id>
113 ${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:5']/..
114 ${node} Element to String ${node}
115 Should Contain ${node} <termination-point> 1
116 Should Contain ${node} <tp-id>tp:5:1</tp-id>
117 ${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:1']/..
118 ${node} Element to String ${node}
119 Should Contain ${node} <termination-point> 3
120 Should Contain ${node} <tp-id>tp:1:1</tp-id>
121 Should Contain ${node} <tp-id>tp:1:2</tp-id>
122 Should Contain ${node} <tp-id>tp:1:3</tp-id>
124 Unification Filtration Node Inventory model
125 [Documentation] Test unification filtration operation on Inventory model
126 ${request} Prepare Unification Filtration Inside Topology Request ${UNIFICATION_FILTRATION_NT} opendaylight-inventory-model node flow-node-inventory:ip-address openflow-topo:4
127 ${request} Prepare Unification Filtration Topology Request ${request} opendaylight-inventory-model flow-node-inventory:ip-address openflow-topo:6
128 ${request} Insert Filter ${request} ${FILTER_IPV4} flow-node-inventory:ip-address
129 ${request} Set IPV4 Filter ${request} 192.168.1.1/24
130 ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
131 Should Contain ${resp.content} <topology-id>topo:1</topology-id>
132 Should Contain X Times ${resp.content} <node-id>node: 5
133 : FOR ${index} IN RANGE 6 10
134 \ Should Contain X Times ${resp.content} <node-ref>of-node:${index}</node-ref> 1
135 Should Contain X Times ${resp.content} <node-ref>of-node:16</node-ref> 1
136 ${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='of-node:6']/..
137 ${node} Element to String ${node}
138 Should Contain X Times ${node} <supporting-node> 2
139 Should Contain ${node} <node-ref>of-node:6</node-ref>
140 Should Contain ${node} <node-ref>of-node:16</node-ref>
141 [Teardown] Run Keywords Aggregation Filtration Test Teardown
142 ... AND Report_Failure_Due_To_Bug 4683
145 Aggregation Filtration Test Teardown
146 Test Teardown network-topology:network-topology/topology/topo:1
147 Report_Failure_Due_To_Bug 4673