blob: 0d0b917189f8918457f7f117f41a94badd8412b3 [file] [log] [blame]
Andreas Geissler25f87702023-03-01 09:18:13 +01001*** Settings ***
2Documentation The main interface for interacting with Modeling
3Library RequestsLibrary
4Library Collections
5
6Resource 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 ***
14Run 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
19Run 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}