Added test case to ensure firmware update
successful when interrupted with hostname
change

Changes:
   - Redfish Code Update With Different
     Interrupted Operation
   - Verify Redfish Code Update With Different
     Interrupted Operation

Tested:
   - Ran successfully
     redfish/update_service/
     test_redfish_bmc_code_update.robot

Change-Id: I209cfddc2991e3684ee1d934311517ac19c4f1e6
Signed-off-by: Sushil Singh <susilsi7@in.ibm.com>
diff --git a/lib/bmc_network_utils.robot b/lib/bmc_network_utils.robot
index b904c81..d2c3543 100644
--- a/lib/bmc_network_utils.robot
+++ b/lib/bmc_network_utils.robot
@@ -347,7 +347,7 @@
 
 Configure Hostname
     [Documentation]  Configure hostname on BMC via Redfish.
-    [Arguments]  ${hostname}
+    [Arguments]  ${hostname}  ${status_code}=[${HTTP_OK}, ${HTTP_NO_CONTENT}]
 
     # Description of argument(s):
     # hostname  A hostname value which is to be configured on BMC.
@@ -357,7 +357,7 @@
 
     ${data}=  Create Dictionary  HostName=${hostname}
     Redfish.patch  ${REDFISH_NW_ETH_IFACE}${ethernet_interface}  body=&{data}
-    ...  valid_status_codes=[${HTTP_OK}, ${HTTP_NO_CONTENT}]
+    ...  valid_status_codes=${status_code}
 
 
 Verify IP On BMC