blob: 6079faae64fcd423a3a78f3a01dce54b6aef8974 [file] [log] [blame]
Ubuntua4e34002018-09-20 22:49:52 +00001*** Settings ***
2Documentation Tests the health of the POMBA containers: aai-context-builder, sdc-context-builder and network-discovery-context-builder.
3Library Collections
4Library String
5Library RequestsLibrary
6Resource global_properties.robot
7
8*** Variables ***
9${POMBA_PATH} /
10${POMBA_AAICB_PATH} /aaicontextbuilder/health
11${POMBA_SDCCB_PATH} /sdccontextbuilder/health
12${POMBA_NDCB_PATH} /ndcontextbuilder/health
13${POMBA_AAICONTEXTBUILDER_ENDPOINT} ${GLOBAL_POMBA_SERVER_PROTOCOL}://${GLOBAL_INJECTED_POMBA_AAI_CONTEXT_BUILDER_IP_ADDR}:${GLOBAL_POMBA_AAICONTEXTBUILDER_PORT}
14${POMBA_SDCCONTEXTBUILDER_ENDPOINT} ${GLOBAL_POMBA_SERVER_PROTOCOL}://${GLOBAL_INJECTED_POMBA_SDC_CONTEXT_BUILDER_IP_ADDR}:${GLOBAL_POMBA_SDCCONTEXTBUILDER_PORT}
15${POMBA_NETWORKDISCCONTEXTBUILDER_ENDPOINT} ${GLOBAL_POMBA_SERVER_PROTOCOL}://${GLOBAL_INJECTED_POMBA_NETWORK_DISC_CONTEXTBUILDER_IP_ADDR}:${GLOBAL_POMBA_NETWORKDISCCONTEXTBUILDER_PORT}
16
17*** Keywords ***
18Run Pomba Aai Context Builder Health Check
19 [Documentation] Tests Pomba Aai Context Builder interface
20 ${resp}= Run Pomba Aai Context Builder Get Request ${POMBA_AAICB_PATH}
21 Should Be Equal As Strings ${resp.status_code} 200
22
23Run Pomba Aai Context Builder Get Request
24 [Documentation] Runs a Pomba Aai Context Builder request
25 [Arguments] ${data_path}
26 Log Creating session ${POMBA_AAICONTEXTBUILDER_ENDPOINT}
27 ${session}= Create Session pomba-aaictxbuilder ${POMBA_AAICONTEXTBUILDER_ENDPOINT}
28 ${resp}= Get Request pomba-aaictxbuilder ${data_path}
29 Log Received response from pomba-aaictxbuilder ${resp.text}
30 [Return] ${resp}
31
32Run Pomba Sdc Context Builder Health Check
33 [Documentation] Tests Sdc Context Builder interface
34 ${resp}= Run Pomba Sdc Context Builder Get Request ${POMBA_SDCCB_PATH}
35 Should Be Equal As Strings ${resp.status_code} 200
36
37Run Pomba Sdc Context Builder Get Request
38 [Documentation] Runs a Pomba Sdc Context Builder request
39 [Arguments] ${data_path}
40 Log Creating session ${POMBA_SDCCONTEXTBUILDER_ENDPOINT}
41 ${session}= Create Session pomba-sdcctxbuilder ${POMBA_SDCCONTEXTBUILDER_ENDPOINT}
42 ${resp}= Get Request pomba-sdcctxbuilder ${data_path}
43 Log Received response from pomba-sdcctxbuilder ${resp.text}
44 [Return] ${resp}
45
46Run Pomba Network Discovery Context Builder Health Check
47 [Documentation] Tests a Pomba Network Discovery Context Builder interface
48 ${resp}= Run Pomba Network Discovery Context Builder Get Request ${POMBA_NDCB_PATH}
49 Should Be Equal As Strings ${resp.status_code} 200
50
51Run Pomba Network Discovery Context Builder Get Request
52 [Documentation] Runs a Pomba Network Discovery Context Builder request
53 [Arguments] ${data_path}
54 Log Creating session ${POMBA_NETWORKDISCCONTEXTBUILDER_ENDPOINT}
55 ${session}= Create Session pomba-networkdiscovery ${POMBA_NETWORKDISCCONTEXTBUILDER_ENDPOINT}
56 ${resp}= Get Request pomba-networkdiscovery ${data_path}
57 Log Received response from pomba-networkdiscovery ${resp.text}
58 [Return] ${resp}
59