Step 1: Move vm scripts to the right place
[integration/test.git] / csit / suites / snmp / snmp-get / 010__snmp_get.robot
1 *** Settings ***
2 Documentation     Test suite for SNMP
3 Suite Setup       Create Session   session   http://${CONTROLLER}:${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 Variables         ../../../variables/Variables.py
11
12 *** Variables ***
13 ${REST_CONTEXT_SNMP_SET}    /restconf/operations/snmp:snmp-get
14 ${DEVICE_IP}                10.86.3.13
15
16 *** Test Cases ***
17 List connections
18     [Documentation]    SNMP get
19     [Tags]    SNMP get
20     ${resp}    Post    session    ${REST_CONTEXT_SNMP_SET}
21     ...   data={"input": {"ip-address": "${DEVICE_IP}","oid" : "1.3.6.1.2.1.1.1.0","get-type" : "GET-BULK","community" : "private" } }
22     Should Be Equal As Strings   ${resp.status_code}   200