Adding Natapp System-Test into Integration 97/39597/2
authorThomas Lee S <thomaslee.s@tcs.com>
Mon, 30 May 2016 11:13:54 +0000 (16:43 +0530)
committerLuis Gomez <ecelgp@gmail.com>
Wed, 15 Jun 2016 01:49:39 +0000 (01:49 +0000)
Change-Id: I79cbd113a5062ab7d7f5aad0d0309ba872e629f1
Signed-off-by: Thomas Lee S <thomaslee.s@tcs.com>
csit/suites/natapp/basic/restconf_modules.robot [new file with mode: 0644]
csit/testplans/natapp-basic-txt [new file with mode: 0644]

diff --git a/csit/suites/natapp/basic/restconf_modules.robot b/csit/suites/natapp/basic/restconf_modules.robot
new file mode 100644 (file)
index 0000000..88c9b22
--- /dev/null
@@ -0,0 +1,14 @@
+*** Settings ***
+Documentation     Test suite to verify Restconf is OK.
+Suite Setup       RequestsLibrary.Create_Session    session    http://${ODL_SYSTEM_IP}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS_XML}
+Suite Teardown    RequestsLibrary.Delete_All_Sessions
+Library           RequestsLibrary
+Variables         ${CURDIR}/../../../variables/Variables.py
+
+*** Test Cases ***
+Get Controller Modules
+    [Documentation]    Get the restconf modules, check 200 status and ietf-restconf presence.
+    ${resp} =    RequestsLibrary.Get_Request    session    ${MODULES_API}
+    BuiltIn.Log    ${resp.content}
+    BuiltIn.Should_Be_Equal    ${resp.status_code}    ${200}
+    BuiltIn.Should_Contain    ${resp.content}    ietf-restconf
diff --git a/csit/testplans/natapp-basic-txt b/csit/testplans/natapp-basic-txt
new file mode 100644 (file)
index 0000000..0e71e5c
--- /dev/null
@@ -0,0 +1,2 @@
+# Place the suites in run order:
+integration/test/csit/suites/natapp/basic