Unable to set Field mode, if set to true
Resolves openbmc/openbmc-test-automation#1939
Change-Id: I629bac9457e4aa88dd357e63e1d8d06b7895025e
Signed-off-by: Sushil Singh <susilsi7@in.ibm.com>
diff --git a/redfish/update_service/test_redfish_signed_image_update.robot b/redfish/update_service/test_redfish_signed_image_update.robot
index 3e7b5e6..fb2bc4e 100644
--- a/redfish/update_service/test_redfish_signed_image_update.robot
+++ b/redfish/update_service/test_redfish_signed_image_update.robot
@@ -47,6 +47,15 @@
${IMAGE_FILE_PATH}
+REST Failure When Field Mode Set To Disable
+ [Documentation] Verify error while disabling field mode from enabled mode.
+ [Tags] REST_Failure_When_Field_Mode_Set_To_Disable
+
+ ${args}= Create Dictionary data=${0}
+ ${resp}= OpenBMC Post Request ${SOFTWARE_VERSION_URI}attr/FieldModeEnabled data=${args}
+ Should Be Equal As Strings ${resp.status_code} ${HTTP_METHOD_NOT_ALLOWED}
+
+
*** Keywords ***
Suite Setup Execution