blob: c181edad9fee6b023f4283906c9fda147684dd0e [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
16${POMBA_VALIDATIONSERVICE_PATH} /health
17${POMBA_KIBANA_PATH} /
18${POMBA_ELASTICSEARCH_PATH} /
19
Leigh, Phillip (pl876u)d8966bc2019-03-19 16:33:39 -040020${POMBA_SERVICEDECOMPOSITION_PATH} /service-decomposition/health
Leigh, Phillip (pl876u)e3dc3042019-03-22 17:44:53 -040021${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}
Ubuntua4e34002018-09-20 22:49:52 +000029
30*** Keywords ***
31Run 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
36Run 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
45Run 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
50Run 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
59Run 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
64Run 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)d8966bc2019-03-19 16:33:39 -040073Run 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
78Run 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)e3dc3042019-03-22 17:44:53 -040087Run 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)d8966bc2019-03-19 16:33:39 -040090 Should Be Equal As Strings ${resp.status_code} 200
91
Leigh, Phillip (pl876u)e3dc3042019-03-22 17:44:53 -040092Run Pomba Network Discovery MicroService Get Request
93 [Documentation] Runs a Pomba Network Discovery MicroService request
Leigh, Phillip (pl876u)d8966bc2019-03-19 16:33:39 -040094 [Arguments] ${data_path}
Leigh, Phillip (pl876u)e3dc3042019-03-22 17:44:53 -040095 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
101Run 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
106Run 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
115Run 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
120Run 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
129Run 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
134Run 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)d8966bc2019-03-19 16:33:39 -0400141 [Return] ${resp}