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 <gary.i.wu@huawei.com>
diff --git a/robot/resources/dcae_interface.robot b/robot/resources/dcae_interface.robot
index ce0e4ac..267f475 100644
--- a/robot/resources/dcae_interface.robot
+++ b/robot/resources/dcae_interface.robot
@@ -19,5 +19,5 @@
${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