Fix elog test
Changes:
1. Keyword fix
2. Use utils "Delete Error logs"
Resolves openbmc/openbmc-test-automation#680
Change-Id: Ic1211aabec7c48994dec80b31177f657c0da6eca
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/extended/test_error_log.robot b/extended/test_error_log.robot
index 9efee7e..b90ea5d 100644
--- a/extended/test_error_log.robot
+++ b/extended/test_error_log.robot
@@ -7,10 +7,10 @@
Resource ../lib/state_manager.robot
Suite Setup Run Keywords Verify logging-test AND
-... Clear Existing Error Logs
+... Delete Error Logs
Test Setup Open Connection And Log In
Test Teardown Close All Connections
-Suite Teardown Clear Existing Error Logs
+Suite Teardown Delete Error Logs
*** Test Cases ***
@@ -72,7 +72,7 @@
# In this test context we are making sure "Resolved" field is "0"
# by default.
- Delete Error logs
+ Delete Error Logs
Create Test Error Log
${resolved}= Read Attribute ${BMC_LOGGING_ENTRY}${1} Resolved
Should Be True ${resolved} == 0
@@ -106,14 +106,14 @@
# "associations": []
# },
- Delete Error logs
+ Delete Error Logs
Create Test Error Log
Create Test Error Log
# The error log generated is associated with the epoc time and unique
# for every error and in increasing time stamp.
${time_stamp1}= Read Attribute ${BMC_LOGGING_ENTRY}${1} Timestamp
${time_stamp2}= Read Attribute ${BMC_LOGGING_ENTRY}${2} Timestamp
- Should Be True ${time_stamp2} > ${time_stamp1}
+ Should Be True ${time_stamp2} > ${time_stamp1}
Create Test Error Log And Delete
[Documentation] Create an error log and delete it.
@@ -196,6 +196,6 @@
Delete Error Logs And Verify
[Documentation] Delete all error logs and verify.
- Delete Error logs
+ Delete Error Logs
${resp}= OpenBMC Get Request ${BMC_LOGGING_ENTRY}/list
Should Be Equal As Strings ${resp.status_code} ${HTTP_NOT_FOUND}