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