aboutsummaryrefslogtreecommitdiffstats
path: root/robot/resources/uui_interface.robot
blob: 0b0e15e94c8299ebfe317afd6c209f196ccf97ba (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 Usecase UI
Library           RequestsLibrary
Library            Collections

Resource          global_properties.robot

*** Variables ***
${UUI_HEALTH_CHECK_PATH}        /api/usecaseui-server/v1/
${UUI_ENDPOINT}     ${GLOBAL_UUI_SERVER_PROTOCOL}://${GLOBAL_INJECTED_UUI_IP_ADDR}:${GLOBAL_UUI_SERVER_PORT}


*** Keywords ***
Run UUI Health Check
     [Documentation]    Runs UUI Health check
     ${resp}=    Run UUI Get Request    ${UUI_HEALTH_CHECK_PATH}
     Should Be Equal As Integers   ${resp.status_code}   200

Run UUI Get Request
     [Documentation]    Runs UUI Get request
     [Arguments]    ${data_path}
     ${session}=    Create Session   session   ${UUI_ENDPOINT}
     ${resp}=   Get Request   session   ${data_path}
     Should Be Equal As Integers   ${resp.status_code}   200
     Log    Received response from UUI ${resp.text}
     [Return]    ${resp}