Resource ../../../libraries/Utils.robot
Resource ../../../libraries/OcpAgentKeywords.robot
Variables ../../../variables/Variables.py
+Variables ../../../variables/ocpplugin/Variables.py
*** Variables ***
-${NODE_ID} /restconf/operational/opendaylight-inventory:nodes/node/ocp:
-${REST_GET_PARAM} /restconf/operations/ocp-service:get-param-nb
+
*** Test Cases ***
Check if node exist
[Documentation] get inventory node
[Tags] get node
OcpAgentKeywords.Install Agent
${mininet_conn_id}= OcpAgentKeywords.Start Emulator Single
- ${resp} Get Request session ${NODE_ID}TST-100
+ ${resp} Get Request session ${NODE_ID}TST-100
Should Be Equal As Strings ${resp.status_code} 200
Get param from emulator
- [Documentation] OCPPLUGIN get param
+ [Documentation] OCPPLUGIN get param
[Tags] OCPPLUGIN get
- ${resp} Post Request session ${REST_GET_PARAM} data={"input":{"nodeId":"ocp:TST-100","obj":[{"id":"ALL","param":[{"name":"ALL"}]}]}}
+ ${resp} Post Request session ${REST_GET_PARAM} data={"input":{"nodeId":"ocp:TST-100","objId":"ALL","paramName":"ALL"}}
Should Be Equal As Strings ${resp.status_code} 200
Stop Emulator And Exit ${mininet_conn_id}