Redfish Network robot codes with latest directives
Changes:
- Run KeyWord If is deprecated since Robot
Framework version 5.*, use 'IF' instead
Tested:
- Checked using robot dry-run to make sure the
syntax is not broken
Change-Id: Ibe1bbbd4603c0e8348fa0408132e41a165ae0154
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/redfish/managers/test_bmc_network_mac.robot b/redfish/managers/test_bmc_network_mac.robot
index 6e9c4e9..0a075ea 100644
--- a/redfish/managers/test_bmc_network_mac.robot
+++ b/redfish/managers/test_bmc_network_mac.robot
@@ -187,12 +187,13 @@
${status}= Run Keyword And Return Status
... Validate MAC On BMC ${mac_address}
- Run Keyword If ${valid_status_code} == ${HTTP_BAD_REQUEST}
- ... Should Be Equal ${status} ${False}
- ... msg=Allowing the configuration of an invalid MAC.
- ... ELSE
- ... Should Be Equal ${status} ${True}
- ... msg=Not allowing the configuration of a valid MAC.
+ IF ${valid_status_code} == ${HTTP_BAD_REQUEST}
+ Should Be Equal ${status} ${False}
+ ... msg=Allowing the configuration of an invalid MAC.
+ ELSE
+ Should Be Equal ${status} ${True}
+ ... msg=Not allowing the configuration of a valid MAC.
+ END
Verify MAC Address Via FW_Env ${mac_address} ${valid_status_code}
@@ -207,9 +208,10 @@
${status}= Run Keyword And Return Status
... Validate MAC On FW_Env ${mac_address}
- Run Keyword If ${valid_status_code} == ${HTTP_BAD_REQUEST}
- ... Should Be Equal ${status} ${False}
- ... msg=Allowing the configuration of an invalid MAC.
- ... ELSE
- ... Should Be Equal ${status} ${True}
- ... msg=Not allowing the configuration of a valid MAC.
+ IF ${valid_status_code} == ${HTTP_BAD_REQUEST}
+ Should Be Equal ${status} ${False}
+ ... msg=Allowing the configuration of an invalid MAC.
+ ELSE
+ Should Be Equal ${status} ${True}
+ ... msg=Not allowing the configuration of a valid MAC.
+ END