Created RESTCONF for base edition with of13 plugin
[integration/test.git] / test / csit / suites / base-of13 / 105__restconf_inventory.txt
1 *** Settings ***
2 Documentation     Test suite for RESTCONF inventory
3 Suite Setup       Create Session   session   http://${CONTROLLER}:8080   auth=${AUTH}   headers=${HEADERS_XML}
4 Suite Teardown    Delete All Sessions
5 Library           Collections
6 Library           ../../libraries/RequestsLibrary.py
7 Library           ../../libraries/Common.py
8 Variables         ../../variables/Variables.py
9
10 *** Variables ***
11 ${REST_CONTEXT}    /restconf/datastore/opendaylight-inventory:nodes
12
13 *** Test Cases *** 
14 Get list of nodes
15     [Documentation]    Get the inventory
16         ${resp}    Get    session    ${REST_CONTEXT}
17         Should Be Equal As Strings    ${resp.status_code}    200
18         Should Contain     ${resp.content}      openflow:1
19         Should Contain     ${resp.content}      openflow:2
20         Should Contain     ${resp.content}      openflow:3
21         
22 Get nodeconnector for a node
23     [Documentation]    Get the inventory for a node
24         ${resp}    Get    session    ${REST_CONTEXT}/node/openflow:2
25         Should Be Equal As Strings   ${resp.status_code}    200
26         Should Contain     ${resp.content}      openflow:2:1
27         Should Contain     ${resp.content}      openflow:2:2
28         Should Contain     ${resp.content}      openflow:2:3
29
30         
31