blob: ddea52a65707da1854b846b1389cf4d6f5a02014 [file] [log] [blame]
Ubuntua4e34002018-09-20 22:49:52 +00001*** Settings ***
Leigh, Phillip (pl876u)e3dc3042019-03-22 17:44:53 -04002Documentation Tests the health of the POMBA containers: aai-context-builder, sdc-context-builder,
3Documentation network-discovery-micro-service, Context-Aggregator, pomba-kibana, pomba-elasticsearch,
4Documentation service-decomposition, sdnc-context-builder and network-discovery-context-builder.
Ubuntua4e34002018-09-20 22:49:52 +00005Library Collections
6Library String
7Library RequestsLibrary
8Resource 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)e3dc3042019-03-22 17:44:53 -040015${POMBA_NDMS_PATH} /health
Leigh, Phillip (pl876u)e3dc3042019-03-22 17:44:53 -040016${POMBA_KIBANA_PATH} /
17${POMBA_ELASTICSEARCH_PATH} /
Leigh, Phillip (pl876u)d8966bc2019-03-19 16:33:39 -040018${POMBA_SERVICEDECOMPOSITION_PATH} /service-decomposition/health
Leigh, Phillip (pl876u)d49bf602019-03-26 12:10:15 -040019${POMBA_SDNCCTXBUILDER_PATH} /sdnccontextbuilder/health
20${POMBA_CONTEXTAGGREGATOR_PATH} /health
21
Leigh, Phillip (pl876u)e3dc3042019-03-22 17:44:53 -040022${POMBA_AAICONTEXTBUILDER_ENDPOINT} ${GLOBAL_POMBA_SERVER_PROTOCOL_HTTP}://${GLOBAL_INJECTED_POMBA_AAI_CONTEXT_BUILDER_IP_ADDR}:${GLOBAL_POMBA_AAICONTEXTBUILDER_PORT}
23${POMBA_SDCCONTEXTBUILDER_ENDPOINT} ${GLOBAL_POMBA_SERVER_PROTOCOL_HTTP}://${GLOBAL_INJECTED_POMBA_SDC_CONTEXT_BUILDER_IP_ADDR}:${GLOBAL_POMBA_SDCCONTEXTBUILDER_PORT}
24${POMBA_NETWORKDISCCONTEXTBUILDER_ENDPOINT} ${GLOBAL_POMBA_SERVER_PROTOCOL_HTTP}://${GLOBAL_INJECTED_POMBA_NETWORK_DISC_CONTEXTBUILDER_IP_ADDR}:${GLOBAL_POMBA_NETWORKDISCCONTEXTBUILDER_PORT}
25${POMBA_SERVICEDECOMPOSITION_ENDPOINT} ${GLOBAL_POMBA_SERVER_PROTOCOL_HTTP}://${GLOBAL_INJECTED_POMBA_SERVICE_DECOMPOSITION_IP_ADDR}:${GLOBAL_POMBA_SERVICEDECOMPOSITION_PORT}
26${POMBA_NETWORKDISCOVERY_MICROSERVICE_ENDPOINT} ${GLOBAL_POMBA_SERVER_PROTOCOL_HTTPS}://${GLOBAL_INJECTED_POMBA_NETWORKDISCOVERY_MICROSERVICE_IP_ADDR}:${GLOBAL_POMBA_NETWORKDISCOVERY_MICROSERVICE_PORT}
Leigh, Phillip (pl876u)56c0d272019-03-25 16:43:54 -040027${POMBA_KIBANA_ENDPOINT} ${GLOBAL_POMBA_SERVER_PROTOCOL_HTTPS}://${GLOBAL_INJECTED_POMBA_KIBANA_IP_ADDR}:${GLOBAL_POMBA_KIBANA_PORT}
Leigh, Phillip (pl876u)e3dc3042019-03-22 17:44:53 -040028${POMBA_ELASTICSEARCH_ENDPOINT} ${GLOBAL_POMBA_SERVER_PROTOCOL_HTTP}://${GLOBAL_INJECTED_POMBA_ELASTIC_SEARCH_IP_ADDR}:${GLOBAL_POMBA_ELASTICSEARCH_PORT}
Leigh, Phillip (pl876u)d49bf602019-03-26 12:10:15 -040029${POMBA_SDNCCONTEXTBUILDER_ENDPOINT} ${GLOBAL_POMBA_SERVER_PROTOCOL_HTTP}://${GLOBAL_INJECTED_POMBA_SDNC_CTX_BUILDER_IP_ADDR}:${GLOBAL_POMBA_SDNCCXTBUILDER_PORT}
30${POMBA_CONTEXTAGGREGATOR_ENDPOINT} ${GLOBAL_POMBA_SERVER_PROTOCOL_HTTP}://${GLOBAL_INJECTED_POMBA_CONTEX_TAGGREGATOR_IP_ADDR}:${GLOBAL_POMBA_CONTEXTAGGREGATOR_PORT}
Ubuntua4e34002018-09-20 22:49:52 +000031
32*** Keywords ***
33Run Pomba Aai Context Builder Health Check
34 [Documentation] Tests Pomba Aai Context Builder interface
35 ${resp}= Run Pomba Aai Context Builder Get Request ${POMBA_AAICB_PATH}
36 Should Be Equal As Strings ${resp.status_code} 200
37
38Run Pomba Aai Context Builder Get Request
39 [Documentation] Runs a Pomba Aai Context Builder request
40 [Arguments] ${data_path}
41 Log Creating session ${POMBA_AAICONTEXTBUILDER_ENDPOINT}
42 ${session}= Create Session pomba-aaictxbuilder ${POMBA_AAICONTEXTBUILDER_ENDPOINT}
43 ${resp}= Get Request pomba-aaictxbuilder ${data_path}
44 Log Received response from pomba-aaictxbuilder ${resp.text}
45 [Return] ${resp}
46
47Run Pomba Sdc Context Builder Health Check
48 [Documentation] Tests Sdc Context Builder interface
49 ${resp}= Run Pomba Sdc Context Builder Get Request ${POMBA_SDCCB_PATH}
50 Should Be Equal As Strings ${resp.status_code} 200
51
52Run Pomba Sdc Context Builder Get Request
53 [Documentation] Runs a Pomba Sdc Context Builder request
54 [Arguments] ${data_path}
55 Log Creating session ${POMBA_SDCCONTEXTBUILDER_ENDPOINT}
56 ${session}= Create Session pomba-sdcctxbuilder ${POMBA_SDCCONTEXTBUILDER_ENDPOINT}
57 ${resp}= Get Request pomba-sdcctxbuilder ${data_path}
58 Log Received response from pomba-sdcctxbuilder ${resp.text}
59 [Return] ${resp}
60
61Run Pomba Network Discovery Context Builder Health Check
62 [Documentation] Tests a Pomba Network Discovery Context Builder interface
63 ${resp}= Run Pomba Network Discovery Context Builder Get Request ${POMBA_NDCB_PATH}
64 Should Be Equal As Strings ${resp.status_code} 200
65
66Run Pomba Network Discovery Context Builder Get Request
67 [Documentation] Runs a Pomba Network Discovery Context Builder request
68 [Arguments] ${data_path}
69 Log Creating session ${POMBA_NETWORKDISCCONTEXTBUILDER_ENDPOINT}
70 ${session}= Create Session pomba-networkdiscovery ${POMBA_NETWORKDISCCONTEXTBUILDER_ENDPOINT}
71 ${resp}= Get Request pomba-networkdiscovery ${data_path}
72 Log Received response from pomba-networkdiscovery ${resp.text}
73 [Return] ${resp}
74
Leigh, Phillip (pl876u)d8966bc2019-03-19 16:33:39 -040075Run Pomba Service Decomposition Health Check
76 [Documentation] Tests Pomba Service Decomposition interface
77 ${resp}= Run Pomba Service Decomposition Get Request ${POMBA_SERVICEDECOMPOSITION_PATH}
78 Should Be Equal As Strings ${resp.status_code} 200
79
80Run Pomba Service Decomposition Get Request
81 [Documentation] Runs a Pomba Service Decomposition request
82 [Arguments] ${data_path}
83 Log Creating session ${POMBA_SERVICEDECOMPOSITION_ENDPOINT}
84 ${session}= Create Session pomba-servicedecomposition ${POMBA_SERVICEDECOMPOSITION_ENDPOINT}
85 ${resp}= Get Request pomba-servicedecomposition ${data_path}
86 Log Received response from pomba-servicedecomposition ${resp.text}
87 [Return] ${resp}
88
Leigh, Phillip (pl876u)e3dc3042019-03-22 17:44:53 -040089Run Pomba Network Discovery MicroService Health Check
90 [Documentation] Tests Pomba Network Discovery MicroService interface
91 ${resp}= Run Pomba Network Discovery MicroService Get Request ${POMBA_NDMS_PATH}
Leigh, Phillip (pl876u)d8966bc2019-03-19 16:33:39 -040092 Should Be Equal As Strings ${resp.status_code} 200
93
Leigh, Phillip (pl876u)e3dc3042019-03-22 17:44:53 -040094Run Pomba Network Discovery MicroService Get Request
95 [Documentation] Runs a Pomba Network Discovery MicroService request
Leigh, Phillip (pl876u)d8966bc2019-03-19 16:33:39 -040096 [Arguments] ${data_path}
Leigh, Phillip (pl876u)e3dc3042019-03-22 17:44:53 -040097 Log Creating session ${POMBA_NETWORKDISCOVERY_MICROSERVICE_ENDPOINT}
98 ${session}= Create Session pomba-networkdiscovery ${POMBA_NETWORKDISCOVERY_MICROSERVICE_ENDPOINT}
99 ${resp}= Get Request pomba-networkdiscovery ${data_path}
100 Log Received response from pomba-networkdiscovery ${resp.text}
101 [Return] ${resp}
102
Leigh, Phillip (pl876u)e3dc3042019-03-22 17:44:53 -0400103Run Pomba Kibana Health Check
104 [Documentation] Tests Pomba Kibana interface
105 ${resp}= Run Pomba Kibana Get Request ${POMBA_KIBANA_PATH}
106 Should Be Equal As Strings ${resp.status_code} 200
107
108Run Pomba Kibana Get Request
109 [Documentation] Runs a Pomba Kibana request
110 [Arguments] ${data_path}
111 Log Creating session ${POMBA_KIBANA_ENDPOINT}
112 ${session}= Create Session pomba-kibana ${POMBA_KIBANA_ENDPOINT}
113 ${resp}= Get Request pomba-kibana ${data_path}
114 Log Received response from pomba-kibana ${resp.text}
115 [Return] ${resp}
116
117Run Pomba Elastic Search Health Check
118 [Documentation] Tests Pomba Elastic Search interface
119 ${resp}= Run Pomba Elastic Search Get Request ${POMBA_ELASTICSEARCH_PATH}
120 Should Be Equal As Strings ${resp.status_code} 200
121
122Run Pomba Elastic Search Get Request
123 [Documentation] Runs a Pomba Elastic Search request
124 [Arguments] ${data_path}
125 Log Creating session ${POMBA_ELASTICSEARCH_ENDPOINT}
126 ${session}= Create Session pomba-es ${POMBA_ELASTICSEARCH_ENDPOINT}
127 ${resp}= Get Request pomba-es ${data_path}
128 Log Received response from pomba-es ${resp.text}
Leigh, Phillip (pl876u)d49bf602019-03-26 12:10:15 -0400129 [Return] ${resp}
130
131Run Pomba Sdnc Context Builder Health Check
132 [Documentation] Tests Pomba Sdnc Context Builder interface
133 ${resp}= Run Pomba Sdnc Context Builder Get Request ${POMBA_SDNCCTXBUILDER_PATH}
134 Should Be Equal As Strings ${resp.status_code} 200
135
136Run Pomba Sdnc Context Builder Get Request
137 [Documentation] Runs a Pomba Sdnc Context Builder request
138 [Arguments] ${data_path}
139 Log Creating session ${POMBA_SDNCCONTEXTBUILDER_ENDPOINT}
140 ${session}= Create Session pomba-sdncctxbuilder ${POMBA_SDNCCONTEXTBUILDER_ENDPOINT}
141 ${resp}= Get Request pomba-sdncctxbuilder ${data_path}
142 Log Received response from pomba-sdncctxbuilder ${resp.text}
143 [Return] ${resp}
144
145Run Pomba Context Aggregator Health Check
146 [Documentation] Tests Pomba Context-Aggregator interface
147 ${resp}= Run Pomba Context Aggregator Get Request ${POMBA_CONTEXTAGGREGATOR_PATH}
148 Should Be Equal As Strings ${resp.status_code} 200
149
150Run Pomba Context Aggregator Get Request
151 [Documentation] Runs a Pomba Context Aggregator request
152 [Arguments] ${data_path}
153 Log Creating session ${POMBA_CONTEXTAGGREGATOR_ENDPOINT}
154 ${session}= Create Session pomba-contextaggregator ${POMBA_CONTEXTAGGREGATOR_ENDPOINT}
155 ${resp}= Get Request pomba-contextaggregator ${data_path}
156 Log Received response from pomba-contextaggregator ${resp.text}
Leigh, Phillip (pl876u)d8966bc2019-03-19 16:33:39 -0400157 [Return] ${resp}