[BUG][Test Framework] response.payload
is set to null for non-2XX responses
#482
Labels
bug
Something isn't working
Consider this 403 response:
When a 403 happens to a
security.delete_distinguished_name
request, the cluster also returns a response body with{"status":"FORBIDDEN","message":"Access denied"}
. However testing this in a test story will result in this error when validating the response body:That is the test framework thought the returned payload was null. This is a bug in the framework and most likely caused by this line:
The
response.payload
is set topayload.error
while the payload itself is{"status":"FORBIDDEN","message":"Access denied"}
, resulting inresponse.payload = undefined
Related to #439
@DarshitChanpura
The text was updated successfully, but these errors were encountered: