updating test repository for Centinel 99/29299/2
authorShreshthaJoshi <shreshtha.joshi@tcs.com>
Thu, 5 Nov 2015 10:27:12 +0000 (15:57 +0530)
committerGerrit Code Review <gerrit@opendaylight.org>
Fri, 6 Nov 2015 13:41:22 +0000 (13:41 +0000)
Change-Id: I1b756f5933573ce6b77a4d832356628e93de4b90
Signed-off-by: ShreshthaJoshi <shreshtha.joshi@tcs.com>
csit/suites/centinel/basic/010_Restconf_OK.robot [new file with mode: 0644]
csit/testplans/centinel-basic.txt [new file with mode: 0644]

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