aboutsummaryrefslogtreecommitdiffstats
path: root/robot/resources
diff options
context:
space:
mode:
authorAndreas Geissler <andreas-geissler@telekom.de>2023-02-28 15:22:07 +0100
committerAndreas Geissler <andreas-geissler@telekom.de>2023-02-28 15:22:07 +0100
commit82f3caabe7d5907454a5bc08dbb92971e096fe92 (patch)
treed971104ca68ea206f99400eadb136a0feb725697 /robot/resources
parent4dcb36ec53fea68e012bdb4bad8373b0001b38a4 (diff)
[HEALTHCHECK] Disable MSB calls in healthchecks
For MultiCloud, UUI and VFC use component interfaces instead of MSB calls Issue-ID: TEST-392 Signed-off-by: Andreas Geissler <andreas-geissler@telekom.de> Change-Id: I27d38dc34aaea8820cae987c497b0238f6f2100e
Diffstat (limited to 'robot/resources')
-rw-r--r--robot/resources/multicloud_interface.robot75
-rw-r--r--robot/resources/uui_interface.robot26
-rw-r--r--robot/resources/vfc_interface.robot68
3 files changed, 169 insertions, 0 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}