Add basic test suite for lispflowmapping
authorLorand Jakab <lojakab@cisco.com>
Wed, 4 Mar 2015 13:49:08 +0000 (15:49 +0200)
committerLorand Jakab <lojakab@cisco.com>
Wed, 4 Mar 2015 13:49:08 +0000 (15:49 +0200)
Change-Id: Ib499b9e166ce0d4e5ac1ba51f1de7e78ff71306d
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
test/csit/suites/lispflowmapping/basic/010_Restconf_OK.txt [new file with mode: 0644]
test/csit/testplans/lispflowmapping-basic.txt [new file with mode: 0644]

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