Re-order REST test case to avoid intermitent interface object listing

/xyz/openbmc_project/ipmi and /xyz/openbmc_project/ipmi/internal
shows up due to power off request in between the test suite run.
These objects are intemittent and eventually gets cleared.

Change-Id: Ie9c3dd87c38b7a726870b4ef6df942de9f83debb
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/tests/test_rest_interfaces.robot b/tests/test_rest_interfaces.robot
index 3ff4eb5..74fdc9f 100644
--- a/tests/test_rest_interfaces.robot
+++ b/tests/test_rest_interfaces.robot
@@ -211,29 +211,6 @@
     Delete All Error Logs
 
 
-Verify REST Put Message JSON Compliant
-    [Documentation]  Verify REST "PUT" message is JSON format compliant.
-    [Tags]  REST_Put_Message_JSON_Format_Compliance_Test
-    # Example:
-    # Response code:200, Content:{
-    #  "data": null,
-    #  "message": "200 OK",
-    #  "status": "ok"
-    # }
-
-    ${dict_data}=  Create Dictionary  data=${HOST_POWEROFF_TRANS}
-    ${resp}=  Openbmc Put Request
-    ...  ${HOST_STATE_URI}attr/RequestedHostTransition  data=${dict_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
-    # Intention is not to test poweroff but to check the REST operation
-    # sink time allowing to kick poweroff.
-    Sleep  10s
-
-
 Check Response Codes HTTP_UNSUPPORTED_MEDIA_TYPE
     [Documentation]  REST "Post" response status test for
     ...              HTTP_UNSUPPORTED_MEDIA_TYPE.
@@ -368,6 +345,29 @@
     \  ...  Append To List  ${error_uri_list}  ${uri} : ${resp.status_code}
     Should Be Empty  ${error_uri_list}
 
+
+Verify REST Put Message JSON Compliant
+    [Documentation]  Verify REST "PUT" message is JSON format compliant.
+    [Tags]  REST_Put_Message_JSON_Format_Compliance_Test
+    # Example:
+    # Response code:200, Content:{
+    #  "data": null,
+    #  "message": "200 OK",
+    #  "status": "ok"
+    # }
+
+    ${dict_data}=  Create Dictionary  data=${HOST_POWEROFF_TRANS}
+    ${resp}=  Openbmc Put Request
+    ...  ${HOST_STATE_URI}attr/RequestedHostTransition  data=${dict_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
+    # Intention is not to test poweroff but to check the REST operation
+    # sink time allowing to kick poweroff.
+    Sleep  10s
+
 *** Keywords ***
 
 Get Sub URI List