blob: dd80450311287fb7059edc5f1a026ce47cbddac8 [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}
Brian Freeman189b0472018-07-16 12:16:44 -050022 Log Received response code from dcae ${resp}
23 Log Received content from dcae ${resp.content}
24 Should Be Equal As Strings ${resp.status_code} 200