Added test case to verify predictive and unrecoverable error
Test cases added:
- Verify Predictable Error Log
- Verify Unrecoverable Error Log
Change-Id: Ia7ac7d6f28fcfba4e6c05ffb216706777bf4a132
Signed-off-by: manashsarma <manashsarma@in.ibm.com>
diff --git a/openpower/pel/test_bmc_pel.robot b/openpower/pel/test_bmc_pel.robot
index 779a900..8585c30 100644
--- a/openpower/pel/test_bmc_pel.robot
+++ b/openpower/pel/test_bmc_pel.robot
@@ -33,6 +33,14 @@
${CMD_INVENTORY_PREFIX} busctl get-property xyz.openbmc_project.Inventory.Manager
... /xyz/openbmc_project/inventory/system/chassis/motherboard
+${CMD_UNRECOVERABLE_ERROR} busctl call xyz.openbmc_project.Logging /xyz/openbmc_project/logging
+... xyz.openbmc_project.Logging.Create Create ssa{ss} xyz.openbmc_project.Common.Error.InternalFailure
+... xyz.openbmc_project.Logging.Entry.Level.Error 0
+
+${CMD_PREDICTIVE_ERROR} busctl call xyz.openbmc_project.Logging /xyz/openbmc_project/logging
+... xyz.openbmc_project.Logging.Create Create ssa{ss} xyz.openbmc_project.Common.Error.InternalFailure
+... xyz.openbmc_project.Logging.Entry.Level.Warning 0
+
@{mandatory_pel_fileds} Private Header User Header Primary SRC Extended User Header Failing MTMS
@@ -456,6 +464,60 @@
Should Contain ${pel_records['${id}']['Sev']} Informational
+Verify Predictable Error Log
+ [Documentation] Create a predictive error and verify.
+ [Tags] Verify_Predictable_Error_Log
+
+ # Create a predictable error log.
+ BMC Execute Command ${CMD_PREDICTIVE_ERROR}
+ ${pel_records}= Peltool -l
+
+ # An example of predictive error log data:
+ # {
+ # "0x5000069E": {
+ # "SRC": "BD8D1002",
+ # "Message": "An application had an internal failure",
+ # "PLID": "0x5000069E",
+ # "CreatorID": "BMC",
+ # "Subsystem": "BMC Firmware",
+ # "Commit Time": "10/14/2020 11:40:07",
+ # "Sev": "Predictive Error",
+ # "CompID": "0x1000"
+ # }
+ # }
+
+ ${pel_ids}= Get PEL Log Via BMC CLI
+ ${id}= Get From List ${pel_ids} -1
+ Should Contain ${pel_records['${id}']['Sev']} Predictive
+
+
+Verify Unrecoverable Error Log
+ [Documentation] Create an unrecoverable error and verify.
+ [Tags] Verify_Unrecoverable_Error_Log
+
+ # Create an internal failure error log.
+ BMC Execute Command ${CMD_UNRECOVERABLE_ERROR}
+ ${pel_records}= Peltool -l
+
+ # An example of unrecoverable error log data:
+ # {
+ # "0x50000CC5": {
+ # "SRC": "BD8D1002",
+ # "Message": "An application had an internal failure",
+ # "PLID": "0x50000CC5",
+ # "CreatorID": "BMC",
+ # "Subsystem": "BMC Firmware",
+ # "Commit Time": "04/01/2020 16:44:55",
+ # "Sev": "Unrecoverable Error",
+ # "CompID": "0x1000"
+ # }
+ # }
+
+ ${pel_ids}= Get PEL Log Via BMC CLI
+ ${id}= Get From List ${pel_ids} -1
+ Should Contain ${pel_records['${id}']['Sev']} Unrecoverable
+
+
*** Keywords ***
Create Test PEL Log