Fix 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: Ia7075ebf97e7300a82b032628e550d0caa4e86a8
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/security/test_bmc_network_security.robot b/security/test_bmc_network_security.robot
index fc92791..ef7362f 100644
--- a/security/test_bmc_network_security.robot
+++ b/security/test_bmc_network_security.robot
@@ -213,16 +213,18 @@
# Description of argument(s):
# port Network port.
- Run Keyword If ${port} == ${REDFISH_INTERFACE}
- ... Redfish.Login
- ... ELSE IF ${port} == ${SSH_PORT}
- ... Open Connection And Log In ${OPENBMC_USERNAME} ${OPENBMC_PASSWORD}
- ... ELSE IF ${port} == ${IPMI_PORT}
- ... Run External IPMI Standard Command lan print
- ... ELSE IF ${port} == ${HOST_SOL_PORT}
- ... Open Connection And Log In ${OPENBMC_USERNAME} ${OPENBMC_PASSWORD} port=${HOST_SOL_PORT}
- ... ELSE
- ... Redfish.Login
+ IF ${port} == ${REDFISH_INTERFACE}
+ Redfish.Login
+ ELSE IF ${port} == ${SSH_PORT}
+ Open Connection And Log In ${OPENBMC_USERNAME} ${OPENBMC_PASSWORD}
+ ELSE IF ${port} == ${IPMI_PORT}
+ Run External IPMI Standard Command lan print
+ ELSE IF ${port} == ${HOST_SOL_PORT}
+ Open Connection And Log In ${OPENBMC_USERNAME} ${OPENBMC_PASSWORD} port=${HOST_SOL_PORT}
+ ELSE
+ Redfish.Login
+ END
+
Establish TCP Connections And Get Connection Failures
[Documentation] Establish TCP connections and return nping connection responses.