blob: 1a685b160d12d35147e1fad1b529b9d312f7e90d [file] [log] [blame]
Sweta Potthuri4a556022017-11-24 04:03:37 -06001*** Settings ***
Steven Sombar5bc33d62018-02-01 06:57:21 -06002Documentation Test IPMI sensor IDs.
Sweta Potthuri4a556022017-11-24 04:03:37 -06003
4Resource ../../lib/rest_client.robot
5Resource ../../lib/ipmi_client.robot
6Resource ../../lib/openbmc_ffdc.robot
7Resource ../../lib/state_manager.robot
8Library ../../data/model.py
9Resource ../../lib/boot_utils.robot
10Resource ../../lib/utils.robot
11
Sweta Potthuri4a556022017-11-24 04:03:37 -060012Test Teardown Test Teardown Execution
13
14*** Test Cases ***
15
16DIMM Present And Not Present
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060017 [Documentation] Verify the IPMI sensor for DIMM3 present and not present.
Sweta Potthuri4a556022017-11-24 04:03:37 -060018 [Tags] DIMM_Present_And_Not_Present
19
20 # Set the dimm3 Present to 1
21 Run IPMI Command
22 ... 0x04 0x30 0xac 0xa9 0x00 0x40 0x00 0x00 0x00 0x00 0x20 0x00
23 Verify The Attribute
24 ... ${HOST_INVENTORY_URI}system/chassis/motherboard/dimm3 Present ${1}
25
26 # Set the dimm3 Present to 0
27 Run IPMI Command
28 ... 0x04 0x30 0xac 0xa9 0xff 0x00 0x00 0x40 0x00 0x00 0x20 0x00
29 Verify The Attribute
30 ... ${HOST_INVENTORY_URI}system/chassis/motherboard/dimm3 Present ${0}
31
Steven Sombar5bc33d62018-02-01 06:57:21 -060032
Sweta Potthuri4a556022017-11-24 04:03:37 -060033DIMM Functional And Not Functional
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060034 [Documentation] Verify that the DIMM3 is functional.
Sweta Potthuri4a556022017-11-24 04:03:37 -060035 [Tags] DIMM_Functional_And_Not_Functional
36
37 # Set the dimm3 Functional to 0
38 Run IPMI Command
39 ... 0x04 0x30 0xac 0x00 0x00 0x10 0x00 0x00 0x00 0x00 0x20 0x00
40 Verify The Attribute
41 ... ${HOST_INVENTORY_URI}system/chassis/motherboard/dimm3
42 ... Functional ${0}
Sweta Potthuri4a556022017-11-24 04:03:37 -060043 # Set the dimm3 Functional to 1
44 Run IPMI Command
45 ... 0x04 0x30 0xac 0x00 0x00 0x00 0x00 0x10 0x00 0x00 0x20 0x00
46 Verify The Attribute
47 ... ${HOST_INVENTORY_URI}system/chassis/motherboard/dimm3
48 ... Functional ${1}
49
Steven Sombar5bc33d62018-02-01 06:57:21 -060050
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060051CPU Present
52 [Documentation] Verify the IPMI sensor for CPU present.
Sweta Potthuri4a556022017-11-24 04:03:37 -060053
Steven Sombar5bc33d62018-02-01 06:57:21 -060054 # sensor_id component
55 0x5a cpu0
Sweta Potthuri4a556022017-11-24 04:03:37 -060056
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060057 [Template] Check Present Bit
58 [Tags] CPU_Present
Sweta Potthuri4a556022017-11-24 04:03:37 -060059
Steven Sombar5bc33d62018-02-01 06:57:21 -060060
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060061CPU Not Present
62 [Documentation] Verify the IPMI sensor for CPU not present.
Sweta Potthuri4a556022017-11-24 04:03:37 -060063
Steven Sombar5bc33d62018-02-01 06:57:21 -060064 # sensor_id component
65 0x5a cpu0
Sweta Potthuri4a556022017-11-24 04:03:37 -060066
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060067 [Template] Check Not Present Bit
68 [Tags] CPU_Not_Present
Sweta Potthuri4a556022017-11-24 04:03:37 -060069
Steven Sombar5bc33d62018-02-01 06:57:21 -060070
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060071CPU Functional
72 [Documentation] Verify the IPMI sensor for CPU functional.
Sweta Potthuri4a556022017-11-24 04:03:37 -060073
Steven Sombar5bc33d62018-02-01 06:57:21 -060074 # sensor_id component
75 0x5a cpu0
Sweta Potthuri4a556022017-11-24 04:03:37 -060076
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060077 [Template] Check Functional Bit
78 [Tags] CPU_Functional
Sweta Potthuri4a556022017-11-24 04:03:37 -060079
Steven Sombar5bc33d62018-02-01 06:57:21 -060080
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060081CPU Not Functional
82 [Documentation] Verify the IPMI sensor for CPU not functional.
Sweta Potthuri4a556022017-11-24 04:03:37 -060083
Steven Sombar5bc33d62018-02-01 06:57:21 -060084 # sensor_id component
85 0x5a cpu0
Sweta Potthuri4a556022017-11-24 04:03:37 -060086
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060087 [Template] Check Not Functional Bit
88 [Tags] CPU_Not_Functional
Sweta Potthuri4a556022017-11-24 04:03:37 -060089
Steven Sombar5bc33d62018-02-01 06:57:21 -060090
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060091GPU Present
92 [Documentation] Verify the IPMI sensor for GPU present.
Sweta Potthuri4a556022017-11-24 04:03:37 -060093
Steven Sombar5bc33d62018-02-01 06:57:21 -060094 # sensor_id component
95 0xC5 gv100card0
Sweta Potthuri4a556022017-11-24 04:03:37 -060096
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060097 [Template] Check Present Bit
98 [Tags] GPU_Present
Sweta Potthuri4a556022017-11-24 04:03:37 -060099
Steven Sombar5bc33d62018-02-01 06:57:21 -0600100
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600101GPU Not Present
102 [Documentation] Verify the IPMI sensor for GPU not present.
Sweta Potthuri4a556022017-11-24 04:03:37 -0600103
Steven Sombar5bc33d62018-02-01 06:57:21 -0600104 # sensor_id component
105 0xC5 gv100card0
Sweta Potthuri4a556022017-11-24 04:03:37 -0600106
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600107 [Template] Check Not Present Bit
108 [Tags] GPU_Not_Present
109
Steven Sombar5bc33d62018-02-01 06:57:21 -0600110
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600111GPU Functional
112 [Documentation] Verify the IPMI sensor GPU for functional.
113
Steven Sombar5bc33d62018-02-01 06:57:21 -0600114 # sensor_id component
115 0xC5 gv100card0
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600116
117 [Template] Check Functional Bit
118 [Tags] GPU_Functional
119
Steven Sombar5bc33d62018-02-01 06:57:21 -0600120
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600121GPU Not Functional
122 [Documentation] Verify the IPMI sensor GPU for not functional.
123
Steven Sombar5bc33d62018-02-01 06:57:21 -0600124 # sensor_id component
125 0xC5 gv100card0
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600126
127 [Template] Check Not Functional Bit
128 [Tags] GPU_Not_Functional
129
Steven Sombar5bc33d62018-02-01 06:57:21 -0600130
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600131Core Present
132 [Documentation] Verify the IPMI sensor for core present.
133
Steven Sombar5bc33d62018-02-01 06:57:21 -0600134 # sensor_id component
135 0x1e cpu0/core4
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600136
137 [Template] Check Present Bit
138 [Tags] Core_Present
139
Steven Sombar5bc33d62018-02-01 06:57:21 -0600140
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600141Core Not Present
142 [Documentation] Verify the IPMI sensor for core not present.
143
Steven Sombar5bc33d62018-02-01 06:57:21 -0600144 # sensor_id component
145 0x1e cpu0/core4
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600146
147 [Template] Check Not Present Bit
148 [Tags] Core_Not_Present
149
Steven Sombar5bc33d62018-02-01 06:57:21 -0600150
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600151Core Functional
152 [Documentation] Verify the IPMI sensor for core functional.
153
Steven Sombar5bc33d62018-02-01 06:57:21 -0600154 # sensor_id component
155 0x1e cpu0/core4
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600156
157 [Template] Check Functional Bit
158 [Tags] Core_Functional
159
Steven Sombar5bc33d62018-02-01 06:57:21 -0600160
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600161Core Not Functional
162 [Documentation] Verify the IPMI sensor for core not functional.
163
Steven Sombar5bc33d62018-02-01 06:57:21 -0600164 # sensor_id component
165 0x1e cpu0/core4
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600166
167 [Template] Check Not Functional Bit
168 [Tags] Core_Not_Functional
169
Steven Sombar5bc33d62018-02-01 06:57:21 -0600170
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600171# Operating System State Test Cases.
172
173Set BootProgress To OSStart And Verify
174 [Documentation] Set BootProgress To OSStart and verify.
175
176 # BootProgressID BootProgress
177 0x13 ${OS_BOOT_START}
178
179 [Template] Check BootProgress
180 [Tags] Set_BootProgress_To_OSStart_And_Verify
181
Steven Sombar5bc33d62018-02-01 06:57:21 -0600182
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600183Set OperatingSystemState To CBoot And Verify
184 [Documentation] Set Operating System State to "CBoot"
185 ... and verify using REST.
186
187 # OperatingSystemStateID OperatingSystemState
188 0x02 ${OS_BOOT_CBoot}
189
190 [Template] Check OperatingSystemState
191 [Tags] Set_OperatingSystemState_To_CBoot_And_Verify
192
Steven Sombar5bc33d62018-02-01 06:57:21 -0600193
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600194Set OperatingSystemState To PXEBoot And Verify
195 [Documentation] Set Operating System State to "PXEBoot"
196 ... and verify using REST.
197
198 # OperatingSystemStateID OperatingSystemState
199 0x05 ${OS_BOOT_PXE}
200
201 [Template] Check OperatingSystemState
202 [Tags] Set_OperatingSystemState_To_PXEBoot_And_Verify
203
Steven Sombar5bc33d62018-02-01 06:57:21 -0600204
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600205Set OperatingSystemState To BootComplete And Verify
206 [Documentation] Set Operating System State to "BootComplete"
207 ... and verify using REST.
208
209 # OperatingSystemStateID OperatingSystemState
210 0x40 ${OS_BOOT_COMPLETE}
211
212 [Template] Check OperatingSystemState
213 [Tags] Set_OperatingSystemState_To_BootComplete_And_Verify
214
Steven Sombar5bc33d62018-02-01 06:57:21 -0600215
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600216Set OperatingSystemState To CDROMBoot And Verify
217 [Documentation] Set Operating System State to "CDROMBoot"
218 ... and verify using REST.
219
220 # OperatingSystemStateID OperatingSystemState
221 0x10 ${OS_BOOT_CDROM}
222
223 [Template] Check OperatingSystemState
224 [Tags] Set_OperatingSystemState_To_CDROMBoot_And_Verify
225
Steven Sombar5bc33d62018-02-01 06:57:21 -0600226
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600227Set OperatingSystemState To ROMBoot And Verify
228 [Documentation] Set Operating System State to "ROMBoot"
229 ... and verify using REST.
230
231 # OperatingSystemStateID OperatingSystemState
232 0x20 ${OS_BOOT_ROM}
233
234 [Template] Check OperatingSystemState
235 [Tags] Set_OperatingSystemState_To_ROMBoot_And_Verify
236
Steven Sombar5bc33d62018-02-01 06:57:21 -0600237
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600238Set OperatingSystemState To DiagBoot And Verify
239 [Documentation] Set Operating System State to "DiagBoot"
240 ... and verify using REST.
241
242 # OperatingSystemStateID OperatingSystemState
243 0x08 ${OS_BOOT_DiagBoot}
244
245 [Template] Check OperatingSystemState
246 [Tags] Set_OperatingSystemState_To_DiagBoot_And_Verify
247
Steven Sombar5bc33d62018-02-01 06:57:21 -0600248
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600249# Boot Progress Test Cases.
250
251Set BootProgress To MemoryInit And Verify
George Keishinge15ebb92018-01-29 12:42:46 -0600252 [Documentation] Set BootProgress to "MemoryInit" and verify.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600253
254 # BootProgressID BootProgress
255 0x01 ${OS_BOOT_MEM}
256
257 [Template] Check BootProgress
258 [Tags] Set_BootProgress_To_MemoryInit_And_Verify
259
Steven Sombar5bc33d62018-02-01 06:57:21 -0600260
George Keishinge15ebb92018-01-29 12:42:46 -0600261Set BootProgress To MotherboardInit And Verify
262 [Documentation] Set BootProgress to "MotherboardInit" and verify.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600263
264 # BootProgressID BootProgress
265 0x14 ${OS_BOOT_MOTHERBOARD}
266
267 [Template] Check BootProgress
268 [Tags] Set_BootProgress_To_MotherboardInit_And_Verify
269
Steven Sombar5bc33d62018-02-01 06:57:21 -0600270
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600271Set BootProgress To SecondaryProcInit And Verify
George Keishinge15ebb92018-01-29 12:42:46 -0600272 [Documentation] Set BootProgress to "SecondaryProcInit" and verify.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600273
274 # BootProgressID BootProgress
275 0x03 ${OS_BOOT_SECPCI}
276
277 [Template] Check BootProgress
278 [Tags] Set_BootProgress_To_SecondaryProcInit_And_Verify
279
Steven Sombar5bc33d62018-02-01 06:57:21 -0600280
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600281Set BootProgress To PCIinit And Verify
George Keishinge15ebb92018-01-29 12:42:46 -0600282 [Documentation] Set BootProgress to "PCIinit" and verify.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600283
284 #BootProgressID BootProgress
285 0x07 ${OS_BOOT_PCI}
286
287 [Template] Check BootProgress
288 [Tags] Set_BootProgress_To_PCIinit_And_Verify
289
Steven Sombar5bc33d62018-02-01 06:57:21 -0600290
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600291Set BootProgress To Unspecified And Verify
George Keishinge15ebb92018-01-29 12:42:46 -0600292 [Documentation] Set BootProgress to "Unspecified" and verify.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600293
294 # BootProgressID BootProgress
295 0x00 ${OS_BOOT_OFF}
296
297 [Template] Check BootProgress
298 [Tags] Set_BootProgress_To_Unspecified_And_Verify
Sweta Potthuri4a556022017-11-24 04:03:37 -0600299
Steven Sombar5bc33d62018-02-01 06:57:21 -0600300
Sweta Potthuri4a556022017-11-24 04:03:37 -0600301TPM Enable and Disable
302 [Documentation] Enable and disable TPM.
303 [Tags] TPM_Enable_and_Disable
304
305 # Set the TPMEnable to 0
306 Run IPMI Command
307 ... 0x04 0x30 0xD7 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x20 0x00
308 Verify The Attribute ${CONTROL_URI}/host0/TPMEnable TPMEnable ${0}
309
310 # Set the TPMEnable to 1
311 Run IPMI Command
312 ... 0x04 0x30 0xD7 0x00 0x00 0x02 0x00 0x00 0x00 0x00 0x20 0x00
313 Verify The Attribute ${CONTROL_URI}/host0/TPMEnable TPMEnable ${1}
314
Steven Sombar5bc33d62018-02-01 06:57:21 -0600315
Sweta Potthuri4a556022017-11-24 04:03:37 -0600316Autoreboot Enable and Disable
317 [Documentation] Enable and disable Autoreboot.
318 [Tags] Autoreboot_Enable_and_Disable
319
320 # Set the TPMEnable to 0
321 Run IPMI Command
322 ... 0x04 0x30 0xDA 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x20 0x00
323 Verify The Attribute ${CONTROL_URI}/host0/auto_reboot AutoReboot ${0}
324
325 # Set the TPMEnable to 1
326 Run IPMI Command
327 ... 0x04 0x30 0xDA 0x00 0x00 0x02 0x00 0x00 0x00 0x00 0x20 0x00
328 Verify The Attribute ${CONTROL_URI}/host0/auto_reboot AutoReboot ${1}
329
Steven Sombar5bc33d62018-02-01 06:57:21 -0600330
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600331Verify IPMI BT Capabilities Command
332 [Documentation] Verify IPMI BT capability command response.
333 [Tags] Verify_IPMI_BT_Capabilities_Command
334 [Setup] REST Power On
335
336 ${output} = Run IPMI command 0x06 0x36
337 Should Be True "${output}" == " 01 3f 3f 0a 01"
338 ... msg=Incorrect Output.
Sweta Potthuri4a556022017-11-24 04:03:37 -0600339
Steven Sombar5bc33d62018-02-01 06:57:21 -0600340
George Keishinge07bc882018-04-02 13:22:24 -0500341OCC Active Disable And Enable
342 [Documentation] OCC active disable and enable.
343 [Tags] OCC_Active_Disable_And_Enable
344
345 REST Power On stack_mode=skip quiet=1
346
347 # Set the OccActive to 0
348 Run IPMI Command
349 ... 0x04 0x30 0x08 0xa8 0x00 0x01 0x00 0x02 0x00 0x00 0x00 0x00
350 Verify The Attribute ${OPENPOWER_CONTROL}/occ0 OccActive ${0}
351
352 # Set the OccActive to 1
353 Run IPMI Command
354 ... 0x04 0x30 0x08 0xa8 0x00 0x02 0x00 0x01 0x00 0x00 0x00 0x00
355 Verify The Attribute ${OPENPOWER_CONTROL}/occ0 OccActive ${1}
356
357
Sweta Potthuri4a556022017-11-24 04:03:37 -0600358*** Keywords ***
359
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600360Check Present Bit
361 [Documentation] Set the present field to 1 and verify.
Steven Sombar5bc33d62018-02-01 06:57:21 -0600362 [Arguments] ${sensor_id} ${component}
363
364 # Description of argument(s):
365 # sensor_id Corresponding to OperatingSystemState.
366 # component Component name.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600367
368 Run IPMI Command
Steven Sombar5bc33d62018-02-01 06:57:21 -0600369 ... 0x04 0x30 ${sensor_id} 0xa9 0x00 0x80 0x00 0x00 0x00 0x00 0x20 0x00
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600370 Verify The Attribute
Steven Sombar5bc33d62018-02-01 06:57:21 -0600371 ... ${HOST_INVENTORY_URI}system/chassis/motherboard/${component}
372 ... Present ${1}
373
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600374
375Check Not Present Bit
376 [Documentation] Set the present field to 1 and verify.
Steven Sombar5bc33d62018-02-01 06:57:21 -0600377 [Arguments] ${sensor_id} ${component}
378
379 # Description of argument(s):
380 # sensor_id Corresponding to OperatingSystemState.
381 # component Component name.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600382
383 Run IPMI Command
Steven Sombar5bc33d62018-02-01 06:57:21 -0600384 ... 0x04 0x30 ${sensor_id} 0xa9 0x00 0x00 0x00 0x80 0x00 0x00 0x20 0x00
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600385 Verify The Attribute
Steven Sombar5bc33d62018-02-01 06:57:21 -0600386 ... ${HOST_INVENTORY_URI}system/chassis/motherboard/${component}
387 ... Present ${0}
388
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600389
390Check Functional Bit
391 [Documentation] Set the functional to 1 and verify.
Steven Sombar5bc33d62018-02-01 06:57:21 -0600392 [Arguments] ${sensor_id} ${component}
393
394 # Description of argument(s):
395 # sensor_id Corresponding to OperatingSystemState.
396 # component Component name.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600397
398 Run IPMI Command
Steven Sombar5bc33d62018-02-01 06:57:21 -0600399 ... 0x04 0x30 ${sensor_id} 0x00 0x00 0x00 0x00 0x00 0x01 0x00 0x20 0x00
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600400 Verify The Attribute
Steven Sombar5bc33d62018-02-01 06:57:21 -0600401 ... ${HOST_INVENTORY_URI}system/chassis/motherboard/${component}
402 ... Functional ${1}
403
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600404
405Check Not Functional Bit
406 [Documentation] Set the functional to 0 and verify.
Steven Sombar5bc33d62018-02-01 06:57:21 -0600407 [Arguments] ${sensor_id} ${component}
408
409 # Description of argument(s):
410 # sensor_id Corresponding to OperatingSystemState.
411 # component Component name.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600412
413 Run IPMI Command
Steven Sombar5bc33d62018-02-01 06:57:21 -0600414 ... 0x04 0x30 ${sensor_id} 0xa9 0xff 0x00 0x01 0x00 0x00 0x00 0x20 0x00
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600415 Verify The Attribute
Steven Sombar5bc33d62018-02-01 06:57:21 -0600416 ... ${HOST_INVENTORY_URI}system/chassis/motherboard/${component}
417 ... Functional ${0}
418
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600419
420Check OperatingSystemState
421 [Documentation] Set OperatingSystemState and verify.
Steven Sombar5bc33d62018-02-01 06:57:21 -0600422 [Arguments] ${sensor_id} ${OperatingSystemState}
423
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600424 # Description of argument(s):
Steven Sombar5bc33d62018-02-01 06:57:21 -0600425 # sensor_id Corresponding to OperatingSystemState.
426 # OperatingSystemState OperatingSystemState to be set.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600427
428 Run IPMI Command
429 ... 0x04 0x30 0x05 0xa9 0x00 ${sensor_id} 0x00 0x00 0x00 0x00 0x00 0x00
430 ${resp}= Read Attribute ${SYSTEM_STATE_URI}/host0 OperatingSystemState
431 Should Be Equal ${OperatingSystemState} ${resp}
432
Steven Sombar5bc33d62018-02-01 06:57:21 -0600433
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600434Check BootProgress
435 [Documentation] Set the Bootprogress and verify.
436 [Arguments] ${BootProgressID} ${BootProgress}
Steven Sombar5bc33d62018-02-01 06:57:21 -0600437
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600438 # Description of argument(s):
Steven Sombar5bc33d62018-02-01 06:57:21 -0600439 # BootProgressID Corresponding to BootProgress.
440 # BootProgress BootProgress to be set.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600441
442 Run IPMI Command
George Keishingc49b3192018-02-09 02:00:35 -0600443 ... 0x04 0x30 0x03 0xa8 0x00 0x04 0x00 0x00 0x00 0x00 ${BootProgressID} 0x00
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600444 ${resp}= Read Attribute ${SYSTEM_STATE_URI}/host0 BootProgress
445 Should Be Equal ${BootProgress} ${resp}
446
Steven Sombar5bc33d62018-02-01 06:57:21 -0600447
Sweta Potthuri4a556022017-11-24 04:03:37 -0600448Test Teardown Execution
449 [Documentation] Do the post test teardown.
450 ... 1. Capture FFDC on test failure.
451 ... 2. Close all open SSH connections.
452
453 FFDC On Test Case Fail
Sweta Potthuri4a556022017-11-24 04:03:37 -0600454