aboutsummaryrefslogtreecommitdiffstats
path: root/robot
diff options
context:
space:
mode:
authorAndreas Geissler <andreas-geissler@telekom.de>2023-03-01 09:18:13 +0100
committerAndreas Geissler <andreas-geissler@telekom.de>2023-03-01 09:39:20 +0100
commit25f8770b4c70f374ae4a79192d41116932897992 (patch)
tree10876bf45f4fdd49c290eee4dddb7a9fdf72f1a6 /robot
parent82f3caabe7d5907454a5bc08dbb92971e096fe92 (diff)
[HEALTHCHECK] Disable MSB call in Modeling test
Use component interfaces instead of MSB Issue-ID: TEST-392 Signed-off-by: Andreas Geissler <andreas-geissler@telekom.de> Change-Id: I8138919ace3148101a6b37f26708e3a91c765c3c
Diffstat (limited to 'robot')
-rw-r--r--robot/resources/modeling_interface.robot26
-rw-r--r--robot/testsuites/health-check.robot5
2 files changed, 29 insertions, 2 deletions
diff --git a/robot/resources/modeling_interface.robot b/robot/resources/modeling_interface.robot
new file mode 100644
index 00000000..0d0b9171
--- /dev/null
+++ b/robot/resources/modeling_interface.robot
@@ -0,0 +1,26 @@
+*** Settings ***
+Documentation The main interface for interacting with Modeling
+Library RequestsLibrary
+Library Collections
+
+Resource global_properties.robot
+
+*** Variables ***
+${MODEL_PARSER_HEALTH_CHECK_PATH} /api/parser/v1/health_check
+${MODEL_PARSER_ENDPOINT} ${GLOBAL_MODEL_PARSER_SERVER_PROTOCOL}://${GLOBAL_INJECTED_MODEL_PARSER_IP_ADDR}:${GLOBAL_MODEL_PARSER_SERVER_PORT}
+
+
+*** Keywords ***
+Run Modeling Parser Health Check
+ [Documentation] Runs Modeling Parser Health check
+ ${resp}= Run Modeling Get Request ${MODEL_PARSER_HEALTH_CHECK_PATH}
+ Should Be Equal As Integers ${resp.status_code} 200
+
+Run Modeling Get Request
+ [Documentation] Runs Modeling Get request
+ [Arguments] ${data_path}
+ ${session}= Create Session session ${MODEL_PARSER_ENDPOINT}
+ ${resp}= Get Request session ${data_path}
+ Should Be Equal As Integers ${resp.status_code} 200
+ Log Received response from Modeling ${resp.text}
+ [Return] ${resp}
diff --git a/robot/testsuites/health-check.robot b/robot/testsuites/health-check.robot
index d9ccd358..353cb6e4 100644
--- a/robot/testsuites/health-check.robot
+++ b/robot/testsuites/health-check.robot
@@ -31,6 +31,7 @@ Resource ../resources/mariadb_galera_interface.robot
Resource ../resources/multicloud_interface.robot
Resource ../resources/uui_interface.robot
Resource ../resources/vfc_interface.robot
+Resource ../resources/modeling_interface.robot
Suite Teardown Close All Browsers
@@ -322,9 +323,9 @@ Basic Holmes Engine Management API Health Check
[Tags] health-holmes health
Run Holmes Engine Mgmt Healthcheck
-Basic Modeling genericparser API Health Check
+Basic Modeling Parser API Health Check
[Tags] health api health-modeling
- Run MSB Get Request /api/parser/v1/health_check
+ Run Modeling Parser Healthcheck
Enhanced CDS Health Check
[Tags] health small health-cds