PLDM invalid or out-of-range string and value for BIOS PATCH request
Changes:
- Add response for 400
Tested:
- Ran test suite pldm/test_redfish_bios_attributes.robot
Change-Id: I3adf9bbb076a32eddca189efaa185f423f05fffd
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/pldm/test_redfish_bios_attributes.robot b/pldm/test_redfish_bios_attributes.robot
index 0582925..6b4f378 100755
--- a/pldm/test_redfish_bios_attributes.robot
+++ b/pldm/test_redfish_bios_attributes.robot
@@ -56,7 +56,7 @@
${count}= Evaluate ${attr_val_data['${int_attr}']["UpperBound"]} + 5
Redfish.Patch ${BIOS_ATTR_SETTINGS_URI} body={"Attributes":{"${int_attr}": ${count}}}
- ... valid_status_codes=[${HTTP_INTERNAL_SERVER_ERROR}]
+ ... valid_status_codes=[${HTTP_INTERNAL_SERVER_ERROR},${HTTP_BAD_REQUEST}]
Redfish Verify Set Out Of Range String Value For BIOS String Attribute Type
@@ -72,7 +72,7 @@
${random_value}= Generate Random String ${count} [LETTERS][NUMBERS]
Redfish.Patch ${BIOS_ATTR_SETTINGS_URI} body={"Attributes":{"${str_attr}": '${random_value}'}}
- ... valid_status_codes=[${HTTP_INTERNAL_SERVER_ERROR}]
+ ... valid_status_codes=[${HTTP_INTERNAL_SERVER_ERROR},${HTTP_BAD_REQUEST}]
Redfish Verify Set BIOS String Attribute Type