Adding first system test for FaaS 08/44808/2
authorxingjun <xingjun.chu@huawei.com>
Mon, 29 Aug 2016 20:34:47 +0000 (16:34 -0400)
committerJamo Luhrsen <jluhrsen@redhat.com>
Wed, 14 Sep 2016 18:09:52 +0000 (18:09 +0000)
Change-Id: I931a4fc3a3005af7bef61cb445a6b2ca27ce60d5
Signed-off-by: xingjun <xingjun.chu@huawei.com>
csit/suites/faas/singlefabric/singlefabric.robot [new file with mode: 0644]
csit/testplans/faas-singlefabric.txt [new file with mode: 0644]

diff --git a/csit/suites/faas/singlefabric/singlefabric.robot b/csit/suites/faas/singlefabric/singlefabric.robot
new file mode 100644 (file)
index 0000000..88c9b22
--- /dev/null
@@ -0,0 +1,14 @@
+*** Settings ***
+Documentation     Test suite to verify Restconf is OK.
+Suite Setup       RequestsLibrary.Create_Session    session    http://${ODL_SYSTEM_IP}:${RESTCONFPORT}    auth=${AUTH}    headers=${HEADERS_XML}
+Suite Teardown    RequestsLibrary.Delete_All_Sessions
+Library           RequestsLibrary
+Variables         ${CURDIR}/../../../variables/Variables.py
+
+*** Test Cases ***
+Get Controller Modules
+    [Documentation]    Get the restconf modules, check 200 status and ietf-restconf presence.
+    ${resp} =    RequestsLibrary.Get_Request    session    ${MODULES_API}
+    BuiltIn.Log    ${resp.content}
+    BuiltIn.Should_Be_Equal    ${resp.status_code}    ${200}
+    BuiltIn.Should_Contain    ${resp.content}    ietf-restconf
diff --git a/csit/testplans/faas-singlefabric.txt b/csit/testplans/faas-singlefabric.txt
new file mode 100644 (file)
index 0000000..4843ac2
--- /dev/null
@@ -0,0 +1,2 @@
+# Place the suites in run order:
+integration/test/csit/suites/faas/singlefabric/