d9ffd64fe043de392d4670df752bcadde5da9c1e
[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://${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 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}    data={"input": {"ip-address": "${DEVICE_IP}","oid" : "1.3.6.1.2.1.1.1.0","get-type" : "GET-BULK","community" : "private" } }
21     Should Be Equal As Strings    ${resp.status_code}    200