Fixing mininet reads so that we always clear mininet
[integration/test.git] / test / csit / suites / base-of13 / 010__MD_SAL_NSF / 010__restconf_inventory.txt
1 *** Settings ***
2 Documentation     Test suite for RESTCONF inventory
3 Suite Setup       Create Session   session   http://${CONTROLLER}:${RESTCONFPORT}   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/operational/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 1
23     [Documentation]    Get the inventory for a node
24         ${resp}    Get    session    ${REST_CONTEXT}/node/openflow:1
25         Should Be Equal As Strings   ${resp.status_code}    200
26         Should Contain     ${resp.content}      openflow:1:1
27         Should Contain     ${resp.content}      openflow:1:2
28
29 Get nodeconnector for a node 2
30     [Documentation]    Get the inventory for a node
31         ${resp}    Get    session    ${REST_CONTEXT}/node/openflow:2
32         Should Be Equal As Strings   ${resp.status_code}    200
33         Should Contain     ${resp.content}      openflow:2:1
34         Should Contain     ${resp.content}      openflow:2:2
35         Should Contain     ${resp.content}      openflow:2:3
36
37 Get nodeconnector for a node 3
38     [Documentation]    Get the inventory for a node
39         ${resp}    Get    session    ${REST_CONTEXT}/node/openflow:3
40         Should Be Equal As Strings   ${resp.status_code}    200
41         Should Contain     ${resp.content}      openflow:3:1
42         Should Contain     ${resp.content}      openflow:3:2
43         Should Contain     ${resp.content}      openflow:3:3
44
45         
46