Verify SEL "Description" and "EntryID" are not empty

Added:
    - Test to check if the SEL entry is not empty.

Note: This is applicable only for public master build. We will
      enable when it's available for internal builds.

Resolves  openbmc/openbmc-test-automation#1347

Change-Id: I67ad105b0301883f8c0d20ffaa9c4714da2600a4
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/extended/test_esel.robot b/extended/test_esel.robot
index a3e4046..1a2178b 100644
--- a/extended/test_esel.robot
+++ b/extended/test_esel.robot
@@ -50,6 +50,43 @@
     Create eSEL
     Verify eSEL Entries
 
+Verify eSEL Description And EntryID Using REST
+    [Documentation]  Create eSEL log and verify "Description" and "EntryID"
+    ...  are not empty via REST.
+    [Tags]  Verify_eSEL_Description_And_EntryID_Using_REST
+
+    # {
+    # "AdditionalData": [
+    #     "CALLOUT_INVENTORY_PATH=",
+    #     "ESEL=00 00 df 00 00 00 00 20 00 04 12 35 6f aa 00 00",
+    #     "_PID=1175"
+    # ],
+    # "Description": "An error was detected with the base platform,
+    #  but was not able to be deciphered. Contact your next level of support.",
+    # "EventID": "FQPSPAA0011M",
+    # "Id": 1,
+    # "Message": "org.open_power.Host.Error.Event",
+    # "Resolved": 0,
+    # "Severity": "xyz.openbmc_project.Logging.Entry.Level.Error",
+    # "Timestamp": 1524233022072,
+    # "associations": [
+    #    [
+    #        "callout",
+    #        "fault",
+    #        ""
+    #    ]
+    # ]
+
+    Create eSEL
+
+    ${elog_entry}=  Get URL List  ${BMC_LOGGING_ENTRY}
+    ${desc}=  Read Attribute  ${elog_entry[0]}  Description
+    Should Not Be Empty  ${desc}  msg=${desc} is not populated.
+
+    ${event_id}=  Read Attribute  ${elog_entry[0]}  EventID
+    Should Not Be Equal  ${event_id}  ${None}
+    ...  msg=${event_id} is populated default "None".
+
 
 Verify Multiple eSEL Using REST
     [Documentation]  Generate multiple eSEL log and verify using REST.
diff --git a/test_lists/skip_test_extended b/test_lists/skip_test_extended
index 2af0025..40a8c63 100644
--- a/test_lists/skip_test_extended
+++ b/test_lists/skip_test_extended
@@ -48,3 +48,5 @@
 -e Stress_BMC_REST_Server
 -e Stress_BMC_SSH_Server
 -e Stress_BMC_IPMI_Server
+# Applicable only for master build.
+-e Verify_eSEL_Description_And_EntryID_Using_REST