blob: d71753c058e30594ff49e41a6572e96b3e4f684c [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
12Test Setup Open Connection And Log In
13Test Teardown Test Teardown Execution
14
15*** Test Cases ***
16
17DIMM Present And Not Present
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060018 [Documentation] Verify the IPMI sensor for DIMM3 present and not present.
Sweta Potthuri4a556022017-11-24 04:03:37 -060019 [Tags] DIMM_Present_And_Not_Present
20
21 # Set the dimm3 Present to 1
22 Run IPMI Command
23 ... 0x04 0x30 0xac 0xa9 0x00 0x40 0x00 0x00 0x00 0x00 0x20 0x00
24 Verify The Attribute
25 ... ${HOST_INVENTORY_URI}system/chassis/motherboard/dimm3 Present ${1}
26
27 # Set the dimm3 Present to 0
28 Run IPMI Command
29 ... 0x04 0x30 0xac 0xa9 0xff 0x00 0x00 0x40 0x00 0x00 0x20 0x00
30 Verify The Attribute
31 ... ${HOST_INVENTORY_URI}system/chassis/motherboard/dimm3 Present ${0}
32
Steven Sombar5bc33d62018-02-01 06:57:21 -060033
Sweta Potthuri4a556022017-11-24 04:03:37 -060034DIMM Functional And Not Functional
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060035 [Documentation] Verify that the DIMM3 is functional.
Sweta Potthuri4a556022017-11-24 04:03:37 -060036 [Tags] DIMM_Functional_And_Not_Functional
37
38 # Set the dimm3 Functional to 0
39 Run IPMI Command
40 ... 0x04 0x30 0xac 0x00 0x00 0x10 0x00 0x00 0x00 0x00 0x20 0x00
41 Verify The Attribute
42 ... ${HOST_INVENTORY_URI}system/chassis/motherboard/dimm3
43 ... Functional ${0}
Sweta Potthuri4a556022017-11-24 04:03:37 -060044 # Set the dimm3 Functional to 1
45 Run IPMI Command
46 ... 0x04 0x30 0xac 0x00 0x00 0x00 0x00 0x10 0x00 0x00 0x20 0x00
47 Verify The Attribute
48 ... ${HOST_INVENTORY_URI}system/chassis/motherboard/dimm3
49 ... Functional ${1}
50
Steven Sombar5bc33d62018-02-01 06:57:21 -060051
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060052CPU Present
53 [Documentation] Verify the IPMI sensor for CPU present.
Sweta Potthuri4a556022017-11-24 04:03:37 -060054
Steven Sombar5bc33d62018-02-01 06:57:21 -060055 # sensor_id component
56 0x5a cpu0
Sweta Potthuri4a556022017-11-24 04:03:37 -060057
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060058 [Template] Check Present Bit
59 [Tags] CPU_Present
Sweta Potthuri4a556022017-11-24 04:03:37 -060060
Steven Sombar5bc33d62018-02-01 06:57:21 -060061
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060062CPU Not Present
63 [Documentation] Verify the IPMI sensor for CPU not present.
Sweta Potthuri4a556022017-11-24 04:03:37 -060064
Steven Sombar5bc33d62018-02-01 06:57:21 -060065 # sensor_id component
66 0x5a cpu0
Sweta Potthuri4a556022017-11-24 04:03:37 -060067
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060068 [Template] Check Not Present Bit
69 [Tags] CPU_Not_Present
Sweta Potthuri4a556022017-11-24 04:03:37 -060070
Steven Sombar5bc33d62018-02-01 06:57:21 -060071
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060072CPU Functional
73 [Documentation] Verify the IPMI sensor for CPU functional.
Sweta Potthuri4a556022017-11-24 04:03:37 -060074
Steven Sombar5bc33d62018-02-01 06:57:21 -060075 # sensor_id component
76 0x5a cpu0
Sweta Potthuri4a556022017-11-24 04:03:37 -060077
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060078 [Template] Check Functional Bit
79 [Tags] CPU_Functional
Sweta Potthuri4a556022017-11-24 04:03:37 -060080
Steven Sombar5bc33d62018-02-01 06:57:21 -060081
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060082CPU Not Functional
83 [Documentation] Verify the IPMI sensor for CPU not functional.
Sweta Potthuri4a556022017-11-24 04:03:37 -060084
Steven Sombar5bc33d62018-02-01 06:57:21 -060085 # sensor_id component
86 0x5a cpu0
Sweta Potthuri4a556022017-11-24 04:03:37 -060087
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060088 [Template] Check Not Functional Bit
89 [Tags] CPU_Not_Functional
Sweta Potthuri4a556022017-11-24 04:03:37 -060090
Steven Sombar5bc33d62018-02-01 06:57:21 -060091
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060092GPU Present
93 [Documentation] Verify the IPMI sensor for GPU present.
Sweta Potthuri4a556022017-11-24 04:03:37 -060094
Steven Sombar5bc33d62018-02-01 06:57:21 -060095 # sensor_id component
96 0xC5 gv100card0
Sweta Potthuri4a556022017-11-24 04:03:37 -060097
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060098 [Template] Check Present Bit
99 [Tags] GPU_Present
Sweta Potthuri4a556022017-11-24 04:03:37 -0600100
Steven Sombar5bc33d62018-02-01 06:57:21 -0600101
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600102GPU Not Present
103 [Documentation] Verify the IPMI sensor for GPU not present.
Sweta Potthuri4a556022017-11-24 04:03:37 -0600104
Steven Sombar5bc33d62018-02-01 06:57:21 -0600105 # sensor_id component
106 0xC5 gv100card0
Sweta Potthuri4a556022017-11-24 04:03:37 -0600107
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600108 [Template] Check Not Present Bit
109 [Tags] GPU_Not_Present
110
Steven Sombar5bc33d62018-02-01 06:57:21 -0600111
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600112GPU Functional
113 [Documentation] Verify the IPMI sensor GPU for functional.
114
Steven Sombar5bc33d62018-02-01 06:57:21 -0600115 # sensor_id component
116 0xC5 gv100card0
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600117
118 [Template] Check Functional Bit
119 [Tags] GPU_Functional
120
Steven Sombar5bc33d62018-02-01 06:57:21 -0600121
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600122GPU Not Functional
123 [Documentation] Verify the IPMI sensor GPU for not functional.
124
Steven Sombar5bc33d62018-02-01 06:57:21 -0600125 # sensor_id component
126 0xC5 gv100card0
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600127
128 [Template] Check Not Functional Bit
129 [Tags] GPU_Not_Functional
130
Steven Sombar5bc33d62018-02-01 06:57:21 -0600131
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600132Core Present
133 [Documentation] Verify the IPMI sensor for core present.
134
Steven Sombar5bc33d62018-02-01 06:57:21 -0600135 # sensor_id component
136 0x1e cpu0/core4
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600137
138 [Template] Check Present Bit
139 [Tags] Core_Present
140
Steven Sombar5bc33d62018-02-01 06:57:21 -0600141
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600142Core Not Present
143 [Documentation] Verify the IPMI sensor for core not present.
144
Steven Sombar5bc33d62018-02-01 06:57:21 -0600145 # sensor_id component
146 0x1e cpu0/core4
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600147
148 [Template] Check Not Present Bit
149 [Tags] Core_Not_Present
150
Steven Sombar5bc33d62018-02-01 06:57:21 -0600151
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600152Core Functional
153 [Documentation] Verify the IPMI sensor for core functional.
154
Steven Sombar5bc33d62018-02-01 06:57:21 -0600155 # sensor_id component
156 0x1e cpu0/core4
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600157
158 [Template] Check Functional Bit
159 [Tags] Core_Functional
160
Steven Sombar5bc33d62018-02-01 06:57:21 -0600161
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600162Core Not Functional
163 [Documentation] Verify the IPMI sensor for core not functional.
164
Steven Sombar5bc33d62018-02-01 06:57:21 -0600165 # sensor_id component
166 0x1e cpu0/core4
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600167
168 [Template] Check Not Functional Bit
169 [Tags] Core_Not_Functional
170
Steven Sombar5bc33d62018-02-01 06:57:21 -0600171
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600172# Operating System State Test Cases.
173
174Set BootProgress To OSStart And Verify
175 [Documentation] Set BootProgress To OSStart and verify.
176
177 # BootProgressID BootProgress
178 0x13 ${OS_BOOT_START}
179
180 [Template] Check BootProgress
181 [Tags] Set_BootProgress_To_OSStart_And_Verify
182
Steven Sombar5bc33d62018-02-01 06:57:21 -0600183
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600184Set OperatingSystemState To CBoot And Verify
185 [Documentation] Set Operating System State to "CBoot"
186 ... and verify using REST.
187
188 # OperatingSystemStateID OperatingSystemState
189 0x02 ${OS_BOOT_CBoot}
190
191 [Template] Check OperatingSystemState
192 [Tags] Set_OperatingSystemState_To_CBoot_And_Verify
193
Steven Sombar5bc33d62018-02-01 06:57:21 -0600194
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600195Set OperatingSystemState To PXEBoot And Verify
196 [Documentation] Set Operating System State to "PXEBoot"
197 ... and verify using REST.
198
199 # OperatingSystemStateID OperatingSystemState
200 0x05 ${OS_BOOT_PXE}
201
202 [Template] Check OperatingSystemState
203 [Tags] Set_OperatingSystemState_To_PXEBoot_And_Verify
204
Steven Sombar5bc33d62018-02-01 06:57:21 -0600205
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600206Set OperatingSystemState To BootComplete And Verify
207 [Documentation] Set Operating System State to "BootComplete"
208 ... and verify using REST.
209
210 # OperatingSystemStateID OperatingSystemState
211 0x40 ${OS_BOOT_COMPLETE}
212
213 [Template] Check OperatingSystemState
214 [Tags] Set_OperatingSystemState_To_BootComplete_And_Verify
215
Steven Sombar5bc33d62018-02-01 06:57:21 -0600216
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600217Set OperatingSystemState To CDROMBoot And Verify
218 [Documentation] Set Operating System State to "CDROMBoot"
219 ... and verify using REST.
220
221 # OperatingSystemStateID OperatingSystemState
222 0x10 ${OS_BOOT_CDROM}
223
224 [Template] Check OperatingSystemState
225 [Tags] Set_OperatingSystemState_To_CDROMBoot_And_Verify
226
Steven Sombar5bc33d62018-02-01 06:57:21 -0600227
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600228Set OperatingSystemState To ROMBoot And Verify
229 [Documentation] Set Operating System State to "ROMBoot"
230 ... and verify using REST.
231
232 # OperatingSystemStateID OperatingSystemState
233 0x20 ${OS_BOOT_ROM}
234
235 [Template] Check OperatingSystemState
236 [Tags] Set_OperatingSystemState_To_ROMBoot_And_Verify
237
Steven Sombar5bc33d62018-02-01 06:57:21 -0600238
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600239Set OperatingSystemState To DiagBoot And Verify
240 [Documentation] Set Operating System State to "DiagBoot"
241 ... and verify using REST.
242
243 # OperatingSystemStateID OperatingSystemState
244 0x08 ${OS_BOOT_DiagBoot}
245
246 [Template] Check OperatingSystemState
247 [Tags] Set_OperatingSystemState_To_DiagBoot_And_Verify
248
Steven Sombar5bc33d62018-02-01 06:57:21 -0600249
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600250# Boot Progress Test Cases.
251
252Set BootProgress To MemoryInit And Verify
George Keishinge15ebb92018-01-29 12:42:46 -0600253 [Documentation] Set BootProgress to "MemoryInit" and verify.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600254
255 # BootProgressID BootProgress
256 0x01 ${OS_BOOT_MEM}
257
258 [Template] Check BootProgress
259 [Tags] Set_BootProgress_To_MemoryInit_And_Verify
260
Steven Sombar5bc33d62018-02-01 06:57:21 -0600261
George Keishinge15ebb92018-01-29 12:42:46 -0600262Set BootProgress To MotherboardInit And Verify
263 [Documentation] Set BootProgress to "MotherboardInit" and verify.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600264
265 # BootProgressID BootProgress
266 0x14 ${OS_BOOT_MOTHERBOARD}
267
268 [Template] Check BootProgress
269 [Tags] Set_BootProgress_To_MotherboardInit_And_Verify
270
Steven Sombar5bc33d62018-02-01 06:57:21 -0600271
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600272Set BootProgress To SecondaryProcInit And Verify
George Keishinge15ebb92018-01-29 12:42:46 -0600273 [Documentation] Set BootProgress to "SecondaryProcInit" and verify.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600274
275 # BootProgressID BootProgress
276 0x03 ${OS_BOOT_SECPCI}
277
278 [Template] Check BootProgress
279 [Tags] Set_BootProgress_To_SecondaryProcInit_And_Verify
280
Steven Sombar5bc33d62018-02-01 06:57:21 -0600281
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600282Set BootProgress To PCIinit And Verify
George Keishinge15ebb92018-01-29 12:42:46 -0600283 [Documentation] Set BootProgress to "PCIinit" and verify.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600284
285 #BootProgressID BootProgress
286 0x07 ${OS_BOOT_PCI}
287
288 [Template] Check BootProgress
289 [Tags] Set_BootProgress_To_PCIinit_And_Verify
290
Steven Sombar5bc33d62018-02-01 06:57:21 -0600291
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600292Set BootProgress To Unspecified And Verify
George Keishinge15ebb92018-01-29 12:42:46 -0600293 [Documentation] Set BootProgress to "Unspecified" and verify.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600294
295 # BootProgressID BootProgress
296 0x00 ${OS_BOOT_OFF}
297
298 [Template] Check BootProgress
299 [Tags] Set_BootProgress_To_Unspecified_And_Verify
Sweta Potthuri4a556022017-11-24 04:03:37 -0600300
Steven Sombar5bc33d62018-02-01 06:57:21 -0600301
Sweta Potthuri4a556022017-11-24 04:03:37 -0600302TPM Enable and Disable
303 [Documentation] Enable and disable TPM.
304 [Tags] TPM_Enable_and_Disable
305
306 # Set the TPMEnable to 0
307 Run IPMI Command
308 ... 0x04 0x30 0xD7 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x20 0x00
309 Verify The Attribute ${CONTROL_URI}/host0/TPMEnable TPMEnable ${0}
310
311 # Set the TPMEnable to 1
312 Run IPMI Command
313 ... 0x04 0x30 0xD7 0x00 0x00 0x02 0x00 0x00 0x00 0x00 0x20 0x00
314 Verify The Attribute ${CONTROL_URI}/host0/TPMEnable TPMEnable ${1}
315
Steven Sombar5bc33d62018-02-01 06:57:21 -0600316
Sweta Potthuri4a556022017-11-24 04:03:37 -0600317Autoreboot Enable and Disable
318 [Documentation] Enable and disable Autoreboot.
319 [Tags] Autoreboot_Enable_and_Disable
320
321 # Set the TPMEnable to 0
322 Run IPMI Command
323 ... 0x04 0x30 0xDA 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x20 0x00
324 Verify The Attribute ${CONTROL_URI}/host0/auto_reboot AutoReboot ${0}
325
326 # Set the TPMEnable to 1
327 Run IPMI Command
328 ... 0x04 0x30 0xDA 0x00 0x00 0x02 0x00 0x00 0x00 0x00 0x20 0x00
329 Verify The Attribute ${CONTROL_URI}/host0/auto_reboot AutoReboot ${1}
330
Steven Sombar5bc33d62018-02-01 06:57:21 -0600331
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600332OccActive Enable And Disable
333 [Documentation] OCC Active Enable And Disable.
334 [Tags] OCC_Active_Enable_And_Disable
Sweta Potthuri4a556022017-11-24 04:03:37 -0600335
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600336 # Set the OccActive to 1
Sweta Potthuri4a556022017-11-24 04:03:37 -0600337 Run IPMI Command
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600338 ... 0x04 0x30 0x08 0xa8 0x00 0x02 0x00 0x01 0x00 0x00 0x00 0x00
339 Verify The Attribute ${OPENPOWER_CONTROL}/occ0 OccActive ${1}
Sweta Potthuri4a556022017-11-24 04:03:37 -0600340
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600341 # Set the OccActive to 0
Sweta Potthuri4a556022017-11-24 04:03:37 -0600342 Run IPMI Command
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600343 ... 0x04 0x30 0x08 0xa8 0x00 0x01 0x00 0x02 0x00 0x00 0x00 0x00
344 Verify The Attribute ${OPENPOWER_CONTROL}/occ0 OccActive ${0}
345
Steven Sombar5bc33d62018-02-01 06:57:21 -0600346
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600347Verify IPMI BT Capabilities Command
348 [Documentation] Verify IPMI BT capability command response.
349 [Tags] Verify_IPMI_BT_Capabilities_Command
350 [Setup] REST Power On
351
352 ${output} = Run IPMI command 0x06 0x36
353 Should Be True "${output}" == " 01 3f 3f 0a 01"
354 ... msg=Incorrect Output.
Sweta Potthuri4a556022017-11-24 04:03:37 -0600355
Steven Sombar5bc33d62018-02-01 06:57:21 -0600356
Sweta Potthuri4a556022017-11-24 04:03:37 -0600357*** Keywords ***
358
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600359Check Present Bit
360 [Documentation] Set the present field to 1 and verify.
Steven Sombar5bc33d62018-02-01 06:57:21 -0600361 [Arguments] ${sensor_id} ${component}
362
363 # Description of argument(s):
364 # sensor_id Corresponding to OperatingSystemState.
365 # component Component name.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600366
367 Run IPMI Command
Steven Sombar5bc33d62018-02-01 06:57:21 -0600368 ... 0x04 0x30 ${sensor_id} 0xa9 0x00 0x80 0x00 0x00 0x00 0x00 0x20 0x00
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600369 Verify The Attribute
Steven Sombar5bc33d62018-02-01 06:57:21 -0600370 ... ${HOST_INVENTORY_URI}system/chassis/motherboard/${component}
371 ... Present ${1}
372
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600373
374Check Not Present Bit
375 [Documentation] Set the present field to 1 and verify.
Steven Sombar5bc33d62018-02-01 06:57:21 -0600376 [Arguments] ${sensor_id} ${component}
377
378 # Description of argument(s):
379 # sensor_id Corresponding to OperatingSystemState.
380 # component Component name.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600381
382 Run IPMI Command
Steven Sombar5bc33d62018-02-01 06:57:21 -0600383 ... 0x04 0x30 ${sensor_id} 0xa9 0x00 0x00 0x00 0x80 0x00 0x00 0x20 0x00
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600384 Verify The Attribute
Steven Sombar5bc33d62018-02-01 06:57:21 -0600385 ... ${HOST_INVENTORY_URI}system/chassis/motherboard/${component}
386 ... Present ${0}
387
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600388
389Check Functional Bit
390 [Documentation] Set the functional to 1 and verify.
Steven Sombar5bc33d62018-02-01 06:57:21 -0600391 [Arguments] ${sensor_id} ${component}
392
393 # Description of argument(s):
394 # sensor_id Corresponding to OperatingSystemState.
395 # component Component name.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600396
397 Run IPMI Command
Steven Sombar5bc33d62018-02-01 06:57:21 -0600398 ... 0x04 0x30 ${sensor_id} 0x00 0x00 0x00 0x00 0x00 0x01 0x00 0x20 0x00
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600399 Verify The Attribute
Steven Sombar5bc33d62018-02-01 06:57:21 -0600400 ... ${HOST_INVENTORY_URI}system/chassis/motherboard/${component}
401 ... Functional ${1}
402
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600403
404Check Not Functional Bit
405 [Documentation] Set the functional to 0 and verify.
Steven Sombar5bc33d62018-02-01 06:57:21 -0600406 [Arguments] ${sensor_id} ${component}
407
408 # Description of argument(s):
409 # sensor_id Corresponding to OperatingSystemState.
410 # component Component name.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600411
412 Run IPMI Command
Steven Sombar5bc33d62018-02-01 06:57:21 -0600413 ... 0x04 0x30 ${sensor_id} 0xa9 0xff 0x00 0x01 0x00 0x00 0x00 0x20 0x00
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600414 Verify The Attribute
Steven Sombar5bc33d62018-02-01 06:57:21 -0600415 ... ${HOST_INVENTORY_URI}system/chassis/motherboard/${component}
416 ... Functional ${0}
417
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600418
419Check OperatingSystemState
420 [Documentation] Set OperatingSystemState and verify.
Steven Sombar5bc33d62018-02-01 06:57:21 -0600421 [Arguments] ${sensor_id} ${OperatingSystemState}
422
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600423 # Description of argument(s):
Steven Sombar5bc33d62018-02-01 06:57:21 -0600424 # sensor_id Corresponding to OperatingSystemState.
425 # OperatingSystemState OperatingSystemState to be set.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600426
427 Run IPMI Command
428 ... 0x04 0x30 0x05 0xa9 0x00 ${sensor_id} 0x00 0x00 0x00 0x00 0x00 0x00
429 ${resp}= Read Attribute ${SYSTEM_STATE_URI}/host0 OperatingSystemState
430 Should Be Equal ${OperatingSystemState} ${resp}
431
Steven Sombar5bc33d62018-02-01 06:57:21 -0600432
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600433Check BootProgress
434 [Documentation] Set the Bootprogress and verify.
435 [Arguments] ${BootProgressID} ${BootProgress}
Steven Sombar5bc33d62018-02-01 06:57:21 -0600436
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600437 # Description of argument(s):
Steven Sombar5bc33d62018-02-01 06:57:21 -0600438 # BootProgressID Corresponding to BootProgress.
439 # BootProgress BootProgress to be set.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600440
441 Run IPMI Command
Steven Sombar5bc33d62018-02-01 06:57:21 -0600442 ... 0x04 0x30 0x03 0xa8 0x00 0x04 0x00 0x00 0x00 0x00
443 ... ${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 -0600448Verify The Attribute
449 [Arguments] ${uri} ${parm} ${value}
Steven Sombar5bc33d62018-02-01 06:57:21 -0600450
Sweta Potthuri4a556022017-11-24 04:03:37 -0600451 # Description of arguments:
Steven Sombar5bc33d62018-02-01 06:57:21 -0600452 # uri URI path.
453 # parm Attribute.
454 # value Output to be compared.
Sweta Potthuri4a556022017-11-24 04:03:37 -0600455
456 ${output}= Read Attribute ${uri} ${parm}
457 Should Be Equal ${value} ${output}
458
Steven Sombar5bc33d62018-02-01 06:57:21 -0600459
Sweta Potthuri4a556022017-11-24 04:03:37 -0600460Test Teardown Execution
461 [Documentation] Do the post test teardown.
462 ... 1. Capture FFDC on test failure.
463 ... 2. Close all open SSH connections.
464
465 FFDC On Test Case Fail
466 Close All Connections
467