blob: 9ca9b7e2f044ceb4aaead0f403efe58ba0e128ce [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} /
18
Leigh, Phillip (pl876u)d8966bc2019-03-19 16:33:39 -040019${POMBA_SERVICEDECOMPOSITION_PATH} /service-decomposition/health
Leigh, Phillip (pl876u)e3dc3042019-03-22 17:44:53 -040020${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)56c0d272019-03-25 16:43:54 -040025${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 -040026${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 +000027
28*** Keywords ***
29Run 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
34Run 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
43Run 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
48Run 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
57Run 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
62Run 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)d8966bc2019-03-19 16:33:39 -040071Run 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
76Run 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)e3dc3042019-03-22 17:44:53 -040085Run 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)d8966bc2019-03-19 16:33:39 -040088 Should Be Equal As Strings ${resp.status_code} 200
89
Leigh, Phillip (pl876u)e3dc3042019-03-22 17:44:53 -040090Run Pomba Network Discovery MicroService Get Request
91 [Documentation] Runs a Pomba Network Discovery MicroService request
Leigh, Phillip (pl876u)d8966bc2019-03-19 16:33:39 -040092 [Arguments] ${data_path}
Leigh, Phillip (pl876u)e3dc3042019-03-22 17:44:53 -040093 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)e3dc3042019-03-22 17:44:53 -040099Run 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
104Run 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
113Run 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
118Run 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)d8966bc2019-03-19 16:33:39 -0400125 [Return] ${resp}