Add basic test suite for usc
authorA H <an.ho@huawei.com>
Wed, 18 Mar 2015 01:14:02 +0000 (18:14 -0700)
committerLuis Gomez <ecelgp@gmail.com>
Wed, 18 Mar 2015 04:13:17 +0000 (04:13 +0000)
Change-Id: I74b0a6062a4247bfa22c5201f5f7db57215bd336
Signed-off-by: A H <an.ho@huawei.com>
test/csit/suites/usc/channel/USC_CHANNEL.txt [new file with mode: 0644]
test/csit/testplans/usc-channel.txt [new file with mode: 0644]

diff --git a/test/csit/suites/usc/channel/USC_CHANNEL.txt b/test/csit/suites/usc/channel/USC_CHANNEL.txt
new file mode 100644 (file)
index 0000000..5112eb9
--- /dev/null
@@ -0,0 +1,20 @@
+*** Settings ***
+Documentation     Test suite for usc channel functionality
+Suite Setup       Create Session    session    http://${CONTROLLER}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS_XML}
+Suite Teardown    Delete All Sessions
+Library           ../../../libraries/RequestsLibrary.py
+Library           ../../../libraries/Common.py
+Variables         ../../../variables/Variables.py
+Resource          ../../../libraries/Utils.txt
+
+*** 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/test/csit/testplans/usc-channel.txt b/test/csit/testplans/usc-channel.txt
new file mode 100644 (file)
index 0000000..ccc3d5f
--- /dev/null
@@ -0,0 +1,2 @@
+# Place the suites in run order:
+integration/test/csit/suites/usc/channel