Add HTTPS 204 response code for the PATCH request
Changes:
- Add HTTP_NO_CONTENT as a valid response code
for PATCH request for the ethernet interface
Example:
/redfish/v1/Managers/bmc/EthernetInterfaces/eth0
/redfish/v1/Managers/bmc/EthernetInterfaces/eth1
Tested:
- NA
Change-Id: I95f21e3b5e438d4134324b0cdf95342b6a97ebd4
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/redfish/managers/test_multiple_interfaces_dhcp.robot b/redfish/managers/test_multiple_interfaces_dhcp.robot
index b617405..632291b 100644
--- a/redfish/managers/test_multiple_interfaces_dhcp.robot
+++ b/redfish/managers/test_multiple_interfaces_dhcp.robot
@@ -149,7 +149,7 @@
Set DHCPEnabled To Enable Or Disable
[Documentation] Enable or Disable DHCP on the interface.
[Arguments] ${dhcp_enabled}=${False} ${interface}=${ethernet_interface}
- ... ${valid_status_code}=[${HTTP_OK},${HTTP_ACCEPTED}]
+ ... ${valid_status_code}=[${HTTP_OK},${HTTP_ACCEPTED},${HTTP_NO_CONTENT}]
# Description of argument(s):
# dhcp_enabled False for disabling DHCP and True for Enabling DHCP.