Integration test suite for sdninterfaceapp 96/31496/1
authorjnana <jnana.penumetcha@tcs.com>
Thu, 17 Dec 2015 11:22:43 +0000 (16:52 +0530)
committerjnana <jnana.penumetcha@tcs.com>
Thu, 17 Dec 2015 11:22:43 +0000 (16:52 +0530)
Change-Id: I9f65f416b2298bf4181009da1a493376e5cbbbf4
Signed-off-by: jnana <jnana.penumetcha@tcs.com>
csit/suites/sdninterfaceapp/basic/010_Restconf_OK.robot [new file with mode: 0644]
csit/testplans/sdninterfaceapp-basic.txt [new file with mode: 0644]

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