diff options
-rw-r--r-- | robot/resources/vnfsdk_interface.robot | 25 | ||||
-rw-r--r-- | robot/testsuites/health-check.robot | 10 |
2 files changed, 30 insertions, 5 deletions
diff --git a/robot/resources/vnfsdk_interface.robot b/robot/resources/vnfsdk_interface.robot new file mode 100644 index 00000000..b544822e --- /dev/null +++ b/robot/resources/vnfsdk_interface.robot @@ -0,0 +1,25 @@ +*** Settings *** +Documentation The main interface for interacting with VNFSDK. +Library RequestsClientCert +Library RequestsLibrary + +Resource global_properties.robot + +*** Variables *** +${VNFSDK_HEALTH_CHECK_PATH} /onapapi/vnfsdk-marketplace/v1/PackageResource/healthcheck +${VNFSDK_ENDPOINT} ${GLOBAL_VNFSDK_SERVER_PROTOCOL}://${GLOBAL_INJECTED_VNFSDK_IP_ADDR}:${GLOBAL_VNFSDK_SERVER_PORT} + +*** Keywords *** +Run VNFSDK Health Check + [Documentation] Runs VNFSDK Health check + ${resp}= Run VNFSDK Get Request ${VNFSDK_HEALTH_CHECK_PATH} + Should Be Equal As Strings ${resp.status_code} 200 + +Run VNFSDK Get Request + [Documentation] Runs VNFSDK Get request + [Arguments] ${data_path} + ${session}= Create Session vnfsdk ${VNFSDK_ENDPOINT} + ${resp}= Get Request vnfsdk ${data_path} + Log Received response from VNFSDK ${resp.text} + [Return] ${resp} + diff --git a/robot/testsuites/health-check.robot b/robot/testsuites/health-check.robot index 3a433b3d..a3194d86 100644 --- a/robot/testsuites/health-check.robot +++ b/robot/testsuites/health-check.robot @@ -64,10 +64,6 @@ Basic Multicloud-vio API Health Check [Tags] health multicloud Run MSB Get Request /api/multicloud-vio/v0/swagger.json -Basic MUSIC Health Check - [Tags] health core - Run MUSIC Health Check - Basic Policy Health Check [Tags] health core Run Policy Health Check @@ -179,5 +175,9 @@ Basic NBI Health Check Run NBI Health Check Basic CLI Health Check - [Tags] health core + [Tags] health core Run CLI Health Check + +Basic VNFSDK Health Check + [Tags] health core + Run VNFSDK Health Check |