Move TC from the error log suite to the IPMI suite
Changes:
- Move TC Verify IPMI SEL Event Entries from
test_event_logging.robot to test_ipmi_sel.robot
- Replace count with count + 1
- Added IPMI SEL Clear command to clear the entries
Tested:
- Ran and tested on BMC Environment
Change-Id: Iff31d4e83ba060309174144760bbc576561684b6
Signed-off-by: Vidya-Kalasappanavar <Vidya.Kalasappanavar@ibm.com>
diff --git a/ipmi/test_ipmi_sel.robot b/ipmi/test_ipmi_sel.robot
index 434843b..999b184 100644
--- a/ipmi/test_ipmi_sel.robot
+++ b/ipmi/test_ipmi_sel.robot
@@ -327,6 +327,29 @@
Should Be True ${time_diff} <= 2
+Verify IPMI SEL Event Entries
+ [Documentation] Verify IPMI SEL's entries info.
+ [Tags] Verify_IPMI_SEL_Event_Entries
+ [Setup] Install Tarball For Error Creation
+
+ # Clear all SEL entries using IPMI command.
+ Run IPMI Standard Command sel clear
+
+ # Added a delay for IPMI SEL to clear completely.
+ Sleep 5s
+
+ # Generate error logs of random count.
+ ${count}= Evaluate random.randint(1, 5) modules=random
+ Repeat Keyword ${count} Create Test Error Log
+
+ ${sel_entries_count}= Get IPMI SEL Setting Entries
+
+ # After issuing the IPMI SEL clear command.
+ # There will be one informational SEL entry in the IPMI SEL.
+ # So comparing the IPMI SEL count with this additional single entry.
+ Should Be Equal As Strings ${sel_entries_count} ${count + 1}
+
+
*** Keywords ***
Create User Defined SEL
diff --git a/redfish/systems/eventlog/test_event_logging.robot b/redfish/systems/eventlog/test_event_logging.robot
index d131b1b..498f943 100644
--- a/redfish/systems/eventlog/test_event_logging.robot
+++ b/redfish/systems/eventlog/test_event_logging.robot
@@ -259,18 +259,6 @@
... case_insensitive=True
-Verify IPMI SEL Event Entries
- [Documentation] Verify IPMI SEL's entries info.
- [Tags] Verify_IPMI_SEL_Event_Entries
-
- # Generate error logs of random count.
- ${count}= Evaluate random.randint(1, 5) modules=random
- Repeat Keyword ${count} Create Test Error Log
-
- ${sel_entries_count}= Get IPMI SEL Setting Entries
- Should Be Equal As Strings ${sel_entries_count} ${count}
-
-
Create Test Event Log And Delete
[Documentation] Create an event log and delete it.
[Tags] Create_Test_Event_Log_And_Delete