Added testplan and basic test suite for unimgr 12/28412/6
authoradetalhouet <adetalhouet@inocybe.com>
Wed, 14 Oct 2015 20:35:12 +0000 (16:35 -0400)
committerGerrit Code Review <gerrit@opendaylight.org>
Wed, 14 Oct 2015 21:07:11 +0000 (21:07 +0000)
Change-Id: I816dae1b6df8aac36e0ce5cd0e5db98fdd107b3a
Signed-off-by: adetalhouet <adetalhouet@inocybe.com>
csit/suites/unimgr/basic/010_Restconf_OK.robot [new file with mode: 0644]
csit/testplans/unimgr.txt [new file with mode: 0644]
csit/variables/Variables.py

diff --git a/csit/suites/unimgr/basic/010_Restconf_OK.robot b/csit/suites/unimgr/basic/010_Restconf_OK.robot
new file mode 100644 (file)
index 0000000..7f9cede
--- /dev/null
@@ -0,0 +1,16 @@
+*** 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
+Library           ../../../libraries/Common.py
+Variables         ../../../variables/Variables.py
+Resource          ../../../libraries/Utils.robot
+
+*** Test Cases ***
+Get Controller Modules
+    [Documentation]    Get the controller modules via Restconf
+    ${resp}    RequestsLibrary.Get    session    ${MODULES_API}
+    Log    ${resp.content}
+    Should Be Equal As Strings    ${resp.status_code}    200
+    Should Contain    ${resp.content}    ietf-restconf
diff --git a/csit/testplans/unimgr.txt b/csit/testplans/unimgr.txt
new file mode 100644 (file)
index 0000000..46b12f2
--- /dev/null
@@ -0,0 +1,2 @@
+# Place the suites in run order:
+integration/test/csit/suites/unimgr/basic
\ No newline at end of file
index ed59efacb10391e62c0cbce71b9db5bc55c56735..a74a61d5e96650261ffbbd729855afe5592107c3 100644 (file)
@@ -108,6 +108,7 @@ CONTROLLER_CONFIG_MOUNT = ('/restconf/config/network-topology:'
                            'controller-config/yang-ext:mount')
 CONFIG_API = '/restconf/config'
 OPERATIONAL_API = '/restconf/operational'
+MODULES_API = '/restconf/modules'
 
 # TOKEN
 AUTH_TOKEN_API = '/oauth2/token'