REST post response compliant test without QEMU_CI

Reverted due to failure in QEMU environment
Reference: https://gerrit.openbmc-project.xyz/#/c/10244/

Original: https://gerrit.openbmc-project.xyz/#/c/10103/

Resolves  openbmc/openbmc-test-automation#1344

Change-Id: Ib752684c61ee231e2915fdaab56b8209b381b077
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/test_lists/HW_CI b/test_lists/HW_CI
index 5bddc44..a0784ec 100644
--- a/test_lists/HW_CI
+++ b/test_lists/HW_CI
@@ -10,6 +10,7 @@
 #Additional REST API tests
 -i REST_Login_Session_To_BMC
 -i Verify_REST_Get_Message_JSON_Compliant
+-i Verify_REST_Post_Message_JSON_Compliant
 -i REST_Put_Message_JSON_Format_Compliance_Test
 -i Verify_REST_JSON_Data_On_Success
 -i Verify_REST_JSON_Data_On_Failure
diff --git a/tests/test_rest_interfaces.robot b/tests/test_rest_interfaces.robot
index 92dba38..2ef3e49 100644
--- a/tests/test_rest_interfaces.robot
+++ b/tests/test_rest_interfaces.robot
@@ -162,29 +162,15 @@
     #  "status": "ok"
     # }
 
-    # Generate 1KB file size
-    Run  dd if=/dev/zero of=dummyfile bs=1 count=0 seek=1KB
-    OperatingSystem.File Should Exist  dummyfile
-
-    # Get the content of the file and upload to BMC
-    ${image_data}=  OperatingSystem.Get Binary File  dummyfile
-
-    # Get REST session to BMC
-    Initialize OpenBMC
-
-    # Create the REST payload headers and data
-    ${data}=  Create Dictionary  data  ${image_data}
-    ${headers}=  Create Dictionary  Content-Type=application/octet-stream
-    ...  Accept=application/octet-stream
-    Set To Dictionary  ${data}  headers  ${headers}
-
-    ${resp}=  Post Request  openbmc  /upload/image  &{data}
+    # Clear existing gard records, if any.
+    ${data}=  Create Dictionary  data=@{EMPTY}
+    ${resp}=  Openbmc Post Request  ${OPENPOWER_CONTROL}gard/action/Reset
+    ...  data=${data}
     Should Be Equal As Strings  ${resp.status_code}  ${HTTP_OK}
     ${jsondata}=  To JSON  ${resp.content}
     Should Be Equal  ${jsondata["data"]}  ${None}
     Should Be Equal As Strings  ${jsondata["message"]}  200 OK
     Should Be Equal As Strings  ${jsondata["status"]}  ok
-    Delete All Error Logs
 
 
 Verify REST Put Message JSON Compliant