2 Documentation Test suite for OCPPLUGIN
3 Suite Setup Create Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS}
4 Suite Teardown Delete All Sessions
7 Library RequestsLibrary
8 Library ../../../libraries/Common.py
9 Library ../../../libraries/Topology.py
10 Resource ../../../libraries/Utils.robot
11 Resource ../../../libraries/OcpAgentKeywords.robot
12 Variables ../../../variables/Variables.py
13 Variables ../../../variables/ocpplugin/Variables.py
19 [Documentation] get inventory node
21 OcpAgentKeywords.Install Agent
22 ${mininet_conn_id}= OcpAgentKeywords.Start Emulator Single
23 ${resp} Get Request session ${NODE_ID}TST-100
24 Should Be Equal As Strings ${resp.status_code} 200
26 Get param from emulator
27 [Documentation] OCPPLUGIN get param
29 ${resp} Post Request session ${REST_GET_PARAM} data={"input":{"nodeId":"ocp:TST-100","obj":[{"id":"ALL","param":[{"name":"ALL"}]}]}}
30 Should Be Equal As Strings ${resp.status_code} 200
31 Stop Emulator And Exit ${mininet_conn_id}