Add basic test suite for eman 93/42793/2
authorA H <an.ho@huawei.com>
Fri, 29 Jul 2016 16:07:29 +0000 (09:07 -0700)
committerLuis Gomez <ecelgp@gmail.com>
Mon, 1 Aug 2016 20:43:50 +0000 (20:43 +0000)
Change-Id: If48b3cc39642efc3c3bc1ed414feec6d6bfbe201
Signed-off-by: A H <an.ho@huawei.com>
csit/suites/eman/model/EMAN_MODEL.robot [new file with mode: 0644]
csit/testplans/eman-model.txt [new file with mode: 0644]

diff --git a/csit/suites/eman/model/EMAN_MODEL.robot b/csit/suites/eman/model/EMAN_MODEL.robot
new file mode 100644 (file)
index 0000000..82aa07f
--- /dev/null
@@ -0,0 +1,18 @@
+*** Settings ***
+Documentation     Test suite for eman model functionality
+Suite Setup       Create Session    session    http://${ODL_SYSTEM_IP}:${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
+
+*** Variables ***
+
+*** 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/eman-model.txt b/csit/testplans/eman-model.txt
new file mode 100644 (file)
index 0000000..312bd87
--- /dev/null
@@ -0,0 +1,2 @@
+# Place the suites in run order:
+integration/test/csit/suites/eman/model