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/test_xit.robot b/redfish/test_xit.robot
index 6bcd13a..318f1bf 100644
--- a/redfish/test_xit.robot
+++ b/redfish/test_xit.robot
@@ -27,9 +27,10 @@
Log To Console ${resp}
- Run Keyword If '${resp.status}' == '${HTTP_OK}'
- ... Should Be Equal As Strings ${resp.dict["Members@odata.count"]} 0
- ... msg=${resp.dict["Members@odata.count"]} dumps exist.
+ IF '${resp.status}' == '${HTTP_OK}'
+ Should Be Equal As Strings ${resp.dict["Members@odata.count"]} 0
+ ... msg=${resp.dict["Members@odata.count"]} dumps exist.
+ END
Check For Regex In Journald ${ERROR_REGEX} error_check=${0} boot=-b filter_string=${SKIP_ERROR}