[ROBOT] Adopt HVVES test case in order to work with strimzi kafka
[testsuite.git] / robot / resources / msb_interface.robot
1 *** Settings ***
2 Documentation     The main interface for interacting with Microservice Bus.
3 Library           RequestsLibrary
4
5 Resource          global_properties.robot
6
7 *** Variables ***
8 ${MSB_HEALTH_CHECK_PATH}        /iui/microservices/default.html
9 ${MSB_ENDPOINT}     ${GLOBAL_MSB_SERVER_PROTOCOL}://${GLOBAL_INJECTED_MSB_IP_ADDR}:${GLOBAL_MSB_SERVER_PORT}
10
11
12 *** Keywords ***
13 Run MSB Health Check
14      [Documentation]    Runs MSB Health check
15      ${resp}=    Run MSB Get Request    ${MSB_HEALTH_CHECK_PATH}
16      Should Be Equal As Integers        ${resp.status_code}     200
17
18 Run MSB Get Request
19      [Documentation]    Runs MSB Get request
20      [Arguments]    ${data_path}
21      ${session}=    Create Session      msb     ${MSB_ENDPOINT}
22      ${resp}=   Get Request     msb     ${data_path}
23      Should Be Equal As Integers        ${resp.status_code}     200
24      Log    Received response from MSB ${resp.text}
25      [Return]    ${resp}