diff options
author | Andreas Geissler <andreas-geissler@telekom.de> | 2023-02-28 15:22:07 +0100 |
---|---|---|
committer | Andreas Geissler <andreas-geissler@telekom.de> | 2023-02-28 15:22:07 +0100 |
commit | 82f3caabe7d5907454a5bc08dbb92971e096fe92 (patch) | |
tree | d971104ca68ea206f99400eadb136a0feb725697 /robot/resources/vfc_interface.robot | |
parent | 4dcb36ec53fea68e012bdb4bad8373b0001b38a4 (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/vfc_interface.robot')
-rw-r--r-- | robot/resources/vfc_interface.robot | 68 |
1 files changed, 68 insertions, 0 deletions
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} |