Ubuntu | a4e3400 | 2018-09-20 22:49:52 +0000 | [diff] [blame] | 1 | *** Settings *** |
Leigh, Phillip (pl876u) | e3dc304 | 2019-03-22 17:44:53 -0400 | [diff] [blame] | 2 | Documentation Tests the health of the POMBA containers: aai-context-builder, sdc-context-builder, |
| 3 | Documentation network-discovery-micro-service, Context-Aggregator, pomba-kibana, pomba-elasticsearch, |
| 4 | Documentation service-decomposition, sdnc-context-builder and network-discovery-context-builder. |
Ubuntu | a4e3400 | 2018-09-20 22:49:52 +0000 | [diff] [blame] | 5 | Library Collections |
| 6 | Library String |
| 7 | Library RequestsLibrary |
| 8 | Resource global_properties.robot |
| 9 | |
| 10 | *** Variables *** |
| 11 | ${POMBA_PATH} / |
| 12 | ${POMBA_AAICB_PATH} /aaicontextbuilder/health |
| 13 | ${POMBA_SDCCB_PATH} /sdccontextbuilder/health |
| 14 | ${POMBA_NDCB_PATH} /ndcontextbuilder/health |
Leigh, Phillip (pl876u) | e3dc304 | 2019-03-22 17:44:53 -0400 | [diff] [blame] | 15 | ${POMBA_NDMS_PATH} /health |
| 16 | ${POMBA_VALIDATIONSERVICE_PATH} /health |
| 17 | ${POMBA_KIBANA_PATH} / |
| 18 | ${POMBA_ELASTICSEARCH_PATH} / |
| 19 | |
Leigh, Phillip (pl876u) | d8966bc | 2019-03-19 16:33:39 -0400 | [diff] [blame] | 20 | ${POMBA_SERVICEDECOMPOSITION_PATH} /service-decomposition/health |
Leigh, Phillip (pl876u) | e3dc304 | 2019-03-22 17:44:53 -0400 | [diff] [blame] | 21 | ${POMBA_AAICONTEXTBUILDER_ENDPOINT} ${GLOBAL_POMBA_SERVER_PROTOCOL_HTTP}://${GLOBAL_INJECTED_POMBA_AAI_CONTEXT_BUILDER_IP_ADDR}:${GLOBAL_POMBA_AAICONTEXTBUILDER_PORT} |
| 22 | ${POMBA_SDCCONTEXTBUILDER_ENDPOINT} ${GLOBAL_POMBA_SERVER_PROTOCOL_HTTP}://${GLOBAL_INJECTED_POMBA_SDC_CONTEXT_BUILDER_IP_ADDR}:${GLOBAL_POMBA_SDCCONTEXTBUILDER_PORT} |
| 23 | ${POMBA_NETWORKDISCCONTEXTBUILDER_ENDPOINT} ${GLOBAL_POMBA_SERVER_PROTOCOL_HTTP}://${GLOBAL_INJECTED_POMBA_NETWORK_DISC_CONTEXTBUILDER_IP_ADDR}:${GLOBAL_POMBA_NETWORKDISCCONTEXTBUILDER_PORT} |
| 24 | ${POMBA_SERVICEDECOMPOSITION_ENDPOINT} ${GLOBAL_POMBA_SERVER_PROTOCOL_HTTP}://${GLOBAL_INJECTED_POMBA_SERVICE_DECOMPOSITION_IP_ADDR}:${GLOBAL_POMBA_SERVICEDECOMPOSITION_PORT} |
| 25 | ${POMBA_NETWORKDISCOVERY_MICROSERVICE_ENDPOINT} ${GLOBAL_POMBA_SERVER_PROTOCOL_HTTPS}://${GLOBAL_INJECTED_POMBA_NETWORKDISCOVERY_MICROSERVICE_IP_ADDR}:${GLOBAL_POMBA_NETWORKDISCOVERY_MICROSERVICE_PORT} |
| 26 | ${POMBA_VALIDATIONSERVICE_ENDPOINT} ${GLOBAL_POMBA_SERVER_PROTOCOL_HTTP}://${GLOBAL_INJECTED_POMBA_VALIDATION_SERVICE_IP_ADDR}:${GLOBAL_POMBA_VALIDATIONSERVICE_PORT} |
| 27 | ${POMBA_KIBANA_ENDPOINT} ${GLOBAL_POMBA_SERVER_PROTOCOL_HTTP}://${GLOBAL_INJECTED_POMBA_KIBANA_IP_ADDR}:${GLOBAL_POMBA_KIBANA_PORT} |
| 28 | ${POMBA_ELASTICSEARCH_ENDPOINT} ${GLOBAL_POMBA_SERVER_PROTOCOL_HTTP}://${GLOBAL_INJECTED_POMBA_ELASTIC_SEARCH_IP_ADDR}:${GLOBAL_POMBA_ELASTICSEARCH_PORT} |
Ubuntu | a4e3400 | 2018-09-20 22:49:52 +0000 | [diff] [blame] | 29 | |
| 30 | *** Keywords *** |
| 31 | Run Pomba Aai Context Builder Health Check |
| 32 | [Documentation] Tests Pomba Aai Context Builder interface |
| 33 | ${resp}= Run Pomba Aai Context Builder Get Request ${POMBA_AAICB_PATH} |
| 34 | Should Be Equal As Strings ${resp.status_code} 200 |
| 35 | |
| 36 | Run Pomba Aai Context Builder Get Request |
| 37 | [Documentation] Runs a Pomba Aai Context Builder request |
| 38 | [Arguments] ${data_path} |
| 39 | Log Creating session ${POMBA_AAICONTEXTBUILDER_ENDPOINT} |
| 40 | ${session}= Create Session pomba-aaictxbuilder ${POMBA_AAICONTEXTBUILDER_ENDPOINT} |
| 41 | ${resp}= Get Request pomba-aaictxbuilder ${data_path} |
| 42 | Log Received response from pomba-aaictxbuilder ${resp.text} |
| 43 | [Return] ${resp} |
| 44 | |
| 45 | Run Pomba Sdc Context Builder Health Check |
| 46 | [Documentation] Tests Sdc Context Builder interface |
| 47 | ${resp}= Run Pomba Sdc Context Builder Get Request ${POMBA_SDCCB_PATH} |
| 48 | Should Be Equal As Strings ${resp.status_code} 200 |
| 49 | |
| 50 | Run Pomba Sdc Context Builder Get Request |
| 51 | [Documentation] Runs a Pomba Sdc Context Builder request |
| 52 | [Arguments] ${data_path} |
| 53 | Log Creating session ${POMBA_SDCCONTEXTBUILDER_ENDPOINT} |
| 54 | ${session}= Create Session pomba-sdcctxbuilder ${POMBA_SDCCONTEXTBUILDER_ENDPOINT} |
| 55 | ${resp}= Get Request pomba-sdcctxbuilder ${data_path} |
| 56 | Log Received response from pomba-sdcctxbuilder ${resp.text} |
| 57 | [Return] ${resp} |
| 58 | |
| 59 | Run Pomba Network Discovery Context Builder Health Check |
| 60 | [Documentation] Tests a Pomba Network Discovery Context Builder interface |
| 61 | ${resp}= Run Pomba Network Discovery Context Builder Get Request ${POMBA_NDCB_PATH} |
| 62 | Should Be Equal As Strings ${resp.status_code} 200 |
| 63 | |
| 64 | Run Pomba Network Discovery Context Builder Get Request |
| 65 | [Documentation] Runs a Pomba Network Discovery Context Builder request |
| 66 | [Arguments] ${data_path} |
| 67 | Log Creating session ${POMBA_NETWORKDISCCONTEXTBUILDER_ENDPOINT} |
| 68 | ${session}= Create Session pomba-networkdiscovery ${POMBA_NETWORKDISCCONTEXTBUILDER_ENDPOINT} |
| 69 | ${resp}= Get Request pomba-networkdiscovery ${data_path} |
| 70 | Log Received response from pomba-networkdiscovery ${resp.text} |
| 71 | [Return] ${resp} |
| 72 | |
Leigh, Phillip (pl876u) | d8966bc | 2019-03-19 16:33:39 -0400 | [diff] [blame] | 73 | Run Pomba Service Decomposition Health Check |
| 74 | [Documentation] Tests Pomba Service Decomposition interface |
| 75 | ${resp}= Run Pomba Service Decomposition Get Request ${POMBA_SERVICEDECOMPOSITION_PATH} |
| 76 | Should Be Equal As Strings ${resp.status_code} 200 |
| 77 | |
| 78 | Run Pomba Service Decomposition Get Request |
| 79 | [Documentation] Runs a Pomba Service Decomposition request |
| 80 | [Arguments] ${data_path} |
| 81 | Log Creating session ${POMBA_SERVICEDECOMPOSITION_ENDPOINT} |
| 82 | ${session}= Create Session pomba-servicedecomposition ${POMBA_SERVICEDECOMPOSITION_ENDPOINT} |
| 83 | ${resp}= Get Request pomba-servicedecomposition ${data_path} |
| 84 | Log Received response from pomba-servicedecomposition ${resp.text} |
| 85 | [Return] ${resp} |
| 86 | |
Leigh, Phillip (pl876u) | e3dc304 | 2019-03-22 17:44:53 -0400 | [diff] [blame] | 87 | Run Pomba Network Discovery MicroService Health Check |
| 88 | [Documentation] Tests Pomba Network Discovery MicroService interface |
| 89 | ${resp}= Run Pomba Network Discovery MicroService Get Request ${POMBA_NDMS_PATH} |
Leigh, Phillip (pl876u) | d8966bc | 2019-03-19 16:33:39 -0400 | [diff] [blame] | 90 | Should Be Equal As Strings ${resp.status_code} 200 |
| 91 | |
Leigh, Phillip (pl876u) | e3dc304 | 2019-03-22 17:44:53 -0400 | [diff] [blame] | 92 | Run Pomba Network Discovery MicroService Get Request |
| 93 | [Documentation] Runs a Pomba Network Discovery MicroService request |
Leigh, Phillip (pl876u) | d8966bc | 2019-03-19 16:33:39 -0400 | [diff] [blame] | 94 | [Arguments] ${data_path} |
Leigh, Phillip (pl876u) | e3dc304 | 2019-03-22 17:44:53 -0400 | [diff] [blame] | 95 | Log Creating session ${POMBA_NETWORKDISCOVERY_MICROSERVICE_ENDPOINT} |
| 96 | ${session}= Create Session pomba-networkdiscovery ${POMBA_NETWORKDISCOVERY_MICROSERVICE_ENDPOINT} |
| 97 | ${resp}= Get Request pomba-networkdiscovery ${data_path} |
| 98 | Log Received response from pomba-networkdiscovery ${resp.text} |
| 99 | [Return] ${resp} |
| 100 | |
| 101 | Run Pomba Validation Service Health Check |
| 102 | [Documentation] Tests Pomba Validation Service interface |
| 103 | ${resp}= Run Pomba Validation Service Get Request ${POMBA_VALIDATIONSERVICE_PATH} |
| 104 | Should Be Equal As Strings ${resp.status_code} 200 |
| 105 | |
| 106 | Run Pomba Validation Service Get Request |
| 107 | [Documentation] Runs a Pomba Validation Service request |
| 108 | [Arguments] ${data_path} |
| 109 | Log Creating session ${POMBA_VALIDATIONSERVICE_ENDPOINT} |
| 110 | ${session}= Create Session pomba-validation-service ${POMBA_VALIDATIONSERVICE_ENDPOINT} |
| 111 | ${resp}= Get Request pomba-validation-service ${data_path} |
| 112 | Log Received response from pomba-validation-service ${resp.text} |
| 113 | [Return] ${resp} |
| 114 | |
| 115 | Run Pomba Kibana Health Check |
| 116 | [Documentation] Tests Pomba Kibana interface |
| 117 | ${resp}= Run Pomba Kibana Get Request ${POMBA_KIBANA_PATH} |
| 118 | Should Be Equal As Strings ${resp.status_code} 200 |
| 119 | |
| 120 | Run Pomba Kibana Get Request |
| 121 | [Documentation] Runs a Pomba Kibana request |
| 122 | [Arguments] ${data_path} |
| 123 | Log Creating session ${POMBA_KIBANA_ENDPOINT} |
| 124 | ${session}= Create Session pomba-kibana ${POMBA_KIBANA_ENDPOINT} |
| 125 | ${resp}= Get Request pomba-kibana ${data_path} |
| 126 | Log Received response from pomba-kibana ${resp.text} |
| 127 | [Return] ${resp} |
| 128 | |
| 129 | Run Pomba Elastic Search Health Check |
| 130 | [Documentation] Tests Pomba Elastic Search interface |
| 131 | ${resp}= Run Pomba Elastic Search Get Request ${POMBA_ELASTICSEARCH_PATH} |
| 132 | Should Be Equal As Strings ${resp.status_code} 200 |
| 133 | |
| 134 | Run Pomba Elastic Search Get Request |
| 135 | [Documentation] Runs a Pomba Elastic Search request |
| 136 | [Arguments] ${data_path} |
| 137 | Log Creating session ${POMBA_ELASTICSEARCH_ENDPOINT} |
| 138 | ${session}= Create Session pomba-es ${POMBA_ELASTICSEARCH_ENDPOINT} |
| 139 | ${resp}= Get Request pomba-es ${data_path} |
| 140 | Log Received response from pomba-es ${resp.text} |
Leigh, Phillip (pl876u) | d8966bc | 2019-03-19 16:33:39 -0400 | [diff] [blame] | 141 | [Return] ${resp} |