Ubuntu | a4e3400 | 2018-09-20 22:49:52 +0000 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Tests the health of the POMBA containers: aai-context-builder, sdc-context-builder and network-discovery-context-builder. |
| 3 | Library Collections |
| 4 | Library String |
| 5 | Library RequestsLibrary |
| 6 | Resource 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 *** |
| 18 | Run 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 | |
| 23 | Run 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 | |
| 32 | Run 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 | |
| 37 | Run 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 | |
| 46 | Run 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 | |
| 51 | Run 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 | |