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