From 2d9cd17ea6b89e4fdf5e3b56b8409eb9b5c0c527 Mon Sep 17 00:00:00 2001 From: Curt Beckmann Date: Thu, 17 Dec 2015 15:23:26 +0100 Subject: [PATCH] adding first system test, based on restconf test Change-Id: Iab056868f6efaaeb57df4ea117852f1a88b44b34 Signed-off-by: Curt Beckmann --- csit/suites/ttp/basic/010_Restconf_OK.robot | 18 ++++++++++++++++++ csit/testplans/ttp-parser.txt | 3 +++ 2 files changed, 21 insertions(+) create mode 100644 csit/suites/ttp/basic/010_Restconf_OK.robot create mode 100644 csit/testplans/ttp-parser.txt diff --git a/csit/suites/ttp/basic/010_Restconf_OK.robot b/csit/suites/ttp/basic/010_Restconf_OK.robot new file mode 100644 index 0000000000..4d19667e2d --- /dev/null +++ b/csit/suites/ttp/basic/010_Restconf_OK.robot @@ -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 diff --git a/csit/testplans/ttp-parser.txt b/csit/testplans/ttp-parser.txt new file mode 100644 index 0000000000..f07e90e035 --- /dev/null +++ b/csit/testplans/ttp-parser.txt @@ -0,0 +1,3 @@ +# Place the suites in run order: +integration/test/csit/suites/ttp/basic + -- 2.36.6