From: Luis Gomez Date: Fri, 17 Apr 2015 00:03:35 +0000 (+0000) Subject: Merge "Add basic RESTconf test to repo" X-Git-Tag: release/lithium~148 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=4da2f0ab7c6427c3c60f9c53dc8dc78d2c55c5a4;hp=5ba83224e965712e8bf18496165a8d400b56d94a;p=integration%2Ftest.git Merge "Add basic RESTconf test to repo" --- diff --git a/test/csit/suites/iotdm/basic/010_Restconf_OK.txt b/test/csit/suites/iotdm/basic/010_Restconf_OK.txt new file mode 100644 index 0000000000..743c76b8bc --- /dev/null +++ b/test/csit/suites/iotdm/basic/010_Restconf_OK.txt @@ -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/iotdm-basic.txt b/test/csit/testplans/iotdm-basic.txt new file mode 100644 index 0000000000..b7470fb9fb --- /dev/null +++ b/test/csit/testplans/iotdm-basic.txt @@ -0,0 +1,2 @@ +# Place the suites in run order: +integration/test/csit/suites/iotdm/basic