From a7914ae40089d3b2a8427d76de8ab0c5d63d2153 Mon Sep 17 00:00:00 2001 From: Gary Wu Date: Mon, 30 Apr 2018 11:02:48 -0700 Subject: Don't parse DCAE response as JSON Trying to parse DCAE response as JSON fails when the DCAE response is not successful. This change logs the entire response object. Change-Id: Ica718fdf39ef167b86789b5b8fda825dc8345e68 Issue-ID: TEST-87 Signed-off-by: Gary Wu --- robot/resources/dcae_interface.robot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/robot/resources/dcae_interface.robot b/robot/resources/dcae_interface.robot index ce0e4ac9..267f4757 100644 --- a/robot/resources/dcae_interface.robot +++ b/robot/resources/dcae_interface.robot @@ -19,5 +19,5 @@ Run DCAE Health Check ${uuid}= Generate UUID ${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} ${resp}= Get Request dcae ${DCAE_HEALTH_CHECK_PATH} headers=${headers} - Log Received response from dcae ${resp.json()} + Log Received response from dcae ${resp} Should Be Equal As Strings ${resp.status_code} 200 \ No newline at end of file -- cgit 1.2.3-korg