Add scalability test for OCPPLUGIN
[integration/test.git] / csit / suites / ocpplugin / basic / 010__ocp_get.robot
1 *** Settings ***
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
5 Library           SSHLibrary
6 Library           Collections
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
14
15 *** Variables ***
16
17 *** Test Cases ***
18 Check if node exist
19     [Documentation]    get inventory node
20     [Tags]    get 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
25
26 Get param from emulator
27     [Documentation]    OCPPLUGIN get param
28     [Tags]    OCPPLUGIN get
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}