Update system test poll for error to redfish
Change-Id: If7e57fa5c61fd44e58eb02f8d8f5b1428149f737
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 6b999e1..33631b2 100755
--- a/systest/test_bmc_poll_errors.robot
+++ b/systest/test_bmc_poll_errors.robot
@@ -5,6 +5,8 @@
Resource ../lib/openbmc_ffdc.robot
Resource ../lib/resource.robot
Resource ../lib/boot_utils.robot
+Resource ../lib/boot_utils.robot
+Resource ../lib/bmc_redfish_resource.robot
Suite Setup Suite Setup Execution
Test Teardown Post Test Case Execution
@@ -22,6 +24,7 @@
... exist.
[Tags] Poll_BMC_For_Errors
+ Redfish.Login
Repeat Keyword ${POLL_DURATION}
... Run Keywords Enumerate Sensors And Check For Errors
... AND Sleep ${POLL_INTERVAL}
@@ -31,8 +34,7 @@
Enumerate Sensors And Check For Errors
[Documentation] Enumerate and check if there is any error reported.
- ${resp}= OpenBMC Get Request /xyz/openbmc_project/sensors/
- Should Be Equal As Strings ${resp.status_code} ${HTTP_OK}
+ Redfish.Get /redfish/v1/Chassis/chassis/Sensors
Error Logs Should Not Exist
@@ -47,14 +49,16 @@
Should Not Be Empty
... ${OS_PASSWORD} msg=You must provide OS host user password.
- # Boot to OS.
- REST Power On
+ Redfish.Login
+ Redfish Power On
Delete Error Logs
Error Logs Should Not Exist
+
Post Test Case Execution
[Documentation] Do the post test teardown.
... 1. Capture FFDC on test failure.
FFDC On Test Case Fail
+ Redfish.Logout