Test case to verify disk size for host error logged on BMC flash partition
Change-Id: Ie542ed38986b18e1cdacb9add674aa9562657344
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 2d2b343..61dd879 100644
--- a/openpower/pel/test_bmc_pel.robot
+++ b/openpower/pel/test_bmc_pel.robot
@@ -5,6 +5,7 @@
Variables ../../data/pel_variables.py
Resource ../../lib/list_utils.robot
Resource ../../lib/logging_utils.robot
+Resource ../../lib/connection_client.robot
Resource ../../lib/openbmc_ffdc.robot
Test Setup Redfish.Login
@@ -41,6 +42,11 @@
... xyz.openbmc_project.Logging.Create Create ssa{ss} xyz.openbmc_project.Common.Error.InternalFailure
... xyz.openbmc_project.Logging.Entry.Level.Warning 0
+${CMD_UNRECOVERABLE_HOST_ERROR} busctl call xyz.openbmc_project.Logging /xyz/openbmc_project/logging
+... xyz.openbmc_project.Logging.Create Create ssa{ss}
+... xyz.openbmc_project.Host.Error.Event xyz.openbmc_project.Logging.Entry.Level.Error 1
+... RAWPEL /tmp/FILE_NBMC_UNRECOVERABLE
+
@{mandatory_pel_fileds} Private Header User Header Primary SRC Extended User Header Failing MTMS
*** Test Cases ***
@@ -532,6 +538,22 @@
Unrecoverable BMC 1500, Predictive BMC 1500 30
Unrecoverable BMC 1000, Informational BMC 1000, Predictive BMC 1000 45
+
+Verify Error Logging Rotation Policy With HOST Error Logs
+ [Documentation] Verify error logging rotation policy for non bmc error logs.
+ [Tags] Verify_Error_Logging_Rotation_Policy_With_HOST_Error_Logs
+ [Setup] Run Keywords Open Connection for SCP AND scp.Put File ${UNRECOVERABLE_FILE_PATH}
+ ... /tmp/FILE_NBMC_UNRECOVERABLE
+ [Template] Error Logging Rotation Policy
+
+ # Error logs to be created % of total logging space when error
+ # log exceeds max limit.
+ Unrecoverable HOST 3000 30
+ Unrecoverable HOST 1500, Informational BMC 1500 45
+ Unrecoverable HOST 1500, Predictive BMC 1500 60
+ Unrecoverable HOST 1500, Unrecoverable BMC 1500 60
+
+
Verify Reverse Order Of PEL Logs
[Documentation] Verify PEL command to output PEL logs in reverse order.
[Tags] Verify_Reverse_PEL_Logs
@@ -668,9 +690,10 @@
FOR ${i} IN RANGE 0 ${count}
${cmd}= Set Variable If
- ... '${error_severity}' == 'Informational' ${CMD_INFORMATIONAL_ERROR}
- ... '${error_severity}' == 'Predictive' ${CMD_PREDICTIVE_ERROR}
- ... '${error_severity}' == 'Unrecoverable' ${CMD_UNRECOVERABLE_ERROR}
+ ... '${error_severity}' == 'Informational' and '${system_type}' == 'BMC' ${CMD_INFORMATIONAL_ERROR}
+ ... '${error_severity}' == 'Predictive' and '${system_type}' == 'BMC' ${CMD_PREDICTIVE_ERROR}
+ ... '${error_severity}' == 'Unrecoverable' and '${system_type}' == 'BMC' ${CMD_UNRECOVERABLE_ERROR}
+ ... '${error_severity}' == 'Unrecoverable' and '${system_type}' == 'HOST' ${CMD_UNRECOVERABLE_HOST_ERROR}
BMC Execute Command ${cmd}
END