refactor the data generation code
[integration/test.git] / csit / suites / sdninterfaceapp / basic / 010_Restconf_OK.robot
1 *** Settings ***
2 Documentation     Test suite to verify Restconf is OK
3 Suite Setup       Create Session    session    http://${ODL_SYSTEM_IP}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS_XML}
4 Suite Teardown    Delete All Sessions
5 Library           RequestsLibrary
6 Variables         ../../../variables/Variables.py
7 Resource          ../../../libraries/Utils.robot
8
9 *** Variables ***
10
11 *** Test Cases ***
12 Get Controller Modules
13     [Documentation]    Get the controller modules via Restconf
14     ${resp}    RequestsLibrary.Get Request    session    ${MODULES_API}
15     Log    ${resp.content}
16     Should Be Equal As Strings    ${resp.status_code}    200
17     Should Contain    ${resp.content}    ietf-restconf