Update Robot Framework format - step 8
[integration/test.git] / csit / suites / integration / basic / restconf_modules.robot
1 *** Settings ***
2 Documentation       Test suite to verify Restconf is OK.
3
4 Library             RequestsLibrary
5 Resource            ${CURDIR}/../../../variables/Variables.robot
6
7 Suite Setup         RequestsLibrary.Create_Session    session    http://${ODL_SYSTEM_IP}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS_XML}
8 Suite Teardown      RequestsLibrary.Delete_All_Sessions
9
10
11 *** Test Cases ***
12 Get Controller Modules
13     [Documentation]    Get the restconf modules, check 200 status and ietf-restconf presence.
14     ${resp} =    RequestsLibrary.Get_Request    session    ${MODULES_API}
15     BuiltIn.Log    ${resp.content}
16     BuiltIn.Should_Be_Equal    ${resp.status_code}    ${200}
17     BuiltIn.Should_Contain    ${resp.text}    ietf-restconf