blob: a227651287fa96160474a8aac07a1a40c79b595f [file] [log] [blame]
pkaras2771fda2019-04-10 11:56:50 +02001*** Settings ***
2Documentation The main interface for interacting with Bus Controller.
pkaras2771fda2019-04-10 11:56:50 +02003Library RequestsLibrary
pkaras2771fda2019-04-10 11:56:50 +02004
5Resource global_properties.robot
6
7*** Variables ***
8${BC_HEALTH_CHECK_PATH} /webapi/dmaap
9${BC_HTTPS_ENDPOINT} https://${GLOBAL_INJECTED_BC_IP_ADDR}:${GLOBAL_BC_HTTPS_SERVER_PORT}
10
11
12*** Keywords ***
13Run BC Health Check With Basic Auth
14 [Documentation] Runs dmmap details check
15 ${resp}= Return dmaap details with basic auth ${BC_HEALTH_CHECK_PATH}
16 Should Be Equal As Strings ${resp.status_code} 200
17
18
19Return dmaap details with basic auth
20 [Documentation] Runs Bus Controler get details request with basic authentication
21 [Arguments] ${data_path}
22 ${auth}= Create List ${GLOBAL_BC_USERNAME} ${GLOBAL_BC_PASSWORD}
23 ${session}= Create Session bs ${BC_HTTPS_ENDPOINT} auth=${auth}
24 ${resp}= Get Request bs ${data_path}
25 Log Received response from bus controller ${resp.text}
26 [Return] ${resp}
27