aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUbuntu <frank.obrien@amdocs.com>2018-09-20 22:49:52 +0000
committerroot <frank.obrien@amdocs.com>2018-09-21 23:13:03 -0400
commita4e34000e5cebac266737176e5cb1ab68647881e (patch)
tree942b3cc63f72aeebc769989de1749a78744b3dfc
parentf3fcc38525c36592c0b3ede68a5c0dad54cd3a16 (diff)
pomba healthcheck
Change-Id: I516c249b81e3293db06d4b9a0b5f5ae929c547e4 Issue-ID: LOG-224 Signed-off-by: Ubuntu <frank.obrien@amdocs.com>
-rw-r--r--robot/resources/pomba_interface.robot59
-rw-r--r--robot/testsuites/health-check.robot14
2 files changed, 72 insertions, 1 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}
+
diff --git a/robot/testsuites/health-check.robot b/robot/testsuites/health-check.robot
index 8483780c..5890ef5e 100644
--- a/robot/testsuites/health-check.robot
+++ b/robot/testsuites/health-check.robot
@@ -26,7 +26,7 @@ Resource ../resources/log_interface.robot
Resource ../resources/oof_interface.robot
Resource ../resources/sms_interface.robot
Resource ../resources/dr_interface.robot
-
+Resource ../resources/pomba_interface.robot
*** Test Cases ***
Basic A&AI Health Check
@@ -113,6 +113,18 @@ Basic Policy Health Check
[Tags] health core
Run Policy Health Check
+Basic Pomba AAI-context-builder Health Check
+ [Tags] health core
+ Run Pomba Aai Context Builder Health Check
+
+Basic Pomba SDC-context-builder Health Check
+ [Tags] health core
+ Run Pomba Sdc Context Builder Health Check
+
+Basic Pomba Network-discovery-context-builder Health Check
+ [Tags] health core
+ Run Pomba Network Discovery Context Builder Health Check
+
Basic Portal Health Check
[Tags] health core
Run Portal Health Check