2 Documentation Test suite for RESTCONF inventory
3 Suite Setup Create Session session http://${CONTROLLER}:8080 auth=${AUTH} headers=${HEADERS_XML}
4 Suite Teardown Delete All Sessions
6 Library ../../../libraries/RequestsLibrary.py
7 Library ../../../libraries/Common.py
8 Variables ../../../variables/Variables.py
11 ${REST_CONTEXT} /restconf/operational/opendaylight-inventory:nodes
15 [Documentation] Get the inventory
16 ${resp} Get session ${REST_CONTEXT}
17 Should Be Equal As Strings ${resp.status_code} 200
18 Should Contain ${resp.content} openflow:1
19 Should Contain ${resp.content} openflow:2
20 Should Contain ${resp.content} openflow:3
22 Get nodeconnector for a node 1
23 [Documentation] Get the inventory for a node
24 ${resp} Get session ${REST_CONTEXT}/node/openflow:1
25 Should Be Equal As Strings ${resp.status_code} 200
26 Should Contain ${resp.content} openflow:1:1
27 Should Contain ${resp.content} openflow:1:2
29 Get nodeconnector for a node 2
30 [Documentation] Get the inventory for a node
31 ${resp} Get session ${REST_CONTEXT}/node/openflow:2
32 Should Be Equal As Strings ${resp.status_code} 200
33 Should Contain ${resp.content} openflow:2:1
34 Should Contain ${resp.content} openflow:2:2
35 Should Contain ${resp.content} openflow:2:3
37 Get nodeconnector for a node 3
38 [Documentation] Get the inventory for a node
39 ${resp} Get session ${REST_CONTEXT}/node/openflow:3
40 Should Be Equal As Strings ${resp.status_code} 200
41 Should Contain ${resp.content} openflow:3:1
42 Should Contain ${resp.content} openflow:3:2
43 Should Contain ${resp.content} openflow:3:3