Add basic test suite for lispflowmapping
[integration/test.git] / test / csit / suites / lispflowmapping / basic / 010_Restconf_OK.txt
diff --git a/test/csit/suites/lispflowmapping/basic/010_Restconf_OK.txt b/test/csit/suites/lispflowmapping/basic/010_Restconf_OK.txt
new file mode 100644 (file)
index 0000000..743c76b
--- /dev/null
@@ -0,0 +1,20 @@
+*** Settings ***
+Documentation     Test suite to verify Restconf is OK
+Suite Setup       Create Session    session    http://${CONTROLLER}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS_XML}
+Suite Teardown    Delete All Sessions
+Library           ../../../libraries/RequestsLibrary.py
+Library           ../../../libraries/Common.py
+Variables         ../../../variables/Variables.py
+Resource          ../../../libraries/Utils.txt
+
+*** Variables ***
+${REST_CONTEXT}    /restconf/modules
+
+*** Test Cases ***
+Get Controller Modules
+    [Documentation]    Get the controller modules via Restconf
+    ${resp}    RequestsLibrary.Get    session    ${REST_CONTEXT}
+    Log    ${resp.content}
+    Should Be Equal As Strings    ${resp.status_code}    200
+    Should Contain    ${resp.content}    ietf-restconf
+