aboutsummaryrefslogtreecommitdiffstats
path: root/robot/resources/modeling_interface.robot
blob: 0d0b917189f8918457f7f117f41a94badd8412b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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}