Update raw command string which generates eSEL
Update the ipmi raw command which creates an eSEL.
Update the expected count when checking for multiple eSELs.
Resolves openbmc/openbmc-test-automation#1639
Change-Id: I5cf61b1fc9b9ae00fcc562fea29e9798fc9ba4d0
Signed-off-by: Steven Sombar <ssombar@us.ibm.com>
diff --git a/extended/test_esel.robot b/extended/test_esel.robot
index e45dbf0..f2bbea5 100644
--- a/extended/test_esel.robot
+++ b/extended/test_esel.robot
@@ -35,6 +35,7 @@
${resp}= OpenBMC Get Request ${BMC_LOGGING_ENTRY}list
Should Be Equal As Strings ${resp.status_code} ${HTTP_OK}
+
Verify eSEL Entries Using REST
[Documentation] Verify that eSEL entries have data.
[Tags] Verify_eSEL_Entries_Using_REST
@@ -42,6 +43,7 @@
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.
@@ -87,8 +89,9 @@
Create eSEL
Create eSEL
${entries}= Count eSEL Entries
- # 1 eSEL creates 1 error log and 1 association.
- Should Be Equal As Integers ${entries} ${4}
+ Should Be Equal As Integers ${entries} ${2}
+ ... msg=Expecting 2 eSELs but found ${entries}.
+
Check eSEL AdditionalData
[Documentation] Generate eSEL log and verify AdditionalData is
@@ -109,6 +112,7 @@
# }
Should Not Be Empty ${jsondata["data"]["AdditionalData"]}
+
Test Wrong Reservation_ID
[Documentation] This testcase is to test BMC can handle multi-requestor's
... oem partial add command with incorrect reservation id.
diff --git a/lib/esel_utils.robot b/lib/esel_utils.robot
index 7f079b8..35d61c1 100755
--- a/lib/esel_utils.robot
+++ b/lib/esel_utils.robot
@@ -13,7 +13,7 @@
${RESERVE_ID} raw 0x0a 0x42
${RAW_SUFFIX} 0x00 0x00 0x00 0x00 0x00 0x01 0x00 0x00
-... 0xdf 0x00 0x00 0x00 0x00 0x20 0x00 0x04 0x12 0x35 0x6f 0xaa 0x00 0x00
+... 0xdf 0x00 0x00 0x00 0x00 0x20 0x00 0x04 0x12 0x65 0x6f 0xaa 0x00 0x00
${RAW_SEL_COMMIT} raw 0x0a 0x44 0x00 0x00 0x02 0x00 0x00 0x00 0x00 0x20
... 0x00 0x04 0x12 0xA6 0x6f 0x02 0x00 0x01