adding first system test, based on restconf test 12/31512/1
authorCurt Beckmann <beckmann@brocade.com>
Thu, 17 Dec 2015 14:23:26 +0000 (15:23 +0100)
committerCurt Beckmann <beckmann@brocade.com>
Thu, 17 Dec 2015 14:44:07 +0000 (15:44 +0100)
Change-Id: Iab056868f6efaaeb57df4ea117852f1a88b44b34
Signed-off-by: Curt Beckmann <beckmann@brocade.com>
csit/suites/ttp/basic/010_Restconf_OK.robot [new file with mode: 0644]
csit/testplans/ttp-parser.txt [new file with mode: 0644]

diff --git a/csit/suites/ttp/basic/010_Restconf_OK.robot b/csit/suites/ttp/basic/010_Restconf_OK.robot
new file mode 100644 (file)
index 0000000..4d19667
--- /dev/null
@@ -0,0 +1,18 @@
+*** 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/ttp-parser.txt b/csit/testplans/ttp-parser.txt
new file mode 100644 (file)
index 0000000..f07e90e
--- /dev/null
@@ -0,0 +1,3 @@
+# Place the suites in run order:
+integration/test/csit/suites/ttp/basic
+