Added a test case to verify the predictive error log format
Changes:
- Added one test case to verify the predictive error log format
Tested:
- Ran Verify_Mandatory_Fields_For_Predictive_Errortest cases from the sandbox successfully.
Change-Id: Iba1438764f866da9700d11c05600b82a5570ed29
Signed-off-by: dnirmala <dhurgam.nirmala1@ibm.com>
diff --git a/openpower/pel/test_bmc_pel.robot b/openpower/pel/test_bmc_pel.robot
index c389870..c80c03e 100644
--- a/openpower/pel/test_bmc_pel.robot
+++ b/openpower/pel/test_bmc_pel.robot
@@ -15,7 +15,8 @@
*** Variables ***
@{mandatory_pel_fileds} Private Header User Header Primary SRC Extended User Header Failing MTMS
-
+@{mandatory_Predictive_pel_fileds} Private Header User Header Primary SRC
+... Extended User Header Failing MTMS User Data
*** Test Cases ***
@@ -661,6 +662,22 @@
Run Keyword and Expect Error *PEL not found* Peltool -i ${id}
+Verify Mandatory Fields For Predictive Error
+ [Documentation] Verify mandatory fields of predictive errors from pel information.
+ [Tags] Verify_Mandatory_Fields_For_Predictive_Error
+
+ # Inject predictive error.
+ BMC Execute Command ${CMD_PREDICTIVE_ERROR}
+
+ ${pel_ids}= Get PEL Log Via BMC CLI
+ ${pel_id}= Get From List ${pel_ids} -1
+ ${pel_output}= Peltool -i ${pel_id}
+ # Get all fields in predictive error log.
+ ${pel_sections}= Get Dictionary Keys ${pel_output}
+
+ List Should Contain Sub List ${pel_sections} ${mandatory_Predictive_pel_fileds}
+
+
*** Keywords ***
Error Logging Rotation Policy