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/datastore/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
23 [Documentation] Get the inventory for a node
24 ${resp} Get session ${REST_CONTEXT}/node/openflow:2
25 Should Be Equal As Strings ${resp.status_code} 200
26 Should Contain ${resp.content} openflow:2:1
27 Should Contain ${resp.content} openflow:2:2
28 Should Contain ${resp.content} openflow:2:3