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_lldp_config.robot b/redfish/managers/test_lldp_config.robot
index 5e8ffb7..adfb42f 100644
--- a/redfish/managers/test_lldp_config.robot
+++ b/redfish/managers/test_lldp_config.robot
@@ -65,5 +65,6 @@
${resp}= Redfish.Get ${REDFISH_LLDP_ETH_IFACE}${ethernet_interface}
${lldp_state_expected}= Get From Dictionary ${resp.dict} Ethernet
- Run Keyword If '${lldp_state}' != '${lldp_state_expected['LLDPEnabled']}'
- ... Fail msg=LLDP value is not set correctly.
+ IF '${lldp_state}' != '${lldp_state_expected['LLDPEnabled']}'
+ Fail msg=LLDP value is not set correctly.
+ END