aboutsummaryrefslogtreecommitdiffstats
path: root/robot
diff options
context:
space:
mode:
Diffstat (limited to 'robot')
-rw-r--r--robot/resources/multicloud_interface.robot75
-rw-r--r--robot/resources/uui_interface.robot26
-rw-r--r--robot/resources/vfc_interface.robot68
-rw-r--r--robot/testsuites/health-check.robot45
4 files changed, 195 insertions, 19 deletions
diff --git a/robot/resources/multicloud_interface.robot b/robot/resources/multicloud_interface.robot
new file mode 100644
index 00000000..a810e64d
--- /dev/null
+++ b/robot/resources/multicloud_interface.robot
@@ -0,0 +1,75 @@
+*** Settings ***
+Documentation The main interface for interacting with MultiCloud
+Library RequestsLibrary
+Library Collections
+
+Resource global_properties.robot
+
+*** Variables ***
+${MC_HEALTH_CHECK_PATH} /api/multicloud/v0/swagger.json
+${MC_PIKE_HEALTH_CHECK_PATH} /api/multicloud-pike/v0/swagger.json
+${MC_PROMETHEUS_HEALTH_CHECK_PATH} /api/multicloud-pike/v0/swagger.json
+${MC_STARLINGX_HEALTH_CHECK_PATH} /api/multicloud-starlingx/v0/swagger.json
+${MC_TC_HEALTH_CHECK_PATH} /api/multicloud-titaniumcloud/v1/swagger.json
+${MC_VIO_HEALTH_CHECK_PATH} /api/multicloud-vio/v0/swagger.json
+${MC_K8S_HEALTH_CHECK_PATH} /v1/healthcheck
+${MC_FCAPS_HEALTH_CHECK_PATH} /api/multicloud-fcaps/v1/healthcheck
+
+${MC_ENDPOINT} ${GLOBAL_MC_SERVER_PROTOCOL}://${GLOBAL_INJECTED_MC_IP_ADDR}:${GLOBAL_MC_SERVER_PORT}
+${MC_PIKE_ENDPOINT} ${GLOBAL_MC_PIKE_SERVER_PROTOCOL}://${GLOBAL_INJECTED_MC_PIKE_IP_ADDR}:${GLOBAL_MC_PIKE_SERVER_PORT}
+${MC_PROMETHEUS_ENDPOINT} ${GLOBAL_MC_PROMETHEUS_SERVER_PROTOCOL}://${GLOBAL_INJECTED_MC_PROMETHEUS_IP_ADDR}:${GLOBAL_MC_PROMETHEUS_SERVER_PORT}
+${MC_STARLINGX_ENDPOINT} ${GLOBAL_MC_STARLINGX_SERVER_PROTOCOL}://${GLOBAL_INJECTED_MC_STARLINGX_IP_ADDR}:${GLOBAL_MC_STARLINGX_SERVER_PORT}
+${MC_TC_ENDPOINT} ${GLOBAL_MC_TC_SERVER_PROTOCOL}://${GLOBAL_INJECTED_MC_TC_IP_ADDR}:${GLOBAL_MC_TC_SERVER_PORT}
+${MC_VIO_ENDPOINT} ${GLOBAL_MC_VIO_SERVER_PROTOCOL}://${GLOBAL_INJECTED_MC_VIO_IP_ADDR}:${GLOBAL_MC_VIO_SERVER_PORT}
+${MC_K8S_ENDPOINT} ${GLOBAL_MC_K8S_SERVER_PROTOCOL}://${GLOBAL_INJECTED_MC_K8S_IP_ADDR}:${GLOBAL_MC_K8S_SERVER_PORT}
+${MC_FCAPS_ENDPOINT} ${GLOBAL_MC_FCAPS_SERVER_PROTOCOL}://${GLOBAL_INJECTED_MC_FCAPS_IP_ADDR}:${GLOBAL_MC_FCAPS_SERVER_PORT}
+
+*** Keywords ***
+Run MultiCloud Health Check
+ [Documentation] Runs MultiCloud Health check
+ ${resp}= Run MultiCloud Get Request ${MC_ENDPOINT} ${MC_HEALTH_CHECK_PATH}
+ Should Be Equal As Integers ${resp.status_code} 200
+
+Run MultiCloud-pike Health Check
+ [Documentation] Runs MultiCloud-pike Health check
+ ${resp}= Run MultiCloud Get Request ${MC_PIKE_ENDPOINT} ${MC_PIKE_HEALTH_CHECK_PATH}
+ Should Be Equal As Integers ${resp.status_code} 200
+
+Run MultiCloud-starlingx Health Check
+ [Documentation] Runs MultiCloud-starlingx Health check
+ ${resp}= Run MultiCloud Get Request ${MC_STARLINGX_ENDPOINT} ${MC_STARLINGX_HEALTH_CHECK_PATH}
+ Should Be Equal As Integers ${resp.status_code} 200
+
+Run MultiCloud-titanium_cloud Health Check
+ [Documentation] Runs MultiCloud-titanium_cloud Health check
+ ${resp}= Run MultiCloud Get Request ${MC_TC_ENDPOINT} ${MC_TC_HEALTH_CHECK_PATH}
+ Should Be Equal As Integers ${resp.status_code} 200
+
+Run MultiCloud-vio Health Check
+ [Documentation] Runs MultiCloud-vio Health check
+ ${resp}= Run MultiCloud Get Request ${MC_VIO_ENDPOINT} ${MC_VIO_HEALTH_CHECK_PATH}
+ Should Be Equal As Integers ${resp.status_code} 200
+
+Run MultiCloud-k8s Health Check
+ [Documentation] Runs MultiCloud-k8s Health check
+ ${resp}= Run MultiCloud Get Request ${MC_K8S_ENDPOINT} ${MC_K8S_HEALTH_CHECK_PATH}
+ Should Be Equal As Integers ${resp.status_code} 200
+
+Run MultiCloud-prometheus Health Check
+ [Documentation] Runs MultiCloud-prometheus Health check
+ ${resp}= Run MultiCloud Get Request ${MC_PROMETHEUS_ENDPOINT} ${MC_PROMETHEUS_HEALTH_CHECK_PATH}
+ Should Be Equal As Integers ${resp.status_code} 200
+
+Run MultiCloud-fcaps Health Check
+ [Documentation] Runs MultiCloud-fcaps Health check
+ ${resp}= Run MultiCloud Get Request ${MC_FCAPS_ENDPOINT} ${MC_FCAPS_HEALTH_CHECK_PATH}
+ Should Be Equal As Integers ${resp.status_code} 200
+
+Run MultiCloud Get Request
+ [Documentation] Runs MultiCloud Get request
+ [Arguments] ${endpoint} ${data_path}
+ ${session}= Create Session session ${endpoint}
+ ${resp}= Get Request session ${data_path}
+ Should Be Equal As Integers ${resp.status_code} 200
+ Log Received response from MultiCloud ${resp.text}
+ [Return] ${resp}
diff --git a/robot/resources/uui_interface.robot b/robot/resources/uui_interface.robot
new file mode 100644
index 00000000..0b0e15e9
--- /dev/null
+++ b/robot/resources/uui_interface.robot
@@ -0,0 +1,26 @@
+*** Settings ***
+Documentation The main interface for interacting with Usecase UI
+Library RequestsLibrary
+Library Collections
+
+Resource global_properties.robot
+
+*** Variables ***
+${UUI_HEALTH_CHECK_PATH} /api/usecaseui-server/v1/
+${UUI_ENDPOINT} ${GLOBAL_UUI_SERVER_PROTOCOL}://${GLOBAL_INJECTED_UUI_IP_ADDR}:${GLOBAL_UUI_SERVER_PORT}
+
+
+*** Keywords ***
+Run UUI Health Check
+ [Documentation] Runs UUI Health check
+ ${resp}= Run UUI Get Request ${UUI_HEALTH_CHECK_PATH}
+ Should Be Equal As Integers ${resp.status_code} 200
+
+Run UUI Get Request
+ [Documentation] Runs UUI Get request
+ [Arguments] ${data_path}
+ ${session}= Create Session session ${UUI_ENDPOINT}
+ ${resp}= Get Request session ${data_path}
+ Should Be Equal As Integers ${resp.status_code} 200
+ Log Received response from UUI ${resp.text}
+ [Return] ${resp}
diff --git a/robot/resources/vfc_interface.robot b/robot/resources/vfc_interface.robot
new file mode 100644
index 00000000..c7b6ebb0
--- /dev/null
+++ b/robot/resources/vfc_interface.robot
@@ -0,0 +1,68 @@
+*** Settings ***
+Documentation The main interface for interacting with VFC
+Library RequestsLibrary
+Library Collections
+
+Resource global_properties.robot
+
+*** Variables ***
+${VFC_GVNFMDRIVER_HEALTH_CHECK_PATH} /api/gvnfmdriver/v1/health_check
+${VFC_HUAWEIVNFMDRIVER_HEALTH_CHECK_PATH} /api/huaweivnfmdriver/v1/swagger.json
+${VFC_NSLCM_HEALTH_CHECK_PATH} /api/nslcm/v1/health_check
+${VFC_VNFLCM_HEALTH_CHECK_PATH} /api/vnflcm/v1/health_check
+${VFC_VNFMGR_HEALTH_CHECK_PATH} /api/vnfmgr/v1/health_check
+${VFC_VNFRES_HEALTH_CHECK_PATH} /api/vnfres/v1/health_check
+${VFC_ZTEVNFDRIVER_HEALTH_CHECK_PATH} /api/ztevnfmdriver/v1/health_check
+
+${VFC_GVNFMDRIVER_ENDPOINT} ${GLOBAL_VFC_GVNFMDRIVER_SERVER_PROTOCOL}://${GLOBAL_INJECTED_VFC_GVNFMDRIVER_IP_ADDR}:${GLOBAL_VFC_GVNFMDRIVER_SERVER_PORT}
+${VFC_HUAWEIVNFMDRIVER_ENDPOINT} ${GLOBAL_VFC_HUAWEIVNFMDRIVER_SERVER_PROTOCOL}://${GLOBAL_INJECTED_VFC_HUAWEIVNFMDRIVER_IP_ADDR}:${GLOBAL_VFC_HUAWEIVNFMDRIVER_SERVER_PORT}
+${VFC_NSLCM_ENDPOINT} ${GLOBAL_VFC_NSLCM_SERVER_PROTOCOL}://${GLOBAL_INJECTED_VFC_NSLCM_IP_ADDR}:${GLOBAL_VFC_NSLCM_SERVER_PORT}
+${VFC_VNFLCM_ENDPOINT} ${GLOBAL_VFC_VNFLCM_SERVER_PROTOCOL}://${GLOBAL_INJECTED_VFC_VNFLCM_IP_ADDR}:${GLOBAL_VFC_VNFLCM_SERVER_PORT}
+${VFC_VNFMGR_ENDPOINT} ${GLOBAL_VFC_VNFMGR_SERVER_PROTOCOL}://${GLOBAL_INJECTED_VFC_VNFMGR_IP_ADDR}:${GLOBAL_VFC_VNFMGR_SERVER_PORT}
+${VFC_VNFRES_ENDPOINT} ${GLOBAL_VFC_VNFRES_SERVER_PROTOCOL}://${GLOBAL_INJECTED_VFC_VNFRES_IP_ADDR}:${GLOBAL_VFC_VNFRES_SERVER_PORT}
+${VFC_ZTEVNFDRIVER_ENDPOINT} ${GLOBAL_VFC_ZTEVNFDRIVER_SERVER_PROTOCOL}://${GLOBAL_INJECTED_VFC_ZTEVNFDRIVER_IP_ADDR}:${GLOBAL_VFC_ZTEVNFDRIVER_SERVER_PORT}
+
+*** Keywords ***
+Run VFC gvnfmdriver Health Check
+ [Documentation] Runs VFC gvnfmdriver Health check
+ ${resp}= Run VFC Get Request ${VFC_GVNFMDRIVER_ENDPOINT} ${VFC_GVNFMDRIVER_HEALTH_CHECK_PATH}
+ Should Be Equal As Integers ${resp.status_code} 200
+
+Run VFC huaweivnfmdriver Health Check
+ [Documentation] Runs VFC huaweivnfmdriver Health check
+ ${resp}= Run VFC Get Request ${VFC_HUAWEIVNFMDRIVER_ENDPOINT} ${VFC_HUAWEIVNFMDRIVER_HEALTH_CHECK_PATH}
+ Should Be Equal As Integers ${resp.status_code} 200
+
+Run VFC nslcm Health Check
+ [Documentation] Runs VFC nslcm Health check
+ ${resp}= Run VFC Get Request ${VFC_NSLCM_ENDPOINT} ${VFC_NSLCM_HEALTH_CHECK_PATH}
+ Should Be Equal As Integers ${resp.status_code} 200
+
+Run VFC vnflcm Health Check
+ [Documentation] Runs VFC vnflcm Health check
+ ${resp}= Run VFC Get Request ${VFC_VNFLCM_ENDPOINT} ${VFC_VNFLCM_HEALTH_CHECK_PATH}
+ Should Be Equal As Integers ${resp.status_code} 200
+
+Run VFC vnfmgr Health Check
+ [Documentation] Runs VFC vnfmgr Health check
+ ${resp}= Run VFC Get Request ${VFC_VNFMGR_ENDPOINT} ${VFC_VNFMGR_HEALTH_CHECK_PATH}
+ Should Be Equal As Integers ${resp.status_code} 200
+
+Run VFC vnfres Health Check
+ [Documentation] Runs VFC vnfres Health check
+ ${resp}= Run VFC Get Request ${VFC_VNFRES_ENDPOINT} ${VFC_VNFRES_HEALTH_CHECK_PATH}
+ Should Be Equal As Integers ${resp.status_code} 200
+
+Run VFC ztevnfmdriver Health Check
+ [Documentation] Runs VFC ztevnfmdriver Health check
+ ${resp}= Run VFC Get Request ${VFC_ZTEVNFDRIVER_ENDPOINT} ${VFC_ZTEVNFDRIVER_HEALTH_CHECK_PATH}
+ Should Be Equal As Integers ${resp.status_code} 200
+
+Run VFC Get Request
+ [Documentation] Runs VFC Get request
+ [Arguments] ${endpoint} ${data_path}
+ ${session}= Create Session session ${endpoint}
+ ${resp}= Get Request session ${data_path}
+ Should Be Equal As Integers ${resp.status_code} 200
+ Log Received response from MultiCloud ${resp.text}
+ [Return] ${resp}
diff --git a/robot/testsuites/health-check.robot b/robot/testsuites/health-check.robot
index 7609854c..d9ccd358 100644
--- a/robot/testsuites/health-check.robot
+++ b/robot/testsuites/health-check.robot
@@ -28,6 +28,9 @@ Resource ../resources/holmes_interface.robot
Resource ../resources/cds_interface.robot
Resource ../resources/dcae_ms_interface.robot
Resource ../resources/mariadb_galera_interface.robot
+Resource ../resources/multicloud_interface.robot
+Resource ../resources/uui_interface.robot
+Resource ../resources/vfc_interface.robot
Suite Teardown Close All Browsers
@@ -95,32 +98,40 @@ Basic Log Logstash Health Check
Run Log Logstash Health Check
Basic Microservice Bus Health Check
- [Tags] health medium health-msb
+ [Tags] medium health-msb
Run MSB Health Check
Basic Multicloud API Health Check
[Tags] health multicloud small health-multicloud
- Run MSB Get Request /api/multicloud/v0/swagger.json
+ Run MultiCloud Health Check
Basic Multicloud-pike API Health Check
[Tags] health multicloud small health-multicloud
- Run MSB Get Request /api/multicloud-pike/v0/swagger.json
+ Run MultiCloud-pike Health Check
Basic Multicloud-starlingx API Health Check
[Tags] multicloud health-multicloud
- Run MSB Get Request /api/multicloud-starlingx/v0/swagger.json
+ Run MultiCloud-starlingx Health Check
Basic Multicloud-titanium_cloud API Health Check
[Tags] multicloud health-multicloud
- Run MSB Get Request /api/multicloud-titaniumcloud/v1/swagger.json
+ Run MultiCloud-titanium_cloud Health Check
Basic Multicloud-vio API Health Check
[Tags] multicloud health-multicloud
- Run MSB Get Request /api/multicloud-vio/v0/swagger.json
+ Run MultiCloud-vio Health Check
Basic Multicloud-k8s API Health Check
[Tags] health multicloud health-multicloud
- Run MSB Get Request /api/multicloud-k8s/v1/v1/healthcheck
+ Run MultiCloud-k8s Health Check
+
+Basic Multicloud-fcaps API Health Check
+ [Tags] health multicloud health-multicloud
+ Run MultiCloud-fcaps Health Check
+
+Basic Multicloud-prometheus API Health Check
+ [Tags] multicloud health-multicloud
+ Run MultiCloud-prometheus Health Check
Basic OOF-Homing Health Check
[Tags] health medium health-oof
@@ -211,35 +222,35 @@ Basic SO Health Check
Basic UseCaseUI API Health Check
[Tags] health api medium health-uui
- Run MSB Get Request /iui/usecaseui/
+ Run UUI Health Check
Basic VFC gvnfmdriver API Health Check
[Tags] health 3rdparty health-vfc
- Run MSB Get Request /api/gvnfmdriver/v1/health_check
+ Run VFC gvnfmdriver Health Check
Basic VFC huaweivnfmdriver API Health Check
[Tags] health 3rdparty health-vfc
- Run MSB Get Request /api/huaweivnfmdriver/v1/swagger.json
+ Run VFC huaweivnfmdriver Health Check
Basic VFC nslcm API Health Check
[Tags] health api health-vfc
- Run MSB Get Request /api/nslcm/v1/health_check
+ Run VFC nslcm Health Check
Basic VFC vnflcm API Health Check
[Tags] health api health-vfc
- Run MSB Get Request /api/vnflcm/v1/health_check
+ Run VFC vnflcm Health Check
Basic VFC vnfmgr API Health Check
[Tags] health api health-vfc
- Run MSB Get Request /api/vnfmgr/v1/health_check
+ Run VFC vnfmgr Health Check
Basic VFC vnfres API Health Check
[Tags] health api health-vfc
- Run MSB Get Request /api/vnfres/v1/health_check
+ Run VFC vnfres Health Check
Basic VFC ztevnfmdriver API Health Check
[Tags] health 3rdparty health-vfc
- Run MSB Get Request /api/ztevnfmdriver/v1/health_check
+ Run VFC ztevnfmdriver Health Check
Basic VNFSDK Health Check
[Tags] health health-vnfsdk
@@ -311,10 +322,6 @@ Basic Holmes Engine Management API Health Check
[Tags] health-holmes health
Run Holmes Engine Mgmt Healthcheck
-Basic Multicloud-fcaps API Health Check
- [Tags] health multicloud health-multicloud
- Run MSB Get Request /api/multicloud-fcaps/v1/healthcheck
-
Basic Modeling genericparser API Health Check
[Tags] health api health-modeling
Run MSB Get Request /api/parser/v1/health_check