pkaras | 2771fda | 2019-04-10 11:56:50 +0200 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation The main interface for interacting with Bus Controller. |
| 3 | Library RequestsClientCert |
| 4 | Library RequestsLibrary |
| 5 | Library UUID |
| 6 | |
| 7 | Resource 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 *** |
| 15 | Run 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 | |
| 21 | Return 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 | |