Add new SEL test cases

Changes:
    - Added validation for Reserver ID, Most Recent Timestamps,
      Clear SEL and modifications in Add SEL Entry and Reserver ID

Testcases Modified:
          - Verify Reserve SEL
New Testcases:
          - Verify Add SEL Entry For Any Random Sensor
          - Verify IPMI SEL Most Recent Addition Timestamp
          - Verify IPMI SEL Most Recent Erase Timestamp
          - Verify Clear SEL With Invalid Reservation ID
          - Verify Reservation ID Erasure Status
          - Verify Clear SEL After Cold Reset

Verify Add SEL Entry For Any Random Sensor
    - Modified with create SEL by sensor number and type taken i
      from sensor list and sdr get. Verified the result with sel elist last 1

Verify Reserve SEL
    - Added condition to check if the sel entry is empty.

Verify IPMI SEL Most Recent Addition Timestamp
     - Gets Most Recent Addition Timestamp from IPMI Sel Info raw command
       and validate against sel entry date. If no sel entry present, newi
       sel entry will be created and validates the SEL date againt IPMI
       Sel Most Recent Addition Timestamp.

Verify IPMI SEL Most Recent Erase Timestamp
     - Clears the SEL and  validates Most Recent Erase Timestamp from SEL
       Info against bmc current time. Also verifies if Most Recent Addition
       Timestamp is not available.

Verify Clear SEL With Invalid Reservation ID
     - Creates two reservation id, stores first reservation id created and
       tries to clear sel with stored reservation id. Once a new reservationi
       id is created, previous reservation id generated will no longer be valid.

Verify Reservation ID Erasure Status
     - Creates a reservation id, clears the sel using the reservation id created,
       generate a new reservation id, check the erasure status using new reservation id

Verify Clear SEL After Cold Reset
     - Creates a new reservation id, runs cold reset from lanplus, once bmc is booted,
       checks whether the generated reservation id is accessible.

Tested: Run robot ipmi/test_ipmi_sel.robot

Signed-off-by: chithrag <chithrag@ami.com>
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
Change-Id: I3cd71447debaa6ddca05a9d7613e369bea6514b6
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/data/ipmi_raw_cmd_table.py b/data/ipmi_raw_cmd_table.py
index d6e2d33..4433186 100644
--- a/data/ipmi_raw_cmd_table.py
+++ b/data/ipmi_raw_cmd_table.py
@@ -88,13 +88,28 @@
         ],
         'Set_SEL_Time':
         [
-            # raw command, expected output(s), comment
+            # raw command, expected output(s)
             '0x0a 0x49',
             'rsp=0xd5',
             'not supported in present state',
             'rsp=0xc7',
             'Request data length invalid',
-
+        ],
+        'Clear_SEL':
+        [
+            # raw command, expected output(s)
+            "0x0a 0x47",
+            "0x43 0x4c 0x52 0xaa",
+            "sel clear",
+            "Clearing SEL",
+            "rsp=0xc5",
+            "Reservation cancelled or invalid",
+            "0x43 0x4c 0x52 0x00",
+        ],
+        'SEL_info':
+        [
+            # raw command
+            "0x0a 0x40"
         ],
         'Create_SEL':
         [
@@ -102,6 +117,12 @@
             "0x0a 0x44 0x00 0x00 0x02 0x00 0x00 0x00 0x00 0x00 0x00 0x04",
             "0x00 0xa0 0x04 0x07",
         ],
+        'Get_SEL_Entry':
+        [
+            # raw command
+            "0x0a 0x43 0x00 0x00",
+            "0x00 0xff",
+        ],
     },
     'Self_Test_Results':
     {