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