diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2018-09-24 14:21:15 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-09-24 14:21:15 +0000 |
commit | c437d7f86df29d409ab3251309895e1c89df772c (patch) | |
tree | 279f99829f7568cae89231cf62166ff69855b332 /robot/resources/pomba_interface.robot | |
parent | 24d19fd9b1da0a3908c932a8abb8b8bf125c7b23 (diff) | |
parent | a4e34000e5cebac266737176e5cb1ab68647881e (diff) |
Merge "pomba healthcheck"
Diffstat (limited to 'robot/resources/pomba_interface.robot')
-rw-r--r-- | robot/resources/pomba_interface.robot | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/robot/resources/pomba_interface.robot b/robot/resources/pomba_interface.robot new file mode 100644 index 00000000..6079faae --- /dev/null +++ b/robot/resources/pomba_interface.robot @@ -0,0 +1,59 @@ +*** Settings *** +Documentation Tests the health of the POMBA containers: aai-context-builder, sdc-context-builder and network-discovery-context-builder. +Library Collections +Library String +Library RequestsLibrary +Resource global_properties.robot + +*** Variables *** +${POMBA_PATH} / +${POMBA_AAICB_PATH} /aaicontextbuilder/health +${POMBA_SDCCB_PATH} /sdccontextbuilder/health +${POMBA_NDCB_PATH} /ndcontextbuilder/health +${POMBA_AAICONTEXTBUILDER_ENDPOINT} ${GLOBAL_POMBA_SERVER_PROTOCOL}://${GLOBAL_INJECTED_POMBA_AAI_CONTEXT_BUILDER_IP_ADDR}:${GLOBAL_POMBA_AAICONTEXTBUILDER_PORT} +${POMBA_SDCCONTEXTBUILDER_ENDPOINT} ${GLOBAL_POMBA_SERVER_PROTOCOL}://${GLOBAL_INJECTED_POMBA_SDC_CONTEXT_BUILDER_IP_ADDR}:${GLOBAL_POMBA_SDCCONTEXTBUILDER_PORT} +${POMBA_NETWORKDISCCONTEXTBUILDER_ENDPOINT} ${GLOBAL_POMBA_SERVER_PROTOCOL}://${GLOBAL_INJECTED_POMBA_NETWORK_DISC_CONTEXTBUILDER_IP_ADDR}:${GLOBAL_POMBA_NETWORKDISCCONTEXTBUILDER_PORT} + +*** Keywords *** +Run Pomba Aai Context Builder Health Check + [Documentation] Tests Pomba Aai Context Builder interface + ${resp}= Run Pomba Aai Context Builder Get Request ${POMBA_AAICB_PATH} + Should Be Equal As Strings ${resp.status_code} 200 + +Run Pomba Aai Context Builder Get Request + [Documentation] Runs a Pomba Aai Context Builder request + [Arguments] ${data_path} + Log Creating session ${POMBA_AAICONTEXTBUILDER_ENDPOINT} + ${session}= Create Session pomba-aaictxbuilder ${POMBA_AAICONTEXTBUILDER_ENDPOINT} + ${resp}= Get Request pomba-aaictxbuilder ${data_path} + Log Received response from pomba-aaictxbuilder ${resp.text} + [Return] ${resp} + +Run Pomba Sdc Context Builder Health Check + [Documentation] Tests Sdc Context Builder interface + ${resp}= Run Pomba Sdc Context Builder Get Request ${POMBA_SDCCB_PATH} + Should Be Equal As Strings ${resp.status_code} 200 + +Run Pomba Sdc Context Builder Get Request + [Documentation] Runs a Pomba Sdc Context Builder request + [Arguments] ${data_path} + Log Creating session ${POMBA_SDCCONTEXTBUILDER_ENDPOINT} + ${session}= Create Session pomba-sdcctxbuilder ${POMBA_SDCCONTEXTBUILDER_ENDPOINT} + ${resp}= Get Request pomba-sdcctxbuilder ${data_path} + Log Received response from pomba-sdcctxbuilder ${resp.text} + [Return] ${resp} + +Run Pomba Network Discovery Context Builder Health Check + [Documentation] Tests a Pomba Network Discovery Context Builder interface + ${resp}= Run Pomba Network Discovery Context Builder Get Request ${POMBA_NDCB_PATH} + Should Be Equal As Strings ${resp.status_code} 200 + +Run Pomba Network Discovery Context Builder Get Request + [Documentation] Runs a Pomba Network Discovery Context Builder request + [Arguments] ${data_path} + Log Creating session ${POMBA_NETWORKDISCCONTEXTBUILDER_ENDPOINT} + ${session}= Create Session pomba-networkdiscovery ${POMBA_NETWORKDISCCONTEXTBUILDER_ENDPOINT} + ${resp}= Get Request pomba-networkdiscovery ${data_path} + Log Received response from pomba-networkdiscovery ${resp.text} + [Return] ${resp} + |