basic test for topoprocessing project 10/26910/3
authorMatej Perina <matej.perina@pantheon.sk>
Mon, 14 Sep 2015 13:12:51 +0000 (15:12 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 21 Sep 2015 22:05:09 +0000 (22:05 +0000)
Change-Id: I0e97f28e3f3fe28cde62fb151e646948205ba832
Signed-off-by: Matej Perina <matej.perina@pantheon.sk>
csit/suites/topoprocessing/basic/010_Restconf_OK.robot [new file with mode: 0644]
csit/testplans/topoprocessing-basic.txt [new file with mode: 0644]

diff --git a/csit/suites/topoprocessing/basic/010_Restconf_OK.robot b/csit/suites/topoprocessing/basic/010_Restconf_OK.robot
new file mode 100644 (file)
index 0000000..48cd649
--- /dev/null
@@ -0,0 +1,19 @@
+*** 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           RequestsLibrary
+Variables         ../../../variables/Variables.py
+Resource          ../../../libraries/Utils.robot
+
+*** 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
+
diff --git a/csit/testplans/topoprocessing-basic.txt b/csit/testplans/topoprocessing-basic.txt
new file mode 100644 (file)
index 0000000..d855757
--- /dev/null
@@ -0,0 +1,2 @@
+# Place the suites in run order:
+integration/test/csit/suites/topoprocessing/basic
\ No newline at end of file