Don't parse DCAE response as JSON 01/45301/1
authorGary Wu <gary.i.wu@huawei.com>
Mon, 30 Apr 2018 18:02:48 +0000 (11:02 -0700)
committerGary Wu <gary.i.wu@huawei.com>
Mon, 30 Apr 2018 18:02:48 +0000 (11:02 -0700)
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>
robot/resources/dcae_interface.robot

index ce0e4ac..267f475 100644 (file)
@@ -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