Add the basic csit script for messaging4transport 32/30732/1
authorPradeeban Kathiravelu <kk.pradeeban@gmail.com>
Fri, 4 Dec 2015 17:25:55 +0000 (17:25 +0000)
committerPradeeban Kathiravelu <kk.pradeeban@gmail.com>
Fri, 4 Dec 2015 17:26:37 +0000 (17:26 +0000)
Further scripts specific to messaging4transport will be added soon.

Change-Id: I45c182a03eb002f66f4ac3147e80e662253f9699
Signed-off-by: Pradeeban Kathiravelu <kk.pradeeban@gmail.com>
csit/suites/messaging4transport/basic/010_Restconf_OK.robot [new file with mode: 0644]

diff --git a/csit/suites/messaging4transport/basic/010_Restconf_OK.robot b/csit/suites/messaging4transport/basic/010_Restconf_OK.robot
new file mode 100644 (file)
index 0000000..4d19667
--- /dev/null
@@ -0,0 +1,18 @@
+*** 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
+Variables         ../../../variables/Variables.py
+Resource          ../../../libraries/Utils.robot
+
+*** 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