Fix depecrating robot syntax in test suites
Changes:
- Run KeyWord If is deprecated since Robot
Framework version 5.*, use IF instead
- Keyword name Redfish.login does not follow case convention
- TEMPLATE is in wrong place of Test Case.
Recommended order of elements in Test Cases:
DOCUMENTATION, TAGS, TIMEOUT, SETUP, TEMPLATE, KEYWORD, TEARDOWN
Tested:
- Ran dry-run test
Change-Id: I7b861ea1f90b86f57a483b97d40d3104dc789cdb
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/redfish/account_service/test_ipmi_redfish_user.robot b/redfish/account_service/test_ipmi_redfish_user.robot
index 00176f8..79b0eed 100644
--- a/redfish/account_service/test_ipmi_redfish_user.robot
+++ b/redfish/account_service/test_ipmi_redfish_user.robot
@@ -282,8 +282,9 @@
Run IPMI Standard Command user enable ${random_userid}
# Set given privilege and enable IPMI messaging for newly created user.
- Run Keyword If '${privilege}' != '0'
- ... Set Channel Access ${random_userid} ipmi=on privilege=${privilege}
+ IF '${privilege}' != '0'
+ Set Channel Access ${random_userid} ipmi=on privilege=${privilege}
+ END
RETURN ${random_username} ${random_userid}
@@ -335,5 +336,5 @@
IF ${is_empty} == ${True} BREAK
END
- Run Keyword If '${jj}' == '299' Fail msg=A free user ID could not be found.
+ IF '${jj}' == '299' Fail msg=A free user ID could not be found.
RETURN ${random_userid}