Andreas Geissler | 25f8770 | 2023-03-01 09:18:13 +0100 | [diff] [blame^] | 1 | *** Settings *** |
| 2 | Documentation The main interface for interacting with Modeling |
| 3 | Library RequestsLibrary |
| 4 | Library Collections |
| 5 | |
| 6 | Resource global_properties.robot |
| 7 | |
| 8 | *** Variables *** |
| 9 | ${MODEL_PARSER_HEALTH_CHECK_PATH} /api/parser/v1/health_check |
| 10 | ${MODEL_PARSER_ENDPOINT} ${GLOBAL_MODEL_PARSER_SERVER_PROTOCOL}://${GLOBAL_INJECTED_MODEL_PARSER_IP_ADDR}:${GLOBAL_MODEL_PARSER_SERVER_PORT} |
| 11 | |
| 12 | |
| 13 | *** Keywords *** |
| 14 | Run Modeling Parser Health Check |
| 15 | [Documentation] Runs Modeling Parser Health check |
| 16 | ${resp}= Run Modeling Get Request ${MODEL_PARSER_HEALTH_CHECK_PATH} |
| 17 | Should Be Equal As Integers ${resp.status_code} 200 |
| 18 | |
| 19 | Run Modeling Get Request |
| 20 | [Documentation] Runs Modeling Get request |
| 21 | [Arguments] ${data_path} |
| 22 | ${session}= Create Session session ${MODEL_PARSER_ENDPOINT} |
| 23 | ${resp}= Get Request session ${data_path} |
| 24 | Should Be Equal As Integers ${resp.status_code} 200 |
| 25 | Log Received response from Modeling ${resp.text} |
| 26 | [Return] ${resp} |