From f6e113f21cae058c2981eaf67bdc2c27edb1c7e8 Mon Sep 17 00:00:00 2001 From: Joseph Stewart Date: Wed, 15 Apr 2015 06:44:11 -0400 Subject: [PATCH] Add basic RESTconf test to repo Signed-off-by: Joseph Stewart --- .../suites/iotdm/basic/010_Restconf_OK.txt | 20 +++++++++++++++++++ test/csit/testplans/iotdm-basic.txt | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 test/csit/suites/iotdm/basic/010_Restconf_OK.txt create mode 100644 test/csit/testplans/iotdm-basic.txt 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 -- 2.36.6