Added new testcase for Get SDR info and Reserve SDR IPMI Commands
Modified Get SDR info testcase to verify supported commands dynamically,
rather than harcoded values.
Testcase Added:
- Test Reserve SDR repository.
- Verify Reserve SDR repository cmd functionality using get SDR cmd.
- Test Invalid reservation ID using Get SDR command.
- Verify Reserve SDR cmd after BMC reboot.
Tested Run robot ipmi/test_ipmi_sdr.robot
Signed-off-by: Nagarjun B <nagarjunb@ami.com>
Change-Id: I7ac3d23133c42c9823c6cbc4f14d968ecd89b78c
diff --git a/data/ipmi_raw_cmd_table.py b/data/ipmi_raw_cmd_table.py
index 690fba0..7a5cbea 100644
--- a/data/ipmi_raw_cmd_table.py
+++ b/data/ipmi_raw_cmd_table.py
@@ -606,4 +606,43 @@
# 81 - aes_cbc_128
]
},
+ 'SDR':
+ {
+ 'Get':
+ [
+ # Get SDR raw command without Reservation ID.
+ "0x0a 0x23 0x00 0x00 0x00 0x00 0x00 0xff",
+ # Netfunction and command.
+ "0x0a 0x23",
+ # Record ID offset and bytes to read.
+ "0x00 0x00 0x01 0x0f",
+ # Raw command To Get SDR Partial without reservation ID.
+ "0x0a 0x23 0x00 0x00 0x00 0x00 0x01 0x0f"
+ ],
+ 'Reserve SDR Repository':
+ [
+ # raw command, expected output(s), comment
+ "0x0a 0x22",
+ ],
+ 'SDR Repository Info':
+ [
+ # raw command.
+ "0x0a 0x20",
+ ],
+ 'Get SDR allocation Info':
+ [
+ # raw command.
+ "0x0a 0x21"
+ ],
+ 'Delete SDR':
+ [
+ # raw command.
+ "0x0a 0x26"
+ ],
+ 'Partially Add SDR':
+ [
+ # raw command.
+ "0x0a 0x25"
+ ]
+ },
}