Move CSIT to integration/csit repo
[integration/csit.git] / tests / appc / healthcheck / test1.robot
diff --git a/tests/appc/healthcheck/test1.robot b/tests/appc/healthcheck/test1.robot
new file mode 100644 (file)
index 0000000..8bd4986
--- /dev/null
@@ -0,0 +1,27 @@
+*** Settings ***
+Library           OperatingSystem
+Library           Process
+
+*** Variables ***
+
+${bundle_query}    ${SCRIPTS}/bundle_query.sh
+${health_check}    ${SCRIPTS}/health_check.sh
+${db_query}    ${SCRIPTS}/db_query.sh
+
+
+*** Test Cases ***
+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
+
+Query database test case for APPC
+    [Documentation]   Query database
+    ${result_db}=    Run Process   bash ${db_query} > log_db.txt    shell=yes
+    Should Be Equal As Integers    ${result_db.rc}    0
+