Added a test case to Verify_Mandatory_Fields_For_Informational_Error

Changes: - Added one test case to Verify Mandatory Fields For Informational Error
Tested: - Ran Verify_Mandatory_Fields_For_Informational_Error testcase from the sandbox successfully.
Change-Id: I8b0153c2239c774feddfd9a50f5ad3bc39a4521c
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 c80c03e..877a2f8 100644
--- a/openpower/pel/test_bmc_pel.robot
+++ b/openpower/pel/test_bmc_pel.robot
@@ -17,6 +17,8 @@
 @{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
+@{Mandatory_Informational_Pel_Fields}  Private Header  User Header  Primary SRC
+...  Extended User Header  User Data
 
 *** Test Cases ***
 
@@ -678,6 +680,26 @@
     List Should Contain Sub List  ${pel_sections}  ${mandatory_Predictive_pel_fileds}
 
 
+Verify Mandatory Fields For Informational Error
+    [Documentation]  Verify mandatory fields of informational error from pel information.
+    [Tags]  Verify_Mandatory_Fields_For_Informational_Error
+
+    # Inject informational error.
+    BMC Execute Command  ${CMD_INFORMATIONAL_ERROR}
+    ${pel_records}=  Peltool  -lfh
+
+    ${ids}=  Get Dictionary Keys  ${pel_records}
+    ${pel_id}=  Get From List  ${ids}  -1
+    ${pel_output}=  Peltool  -i ${pel_id}
+
+    # Get all fields in the informational error log.
+    ${pel_sections}=  Get Dictionary Keys  ${pel_output}
+    FOR  ${section}  IN  @{Mandatory_Informational_Pel_Fields}
+        ${contains}=  Evaluate  "${section}" in "${pel_sections}"
+        Should Be True  ${contains}
+    END
+
+
 *** Keywords ***
 
 Error Logging Rotation Policy