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