blob: b544822e02167cff1b715550d9e03ce609bfc9aa [file] [log] [blame]
Chris Donley4ab8eae2018-04-18 13:50:07 -07001*** Settings ***
2Documentation The main interface for interacting with VNFSDK.
3Library RequestsClientCert
4Library RequestsLibrary
5
6Resource 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 ***
13Run 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
18Run 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