Verify the BMC REST "CreateDump" POST JSON response data is not null

Resolves  openbmc/openbmc-test-automation#1129

Change-Id: I9d14da752eb3b10167ce58a8b74039e0de6e641f
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/dump_utils.robot b/lib/dump_utils.robot
index daeefcf..09abbdc 100644
--- a/lib/dump_utils.robot
+++ b/lib/dump_utils.robot
@@ -16,6 +16,16 @@
 
     Should Be Equal As Strings  ${resp.status_code}  ${HTTP_OK}
     ${json}=  To JSON  ${resp.content}
+
+    # REST "CreateDump" JSON response.
+    # {
+    #    "data": null,
+    #    "message": "200 OK",
+    #    "status": "ok"
+    # }
+    Run Keyword If  ${json["data"]} == ${None}
+    ...  Fail  Dump id returned null.
+
     ${dump_id}=  Set Variable  ${json["data"]}
 
     Wait Until Keyword Succeeds  3 min  15 sec  Check Dump Existence