Add correct response code for invalid attribute value update
Changes:
Redfish patch operation can also throw 403 error code
when invalid attribute value is updated
Tested:
Tested changes on BMC environment
Change-Id: I20cb94171212d2f6eb1b168b634c97613dd67797
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/pldm/test_redfish_bios_attributes.robot b/pldm/test_redfish_bios_attributes.robot
index 93373f8..f1ca265 100755
--- a/pldm/test_redfish_bios_attributes.robot
+++ b/pldm/test_redfish_bios_attributes.robot
@@ -44,7 +44,7 @@
${enum_attr}= Evaluate random.choice(${attr_handles}) modules=random
Redfish.Patch ${BIOS_ATTR_SETTINGS_URI} body={"Attributes":{"${enum_attr}": '0'}}
- ... valid_status_codes=[${HTTP_BAD_REQUEST}]
+ ... valid_status_codes=[${HTTP_BAD_REQUEST}, ${HTTP_FORBIDDEN}]
Redfish Verify Set Out Of Range Integer Value For BIOS Integer Attribute Type