Chris Donley | 4ab8eae | 2018-04-18 13:50:07 -0700 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation The main interface for interacting with VNFSDK. |
| 3 | Library RequestsClientCert |
| 4 | Library RequestsLibrary |
| 5 | |
| 6 | Resource global_properties.robot |
| 7 | |
| 8 | *** Variables *** |
| 9 | ${VNFSDK_HEALTH_CHECK_PATH} /onapapi/vnfsdk-marketplace/v1/PackageResource/healthcheck |
| 10 | ${VNFSDK_ENDPOINT} ${GLOBAL_VNFSDK_SERVER_PROTOCOL}://${GLOBAL_INJECTED_VNFSDK_IP_ADDR}:${GLOBAL_VNFSDK_SERVER_PORT} |
| 11 | |
| 12 | *** Keywords *** |
| 13 | Run VNFSDK Health Check |
| 14 | [Documentation] Runs VNFSDK Health check |
| 15 | ${resp}= Run VNFSDK Get Request ${VNFSDK_HEALTH_CHECK_PATH} |
| 16 | Should Be Equal As Strings ${resp.status_code} 200 |
| 17 | |
| 18 | Run VNFSDK Get Request |
| 19 | [Documentation] Runs VNFSDK Get request |
| 20 | [Arguments] ${data_path} |
| 21 | ${session}= Create Session vnfsdk ${VNFSDK_ENDPOINT} |
| 22 | ${resp}= Get Request vnfsdk ${data_path} |
| 23 | Log Received response from VNFSDK ${resp.text} |
| 24 | [Return] ${resp} |
| 25 | |