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 |
Leigh, Phillip (pl876u) | e3dc304 | 2019-03-22 17:44:53 -0400 | [diff] [blame] | 16 | ${POMBA_KIBANA_PATH} / |
| 17 | ${POMBA_ELASTICSEARCH_PATH} / |
| 18 | |
Leigh, Phillip (pl876u) | d8966bc | 2019-03-19 16:33:39 -0400 | [diff] [blame] | 19 | ${POMBA_SERVICEDECOMPOSITION_PATH} /service-decomposition/health |
Leigh, Phillip (pl876u) | e3dc304 | 2019-03-22 17:44:53 -0400 | [diff] [blame] | 20 | ${POMBA_AAICONTEXTBUILDER_ENDPOINT} ${GLOBAL_POMBA_SERVER_PROTOCOL_HTTP}://${GLOBAL_INJECTED_POMBA_AAI_CONTEXT_BUILDER_IP_ADDR}:${GLOBAL_POMBA_AAICONTEXTBUILDER_PORT} |
| 21 | ${POMBA_SDCCONTEXTBUILDER_ENDPOINT} ${GLOBAL_POMBA_SERVER_PROTOCOL_HTTP}://${GLOBAL_INJECTED_POMBA_SDC_CONTEXT_BUILDER_IP_ADDR}:${GLOBAL_POMBA_SDCCONTEXTBUILDER_PORT} |
| 22 | ${POMBA_NETWORKDISCCONTEXTBUILDER_ENDPOINT} ${GLOBAL_POMBA_SERVER_PROTOCOL_HTTP}://${GLOBAL_INJECTED_POMBA_NETWORK_DISC_CONTEXTBUILDER_IP_ADDR}:${GLOBAL_POMBA_NETWORKDISCCONTEXTBUILDER_PORT} |
| 23 | ${POMBA_SERVICEDECOMPOSITION_ENDPOINT} ${GLOBAL_POMBA_SERVER_PROTOCOL_HTTP}://${GLOBAL_INJECTED_POMBA_SERVICE_DECOMPOSITION_IP_ADDR}:${GLOBAL_POMBA_SERVICEDECOMPOSITION_PORT} |
| 24 | ${POMBA_NETWORKDISCOVERY_MICROSERVICE_ENDPOINT} ${GLOBAL_POMBA_SERVER_PROTOCOL_HTTPS}://${GLOBAL_INJECTED_POMBA_NETWORKDISCOVERY_MICROSERVICE_IP_ADDR}:${GLOBAL_POMBA_NETWORKDISCOVERY_MICROSERVICE_PORT} |
Leigh, Phillip (pl876u) | 56c0d27 | 2019-03-25 16:43:54 -0400 | [diff] [blame^] | 25 | ${POMBA_KIBANA_ENDPOINT} ${GLOBAL_POMBA_SERVER_PROTOCOL_HTTPS}://${GLOBAL_INJECTED_POMBA_KIBANA_IP_ADDR}:${GLOBAL_POMBA_KIBANA_PORT} |
Leigh, Phillip (pl876u) | e3dc304 | 2019-03-22 17:44:53 -0400 | [diff] [blame] | 26 | ${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] | 27 | |
| 28 | *** Keywords *** |
| 29 | Run Pomba Aai Context Builder Health Check |
| 30 | [Documentation] Tests Pomba Aai Context Builder interface |
| 31 | ${resp}= Run Pomba Aai Context Builder Get Request ${POMBA_AAICB_PATH} |
| 32 | Should Be Equal As Strings ${resp.status_code} 200 |
| 33 | |
| 34 | Run Pomba Aai Context Builder Get Request |
| 35 | [Documentation] Runs a Pomba Aai Context Builder request |
| 36 | [Arguments] ${data_path} |
| 37 | Log Creating session ${POMBA_AAICONTEXTBUILDER_ENDPOINT} |
| 38 | ${session}= Create Session pomba-aaictxbuilder ${POMBA_AAICONTEXTBUILDER_ENDPOINT} |
| 39 | ${resp}= Get Request pomba-aaictxbuilder ${data_path} |
| 40 | Log Received response from pomba-aaictxbuilder ${resp.text} |
| 41 | [Return] ${resp} |
| 42 | |
| 43 | Run Pomba Sdc Context Builder Health Check |
| 44 | [Documentation] Tests Sdc Context Builder interface |
| 45 | ${resp}= Run Pomba Sdc Context Builder Get Request ${POMBA_SDCCB_PATH} |
| 46 | Should Be Equal As Strings ${resp.status_code} 200 |
| 47 | |
| 48 | Run Pomba Sdc Context Builder Get Request |
| 49 | [Documentation] Runs a Pomba Sdc Context Builder request |
| 50 | [Arguments] ${data_path} |
| 51 | Log Creating session ${POMBA_SDCCONTEXTBUILDER_ENDPOINT} |
| 52 | ${session}= Create Session pomba-sdcctxbuilder ${POMBA_SDCCONTEXTBUILDER_ENDPOINT} |
| 53 | ${resp}= Get Request pomba-sdcctxbuilder ${data_path} |
| 54 | Log Received response from pomba-sdcctxbuilder ${resp.text} |
| 55 | [Return] ${resp} |
| 56 | |
| 57 | Run Pomba Network Discovery Context Builder Health Check |
| 58 | [Documentation] Tests a Pomba Network Discovery Context Builder interface |
| 59 | ${resp}= Run Pomba Network Discovery Context Builder Get Request ${POMBA_NDCB_PATH} |
| 60 | Should Be Equal As Strings ${resp.status_code} 200 |
| 61 | |
| 62 | Run Pomba Network Discovery Context Builder Get Request |
| 63 | [Documentation] Runs a Pomba Network Discovery Context Builder request |
| 64 | [Arguments] ${data_path} |
| 65 | Log Creating session ${POMBA_NETWORKDISCCONTEXTBUILDER_ENDPOINT} |
| 66 | ${session}= Create Session pomba-networkdiscovery ${POMBA_NETWORKDISCCONTEXTBUILDER_ENDPOINT} |
| 67 | ${resp}= Get Request pomba-networkdiscovery ${data_path} |
| 68 | Log Received response from pomba-networkdiscovery ${resp.text} |
| 69 | [Return] ${resp} |
| 70 | |
Leigh, Phillip (pl876u) | d8966bc | 2019-03-19 16:33:39 -0400 | [diff] [blame] | 71 | Run Pomba Service Decomposition Health Check |
| 72 | [Documentation] Tests Pomba Service Decomposition interface |
| 73 | ${resp}= Run Pomba Service Decomposition Get Request ${POMBA_SERVICEDECOMPOSITION_PATH} |
| 74 | Should Be Equal As Strings ${resp.status_code} 200 |
| 75 | |
| 76 | Run Pomba Service Decomposition Get Request |
| 77 | [Documentation] Runs a Pomba Service Decomposition request |
| 78 | [Arguments] ${data_path} |
| 79 | Log Creating session ${POMBA_SERVICEDECOMPOSITION_ENDPOINT} |
| 80 | ${session}= Create Session pomba-servicedecomposition ${POMBA_SERVICEDECOMPOSITION_ENDPOINT} |
| 81 | ${resp}= Get Request pomba-servicedecomposition ${data_path} |
| 82 | Log Received response from pomba-servicedecomposition ${resp.text} |
| 83 | [Return] ${resp} |
| 84 | |
Leigh, Phillip (pl876u) | e3dc304 | 2019-03-22 17:44:53 -0400 | [diff] [blame] | 85 | Run Pomba Network Discovery MicroService Health Check |
| 86 | [Documentation] Tests Pomba Network Discovery MicroService interface |
| 87 | ${resp}= Run Pomba Network Discovery MicroService Get Request ${POMBA_NDMS_PATH} |
Leigh, Phillip (pl876u) | d8966bc | 2019-03-19 16:33:39 -0400 | [diff] [blame] | 88 | Should Be Equal As Strings ${resp.status_code} 200 |
| 89 | |
Leigh, Phillip (pl876u) | e3dc304 | 2019-03-22 17:44:53 -0400 | [diff] [blame] | 90 | Run Pomba Network Discovery MicroService Get Request |
| 91 | [Documentation] Runs a Pomba Network Discovery MicroService request |
Leigh, Phillip (pl876u) | d8966bc | 2019-03-19 16:33:39 -0400 | [diff] [blame] | 92 | [Arguments] ${data_path} |
Leigh, Phillip (pl876u) | e3dc304 | 2019-03-22 17:44:53 -0400 | [diff] [blame] | 93 | Log Creating session ${POMBA_NETWORKDISCOVERY_MICROSERVICE_ENDPOINT} |
| 94 | ${session}= Create Session pomba-networkdiscovery ${POMBA_NETWORKDISCOVERY_MICROSERVICE_ENDPOINT} |
| 95 | ${resp}= Get Request pomba-networkdiscovery ${data_path} |
| 96 | Log Received response from pomba-networkdiscovery ${resp.text} |
| 97 | [Return] ${resp} |
| 98 | |
Leigh, Phillip (pl876u) | e3dc304 | 2019-03-22 17:44:53 -0400 | [diff] [blame] | 99 | Run Pomba Kibana Health Check |
| 100 | [Documentation] Tests Pomba Kibana interface |
| 101 | ${resp}= Run Pomba Kibana Get Request ${POMBA_KIBANA_PATH} |
| 102 | Should Be Equal As Strings ${resp.status_code} 200 |
| 103 | |
| 104 | Run Pomba Kibana Get Request |
| 105 | [Documentation] Runs a Pomba Kibana request |
| 106 | [Arguments] ${data_path} |
| 107 | Log Creating session ${POMBA_KIBANA_ENDPOINT} |
| 108 | ${session}= Create Session pomba-kibana ${POMBA_KIBANA_ENDPOINT} |
| 109 | ${resp}= Get Request pomba-kibana ${data_path} |
| 110 | Log Received response from pomba-kibana ${resp.text} |
| 111 | [Return] ${resp} |
| 112 | |
| 113 | Run Pomba Elastic Search Health Check |
| 114 | [Documentation] Tests Pomba Elastic Search interface |
| 115 | ${resp}= Run Pomba Elastic Search Get Request ${POMBA_ELASTICSEARCH_PATH} |
| 116 | Should Be Equal As Strings ${resp.status_code} 200 |
| 117 | |
| 118 | Run Pomba Elastic Search Get Request |
| 119 | [Documentation] Runs a Pomba Elastic Search request |
| 120 | [Arguments] ${data_path} |
| 121 | Log Creating session ${POMBA_ELASTICSEARCH_ENDPOINT} |
| 122 | ${session}= Create Session pomba-es ${POMBA_ELASTICSEARCH_ENDPOINT} |
| 123 | ${resp}= Get Request pomba-es ${data_path} |
| 124 | Log Received response from pomba-es ${resp.text} |
Leigh, Phillip (pl876u) | d8966bc | 2019-03-19 16:33:39 -0400 | [diff] [blame] | 125 | [Return] ${resp} |