Revert "REST post response compliant test"

This reverts commit 02e8965896bd56e20569e2d0fbd6db5f107cf067.

This caused a failure in our QEMU run:
"500 != 200"
https://openpower.xyz/job/openbmc-test-qemu-ci/2025/robot/report/log.html#s1-s3-t8

Change-Id: I9ba6613fae25619c412e4428f9d89a1bce4260a3
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/test_lists/HW_CI b/test_lists/HW_CI
index a0784ec..5bddc44 100644
--- a/test_lists/HW_CI
+++ b/test_lists/HW_CI
@@ -10,7 +10,6 @@
 #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/test_lists/QEMU_CI b/test_lists/QEMU_CI
index 97a6243..3ecff0f 100644
--- a/test_lists/QEMU_CI
+++ b/test_lists/QEMU_CI
@@ -9,7 +9,6 @@
 #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 2ef3e49..92dba38 100644
--- a/tests/test_rest_interfaces.robot
+++ b/tests/test_rest_interfaces.robot
@@ -162,15 +162,29 @@
     #  "status": "ok"
     # }
 
-    # Clear existing gard records, if any.
-    ${data}=  Create Dictionary  data=@{EMPTY}
-    ${resp}=  Openbmc Post Request  ${OPENPOWER_CONTROL}gard/action/Reset
-    ...  data=${data}
+    # 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}
     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