Fix poll for error and update documentation
Changes:
- Update test suite to use redfish
- Modify keywords and clean up
- Update documentation
Tested:
robot -v OPENBMC_HOST:xx.xx.xx.xx -v POLL_DURATION:1h
-v POLL_INTERVAL:2s systest/test_bmc_poll_errors.robot
Change-Id: Ibc93d33ebf950848a52f6f54bad6a4afbf833844
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/systest/test_bmc_poll_errors.robot b/systest/test_bmc_poll_errors.robot
index e72f636..d028408 100755
--- a/systest/test_bmc_poll_errors.robot
+++ b/systest/test_bmc_poll_errors.robot
@@ -31,18 +31,18 @@
[Tags] Poll_BMC_For_Errors
Redfish.Login
- Repeat Keyword ${POLL_DURATION}
- ... Run Keywords Enumerate Sensors And Check For Errors
- ... AND Sleep ${POLL_INTERVAL}
+ Repeat Keyword ${POLL_DURATION} Perform GET Request And Check For Errors
+
*** Keywords ***
-Enumerate Sensors And Check For Errors
- [Documentation] Enumerate and check if there is any error reported.
+Perform GET Request And Check For Errors
+ [Documentation] Check if there is any error reported.
Redfish.Get /redfish/v1/Chassis/${CHASSIS_ID}/Sensors
- Check For Error Logs ${ESEL_IGNORE_LIST}
+ Event Log Should Not Exist
+ Sleep ${POLL_INTERVAL}
Suite Setup Execution
@@ -56,10 +56,9 @@
... ${OS_PASSWORD} msg=You must provide OS host user password.
Redfish Power On stack_mode=skip
- Redfish.Login
- Delete Error Logs
- Error Logs Should Not Exist
+ Run Keyword And Ignore Error Redfish Purge Event Log
+ Run Keyword And Ignore Error Redfish Delete All BMC Dumps
Post Test Case Execution