2 Documentation Test suite for AddressObservations in RESTCONF inventory
3 Suite Setup Create Session session http://${CONTROLLER}:${PORT} auth=${AUTH} headers=${HEADERS_XML}
4 Suite Teardown Delete All Sessions
7 Library ../../../libraries/RequestsLibrary.py
8 Library ../../../libraries/Common.py
9 Variables ../../../variables/Variables.py
12 ${REST_CONTEXT} /restconf/operational/opendaylight-inventory:nodes
19 [Documentation] Get the inventory, should not contain address observations
20 ${resp} Get session ${REST_CONTEXT}
21 Should Be Equal As Strings ${resp.status_code} 200
22 Should Contain ${resp.content} openflow:1
23 Should Contain ${resp.content} openflow:2
24 Should Contain ${resp.content} openflow:3
25 Should Contain X Times ${resp.content} forwarding 4
26 Should Not Contain ${resp.content} ${IP_1}
27 Should Not Contain ${resp.content} ${IP_2}
28 Should Not Contain ${resp.content} ${IP_3}
31 [Documentation] Pingall, verify no packet loss
34 ${result} Read Until mininet>
35 Should Contain ${result} 0% dropped
36 Should Not Contain ${result} X
40 [Documentation] Get the address observations for node 1
41 ${resp} Get session ${REST_CONTEXT}/node/openflow:1
42 Should Be Equal As Strings ${resp.status_code} 200
43 Should Contain ${resp.content} openflow:1:1
44 Should Contain ${resp.content} openflow:1:2
45 Should Contain ${resp.content} addresses
46 Should Contain X Times ${resp.content} ${IP_1} 1
47 Should Not Contain ${resp.content} ${IP_2}
48 Should Not Contain ${resp.content} ${IP_3}
51 [Documentation] Get the address observations for node 2
52 ${resp} Get session ${REST_CONTEXT}/node/openflow:2
53 Should Be Equal As Strings ${resp.status_code} 200
54 Should Contain ${resp.content} openflow:2:1
55 Should Contain ${resp.content} openflow:2:2
56 Should Contain ${resp.content} openflow:2:3
57 Should Contain ${resp.content} addresses
58 Should Not Contain ${resp.content} ${IP_1}
59 Should Contain X Times ${resp.content} ${IP_2} 1
60 Should Not Contain ${resp.content} ${IP_3}
63 [Documentation] Get the address observations for node 3
64 ${resp} Get session ${REST_CONTEXT}/node/openflow:3
65 Should Be Equal As Strings ${resp.status_code} 200
66 Should Contain ${resp.content} openflow:3:1
67 Should Contain ${resp.content} openflow:3:2
68 Should Contain ${resp.content} addresses
69 Should Not Contain ${resp.content} ${IP_1}
70 Should Not Contain ${resp.content} ${IP_2}
71 Should Contain X Times ${resp.content} ${IP_3} 1