From db1e9c5ec96b262b3b1e721897b6d83f80aaf1ab Mon Sep 17 00:00:00 2001 From: Aaron Hay Date: Thu, 24 Aug 2017 15:06:59 +0000 Subject: Added bundle_query.sh and health_check.sh files. Updated the test1.robot file to include the two tests cases related to the new shell scripts. Change-Id: Idca535d7b557bbb2e02006efab9867f60fd80d98 Issue-Id: APPC-115 Signed-off-by: Aaron Hay --- test/csit/tests/appc/healthcheck/test1.robot | 29 +++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) (limited to 'test/csit/tests/appc/healthcheck/test1.robot') diff --git a/test/csit/tests/appc/healthcheck/test1.robot b/test/csit/tests/appc/healthcheck/test1.robot index e43c80761..05eee5b84 100644 --- a/test/csit/tests/appc/healthcheck/test1.robot +++ b/test/csit/tests/appc/healthcheck/test1.robot @@ -1,15 +1,22 @@ *** Settings *** -Library Collections -Library RequestsLibrary -Library OperatingSystem -Library json -Library HttpLibrary.HTTP -Library Selenium2Library -Library XvfbRobot +Library OperatingSystem +Library Process + +*** Variables *** + +${bundle_query} ${SCRIPTS}/bundle_query.sh +${health_check} ${SCRIPTS}/health_check.sh *** Test Cases *** -Get Requests health check ok - CreateSession appc http://localhost:8282 - ${resp}= Get Request appc /restconf/operations/SLI-API:healthcheck - Should Be Equal As Strings ${resp.status_code} 200 +Health check test case for APPC + [Documentation] Health check + ${result_hc}= Run Process bash ${health_check} > log_hc.txt shell=yes + Should Be Equal As Integers ${result_hc.rc} 0 + +Query bundle test case for APPC + [Documentation] Query bundles + ${result_bq}= Run Process bash ${bundle_query} > log_bq.txt shell=yes + Should Be Equal As Integers ${result_bq.rc} 0 + + -- cgit 1.2.3-korg