Update Robot Framework format - step 16
[integration/test.git] / csit / suites / usc / tcp / 100__basic.robot
1 *** Settings ***
2 Documentation       Test suite for quicking testing if the environme setup is correct
3
4 Library             Collections
5 Library             OperatingSystem
6 Library             RequestsLibrary
7 Library             json
8 Variables           ../../../variables/Variables.py
9 Resource            ../../../libraries/UscUtils.robot
10
11 Suite Setup         Create Session    session    http://${ODL_SYSTEM_IP}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS}
12 Suite Teardown      Delete All Sessions
13
14 Default Tags        tcp_basic
15
16
17 *** Test Cases ***
18 View Channel
19     ${topo}    Create Dictionary    topology-id=usc
20     ${input}    Create Dictionary    input=${topo}
21     ${data}    json.dumps    ${input}
22     ${resp}    Post Request    session    ${REST_VIEW_CHANNEL}    data=${data}
23     Log    ${resp.content}
24     Should Be Equal As Strings    ${resp.status_code}    200
25     Should Contain    ${resp.content}    "topology"