blob: ce0e4ac997aa7ba62f668a29c2bd6122f13c7b2e [file] [log] [blame]
DR695Hccff30b2017-02-17 18:44:24 -05001*** Settings ***
2Documentation The main interface for interacting with DCAE. It handles low level stuff like managing the http request library and DCAE required fields
3Library RequestsLibrary
Jerry Flood5db693b2017-05-24 08:52:39 -04004Library UUID
DR695Hccff30b2017-02-17 18:44:24 -05005Library OperatingSystem
6Library Collections
7Resource global_properties.robot
8
9*** Variables ***
Jerry Floodbfc7fcc2017-10-27 12:01:36 -040010${DCAE_HEALTH_CHECK_PATH} /healthcheck
DR695H5a923342018-04-16 14:43:06 -040011${DCAE_HEALTH_ENDPOINT} ${GLOBAL_DCAE_SERVER_PROTOCOL}://${GLOBAL_INJECTED_DCAE_IP_ADDR}:${GLOBAL_DCAE_HEALTH_SERVER_PORT}
DR695Hccff30b2017-02-17 18:44:24 -050012
13*** Keywords ***
14Run DCAE Health Check
15 [Documentation] Runs a DCAE health check
16 ${auth}= Create List ${GLOBAL_DCAE_USERNAME} ${GLOBAL_DCAE_PASSWORD}
DR695H5a923342018-04-16 14:43:06 -040017 Log Creating session ${DCAE_HEALTH_ENDPOINT}
18 ${session}= Create Session dcae ${DCAE_HEALTH_ENDPOINT} auth=${auth}
DR695Hccff30b2017-02-17 18:44:24 -050019 ${uuid}= Generate UUID
Jerry Flood171c8652017-05-23 13:12:43 -040020 ${headers}= Create Dictionary X-ECOMP-Client-Version=ONAP-R2 action=getTable Accept=application/json Content-Type=application/json X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid} X-FromAppId=${GLOBAL_APPLICATION_ID}
Jerry Floodbfc7fcc2017-10-27 12:01:36 -040021 ${resp}= Get Request dcae ${DCAE_HEALTH_CHECK_PATH} headers=${headers}
DR695Hccff30b2017-02-17 18:44:24 -050022 Log Received response from dcae ${resp.json()}
DR695H5a923342018-04-16 14:43:06 -040023 Should Be Equal As Strings ${resp.status_code} 200