blob: f260df8f6694ec86544ac90422de559033aed448 [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.
George Keishing5abfe602018-07-05 11:54:37 -050053 [Tags] CPU_Present
54 [Template] Check Present Bit
Sweta Potthuri4a556022017-11-24 04:03:37 -060055
Steven Sombar5bc33d62018-02-01 06:57:21 -060056 # sensor_id component
57 0x5a cpu0
Sweta Potthuri4a556022017-11-24 04:03:37 -060058
Steven Sombar5bc33d62018-02-01 06:57:21 -060059
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060060CPU Not Present
61 [Documentation] Verify the IPMI sensor for CPU not present.
George Keishing5abfe602018-07-05 11:54:37 -050062 [Tags] CPU_Not_Present
63 [Template] Check Not Present Bit
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
Steven Sombar5bc33d62018-02-01 06:57:21 -060068
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060069CPU Functional
70 [Documentation] Verify the IPMI sensor for CPU functional.
George Keishing5abfe602018-07-05 11:54:37 -050071 [Tags] CPU_Functional
72 [Template] Check Functional Bit
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
Steven Sombar5bc33d62018-02-01 06:57:21 -060077
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060078CPU Not Functional
79 [Documentation] Verify the IPMI sensor for CPU not functional.
George Keishing5abfe602018-07-05 11:54:37 -050080 [Tags] CPU_Not_Functional
81 [Template] Check Not Functional Bit
Sweta Potthuri4a556022017-11-24 04:03:37 -060082
Steven Sombar5bc33d62018-02-01 06:57:21 -060083 # sensor_id component
84 0x5a cpu0
Sweta Potthuri4a556022017-11-24 04:03:37 -060085
Steven Sombar5bc33d62018-02-01 06:57:21 -060086
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060087GPU Present
88 [Documentation] Verify the IPMI sensor for GPU present.
George Keishing5abfe602018-07-05 11:54:37 -050089 [Tags] GPU_Present
90 [Template] Check Present Bit
Sweta Potthuri4a556022017-11-24 04:03:37 -060091
Steven Sombar5bc33d62018-02-01 06:57:21 -060092 # sensor_id component
93 0xC5 gv100card0
Sweta Potthuri4a556022017-11-24 04:03:37 -060094
Steven Sombar5bc33d62018-02-01 06:57:21 -060095
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060096GPU Not Present
97 [Documentation] Verify the IPMI sensor for GPU not present.
George Keishing5abfe602018-07-05 11:54:37 -050098 [Tags] GPU_Not_Present
99 [Template] Check Not Present Bit
Sweta Potthuri4a556022017-11-24 04:03:37 -0600100
Steven Sombar5bc33d62018-02-01 06:57:21 -0600101 # sensor_id component
102 0xC5 gv100card0
Sweta Potthuri4a556022017-11-24 04:03:37 -0600103
Steven Sombar5bc33d62018-02-01 06:57:21 -0600104
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600105GPU Functional
106 [Documentation] Verify the IPMI sensor GPU for functional.
George Keishing5abfe602018-07-05 11:54:37 -0500107 [Tags] GPU_Functional
108 [Template] Check Functional Bit
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600109
Steven Sombar5bc33d62018-02-01 06:57:21 -0600110 # sensor_id component
111 0xC5 gv100card0
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600112
Steven Sombar5bc33d62018-02-01 06:57:21 -0600113
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600114GPU Not Functional
115 [Documentation] Verify the IPMI sensor GPU for not functional.
George Keishing5abfe602018-07-05 11:54:37 -0500116 [Tags] GPU_Not_Functional
117 [Template] Check Not Functional Bit
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600118
Steven Sombar5bc33d62018-02-01 06:57:21 -0600119 # sensor_id component
120 0xC5 gv100card0
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600121
Steven Sombar5bc33d62018-02-01 06:57:21 -0600122
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600123Core Present
124 [Documentation] Verify the IPMI sensor for core present.
George Keishing5abfe602018-07-05 11:54:37 -0500125 [Tags] Core_Present
126 [Template] Check Present Bit
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600127
Steven Sombar5bc33d62018-02-01 06:57:21 -0600128 # sensor_id component
129 0x1e cpu0/core4
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600130
Steven Sombar5bc33d62018-02-01 06:57:21 -0600131
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600132Core Not Present
133 [Documentation] Verify the IPMI sensor for core not present.
George Keishing5abfe602018-07-05 11:54:37 -0500134 [Tags] Core_Not_Present
135 [Template] Check Not Present Bit
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600136
Steven Sombar5bc33d62018-02-01 06:57:21 -0600137 # sensor_id component
138 0x1e cpu0/core4
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600139
Steven Sombar5bc33d62018-02-01 06:57:21 -0600140
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600141Core Functional
142 [Documentation] Verify the IPMI sensor for core functional.
George Keishing5abfe602018-07-05 11:54:37 -0500143 [Tags] Core_Functional
144 [Template] Check Functional Bit
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600145
Steven Sombar5bc33d62018-02-01 06:57:21 -0600146 # sensor_id component
147 0x1e cpu0/core4
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600148
Steven Sombar5bc33d62018-02-01 06:57:21 -0600149
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600150Core Not Functional
151 [Documentation] Verify the IPMI sensor for core not functional.
George Keishing5abfe602018-07-05 11:54:37 -0500152 [Tags] Core_Not_Functional
153 [Template] Check Not Functional Bit
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600154
Steven Sombar5bc33d62018-02-01 06:57:21 -0600155 # sensor_id component
156 0x1e cpu0/core4
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600157
Steven Sombar5bc33d62018-02-01 06:57:21 -0600158
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600159# Operating System State Test Cases.
160
161Set BootProgress To OSStart And Verify
162 [Documentation] Set BootProgress To OSStart and verify.
George Keishing5abfe602018-07-05 11:54:37 -0500163 [Tags] Set_BootProgress_To_OSStart_And_Verify
164 [Template] Check BootProgress
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600165
166 # BootProgressID BootProgress
167 0x13 ${OS_BOOT_START}
168
Steven Sombar5bc33d62018-02-01 06:57:21 -0600169
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600170Set OperatingSystemState To CBoot And Verify
171 [Documentation] Set Operating System State to "CBoot"
172 ... and verify using REST.
George Keishing5abfe602018-07-05 11:54:37 -0500173 [Tags] Set_OperatingSystemState_To_CBoot_And_Verify
174 [Template] Check OperatingSystemState
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600175
176 # OperatingSystemStateID OperatingSystemState
177 0x02 ${OS_BOOT_CBoot}
178
Steven Sombar5bc33d62018-02-01 06:57:21 -0600179
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600180Set OperatingSystemState To PXEBoot And Verify
181 [Documentation] Set Operating System State to "PXEBoot"
182 ... and verify using REST.
George Keishing5abfe602018-07-05 11:54:37 -0500183 [Tags] Set_OperatingSystemState_To_PXEBoot_And_Verify
184 [Template] Check OperatingSystemState
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600185
186 # OperatingSystemStateID OperatingSystemState
187 0x05 ${OS_BOOT_PXE}
188
Steven Sombar5bc33d62018-02-01 06:57:21 -0600189
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600190Set OperatingSystemState To BootComplete And Verify
191 [Documentation] Set Operating System State to "BootComplete"
192 ... and verify using REST.
George Keishing5abfe602018-07-05 11:54:37 -0500193 [Tags] Set_OperatingSystemState_To_BootComplete_And_Verify
194 [Template] Check OperatingSystemState
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600195
196 # OperatingSystemStateID OperatingSystemState
197 0x40 ${OS_BOOT_COMPLETE}
198
Steven Sombar5bc33d62018-02-01 06:57:21 -0600199
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600200Set OperatingSystemState To CDROMBoot And Verify
201 [Documentation] Set Operating System State to "CDROMBoot"
202 ... and verify using REST.
George Keishing5abfe602018-07-05 11:54:37 -0500203 [Tags] Set_OperatingSystemState_To_CDROMBoot_And_Verify
204 [Template] Check OperatingSystemState
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600205
206 # OperatingSystemStateID OperatingSystemState
207 0x10 ${OS_BOOT_CDROM}
208
Steven Sombar5bc33d62018-02-01 06:57:21 -0600209
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600210Set OperatingSystemState To ROMBoot And Verify
211 [Documentation] Set Operating System State to "ROMBoot"
212 ... and verify using REST.
George Keishing5abfe602018-07-05 11:54:37 -0500213 [Tags] Set_OperatingSystemState_To_ROMBoot_And_Verify
214 [Template] Check OperatingSystemState
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600215
216 # OperatingSystemStateID OperatingSystemState
217 0x20 ${OS_BOOT_ROM}
218
Steven Sombar5bc33d62018-02-01 06:57:21 -0600219
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600220Set OperatingSystemState To DiagBoot And Verify
221 [Documentation] Set Operating System State to "DiagBoot"
222 ... and verify using REST.
George Keishing5abfe602018-07-05 11:54:37 -0500223 [Tags] Set_OperatingSystemState_To_DiagBoot_And_Verify
224 [Template] Check OperatingSystemState
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600225
226 # OperatingSystemStateID OperatingSystemState
227 0x08 ${OS_BOOT_DiagBoot}
228
Steven Sombar5bc33d62018-02-01 06:57:21 -0600229
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600230# Boot Progress Test Cases.
231
232Set BootProgress To MemoryInit And Verify
George Keishinge15ebb92018-01-29 12:42:46 -0600233 [Documentation] Set BootProgress to "MemoryInit" and verify.
George Keishing5abfe602018-07-05 11:54:37 -0500234 [Tags] Set_BootProgress_To_MemoryInit_And_Verify
235 [Template] Check BootProgress
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600236
237 # BootProgressID BootProgress
238 0x01 ${OS_BOOT_MEM}
239
Steven Sombar5bc33d62018-02-01 06:57:21 -0600240
George Keishinge15ebb92018-01-29 12:42:46 -0600241Set BootProgress To MotherboardInit And Verify
242 [Documentation] Set BootProgress to "MotherboardInit" and verify.
George Keishing5abfe602018-07-05 11:54:37 -0500243 [Tags] Set_BootProgress_To_MotherboardInit_And_Verify
244 [Template] Check BootProgress
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600245
246 # BootProgressID BootProgress
247 0x14 ${OS_BOOT_MOTHERBOARD}
248
Steven Sombar5bc33d62018-02-01 06:57:21 -0600249
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600250Set BootProgress To SecondaryProcInit And Verify
George Keishinge15ebb92018-01-29 12:42:46 -0600251 [Documentation] Set BootProgress to "SecondaryProcInit" and verify.
George Keishing5abfe602018-07-05 11:54:37 -0500252 [Tags] Set_BootProgress_To_SecondaryProcInit_And_Verify
253 [Template] Check BootProgress
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600254
255 # BootProgressID BootProgress
256 0x03 ${OS_BOOT_SECPCI}
257
Steven Sombar5bc33d62018-02-01 06:57:21 -0600258
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600259Set BootProgress To PCIinit And Verify
George Keishinge15ebb92018-01-29 12:42:46 -0600260 [Documentation] Set BootProgress to "PCIinit" and verify.
George Keishing5abfe602018-07-05 11:54:37 -0500261 [Tags] Set_BootProgress_To_PCIinit_And_Verify
262 [Template] Check BootProgress
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600263
264 #BootProgressID BootProgress
265 0x07 ${OS_BOOT_PCI}
266
Steven Sombar5bc33d62018-02-01 06:57:21 -0600267
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600268Set BootProgress To Unspecified And Verify
George Keishinge15ebb92018-01-29 12:42:46 -0600269 [Documentation] Set BootProgress to "Unspecified" and verify.
George Keishing5abfe602018-07-05 11:54:37 -0500270 [Tags] Set_BootProgress_To_Unspecified_And_Verify
271 [Template] Check BootProgress
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600272
273 # BootProgressID BootProgress
274 0x00 ${OS_BOOT_OFF}
275
Steven Sombar5bc33d62018-02-01 06:57:21 -0600276
Sweta Potthuri4a556022017-11-24 04:03:37 -0600277TPM Enable and Disable
278 [Documentation] Enable and disable TPM.
279 [Tags] TPM_Enable_and_Disable
280
281 # Set the TPMEnable to 0
282 Run IPMI Command
283 ... 0x04 0x30 0xD7 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x20 0x00
284 Verify The Attribute ${CONTROL_URI}/host0/TPMEnable TPMEnable ${0}
285
286 # Set the TPMEnable to 1
287 Run IPMI Command
288 ... 0x04 0x30 0xD7 0x00 0x00 0x02 0x00 0x00 0x00 0x00 0x20 0x00
289 Verify The Attribute ${CONTROL_URI}/host0/TPMEnable TPMEnable ${1}
290
Steven Sombar5bc33d62018-02-01 06:57:21 -0600291
Sweta Potthuri4a556022017-11-24 04:03:37 -0600292Autoreboot Enable and Disable
293 [Documentation] Enable and disable Autoreboot.
294 [Tags] Autoreboot_Enable_and_Disable
295
296 # Set the TPMEnable to 0
297 Run IPMI Command
298 ... 0x04 0x30 0xDA 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x20 0x00
299 Verify The Attribute ${CONTROL_URI}/host0/auto_reboot AutoReboot ${0}
300
301 # Set the TPMEnable to 1
302 Run IPMI Command
303 ... 0x04 0x30 0xDA 0x00 0x00 0x02 0x00 0x00 0x00 0x00 0x20 0x00
304 Verify The Attribute ${CONTROL_URI}/host0/auto_reboot AutoReboot ${1}
305
Steven Sombar5bc33d62018-02-01 06:57:21 -0600306
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600307Verify IPMI BT Capabilities Command
308 [Documentation] Verify IPMI BT capability command response.
309 [Tags] Verify_IPMI_BT_Capabilities_Command
George Keishingb8fac4f2018-07-19 10:52:02 -0500310 [Setup] Run Keywords REST Hard Power Off AND REST Power On
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600311
312 ${output} = Run IPMI command 0x06 0x36
313 Should Be True "${output}" == " 01 3f 3f 0a 01"
314 ... msg=Incorrect Output.
Sweta Potthuri4a556022017-11-24 04:03:37 -0600315
Steven Sombar5bc33d62018-02-01 06:57:21 -0600316
George Keishinge07bc882018-04-02 13:22:24 -0500317OCC Active Disable And Enable
318 [Documentation] OCC active disable and enable.
319 [Tags] OCC_Active_Disable_And_Enable
320
321 REST Power On stack_mode=skip quiet=1
322
323 # Set the OccActive to 0
324 Run IPMI Command
325 ... 0x04 0x30 0x08 0xa8 0x00 0x01 0x00 0x02 0x00 0x00 0x00 0x00
326 Verify The Attribute ${OPENPOWER_CONTROL}/occ0 OccActive ${0}
327
328 # Set the OccActive to 1
329 Run IPMI Command
330 ... 0x04 0x30 0x08 0xa8 0x00 0x02 0x00 0x01 0x00 0x00 0x00 0x00
331 Verify The Attribute ${OPENPOWER_CONTROL}/occ0 OccActive ${1}
332
333
Sweta Potthuri4a556022017-11-24 04:03:37 -0600334*** Keywords ***
335
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600336Check Present Bit
337 [Documentation] Set the present field to 1 and verify.
Steven Sombar5bc33d62018-02-01 06:57:21 -0600338 [Arguments] ${sensor_id} ${component}
339
340 # Description of argument(s):
341 # sensor_id Corresponding to OperatingSystemState.
342 # component Component name.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600343
344 Run IPMI Command
Steven Sombar5bc33d62018-02-01 06:57:21 -0600345 ... 0x04 0x30 ${sensor_id} 0xa9 0x00 0x80 0x00 0x00 0x00 0x00 0x20 0x00
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600346 Verify The Attribute
Steven Sombar5bc33d62018-02-01 06:57:21 -0600347 ... ${HOST_INVENTORY_URI}system/chassis/motherboard/${component}
348 ... Present ${1}
349
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600350
351Check Not Present Bit
352 [Documentation] Set the present field to 1 and verify.
Steven Sombar5bc33d62018-02-01 06:57:21 -0600353 [Arguments] ${sensor_id} ${component}
354
355 # Description of argument(s):
356 # sensor_id Corresponding to OperatingSystemState.
357 # component Component name.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600358
359 Run IPMI Command
Steven Sombar5bc33d62018-02-01 06:57:21 -0600360 ... 0x04 0x30 ${sensor_id} 0xa9 0x00 0x00 0x00 0x80 0x00 0x00 0x20 0x00
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600361 Verify The Attribute
Steven Sombar5bc33d62018-02-01 06:57:21 -0600362 ... ${HOST_INVENTORY_URI}system/chassis/motherboard/${component}
363 ... Present ${0}
364
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600365
366Check Functional Bit
367 [Documentation] Set the functional to 1 and verify.
Steven Sombar5bc33d62018-02-01 06:57:21 -0600368 [Arguments] ${sensor_id} ${component}
369
370 # Description of argument(s):
371 # sensor_id Corresponding to OperatingSystemState.
372 # component Component name.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600373
374 Run IPMI Command
Steven Sombar5bc33d62018-02-01 06:57:21 -0600375 ... 0x04 0x30 ${sensor_id} 0x00 0x00 0x00 0x00 0x00 0x01 0x00 0x20 0x00
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600376 Verify The Attribute
Steven Sombar5bc33d62018-02-01 06:57:21 -0600377 ... ${HOST_INVENTORY_URI}system/chassis/motherboard/${component}
378 ... Functional ${1}
379
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600380
381Check Not Functional Bit
382 [Documentation] Set the functional to 0 and verify.
Steven Sombar5bc33d62018-02-01 06:57:21 -0600383 [Arguments] ${sensor_id} ${component}
384
385 # Description of argument(s):
386 # sensor_id Corresponding to OperatingSystemState.
387 # component Component name.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600388
389 Run IPMI Command
Steven Sombar5bc33d62018-02-01 06:57:21 -0600390 ... 0x04 0x30 ${sensor_id} 0xa9 0xff 0x00 0x01 0x00 0x00 0x00 0x20 0x00
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600391 Verify The Attribute
Steven Sombar5bc33d62018-02-01 06:57:21 -0600392 ... ${HOST_INVENTORY_URI}system/chassis/motherboard/${component}
393 ... Functional ${0}
394
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600395
396Check OperatingSystemState
397 [Documentation] Set OperatingSystemState and verify.
Steven Sombar5bc33d62018-02-01 06:57:21 -0600398 [Arguments] ${sensor_id} ${OperatingSystemState}
399
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600400 # Description of argument(s):
Steven Sombar5bc33d62018-02-01 06:57:21 -0600401 # sensor_id Corresponding to OperatingSystemState.
402 # OperatingSystemState OperatingSystemState to be set.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600403
404 Run IPMI Command
405 ... 0x04 0x30 0x05 0xa9 0x00 ${sensor_id} 0x00 0x00 0x00 0x00 0x00 0x00
406 ${resp}= Read Attribute ${SYSTEM_STATE_URI}/host0 OperatingSystemState
407 Should Be Equal ${OperatingSystemState} ${resp}
408
Steven Sombar5bc33d62018-02-01 06:57:21 -0600409
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600410Check BootProgress
411 [Documentation] Set the Bootprogress and verify.
412 [Arguments] ${BootProgressID} ${BootProgress}
Steven Sombar5bc33d62018-02-01 06:57:21 -0600413
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600414 # Description of argument(s):
Steven Sombar5bc33d62018-02-01 06:57:21 -0600415 # BootProgressID Corresponding to BootProgress.
416 # BootProgress BootProgress to be set.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600417
418 Run IPMI Command
George Keishingc49b3192018-02-09 02:00:35 -0600419 ... 0x04 0x30 0x03 0xa8 0x00 0x04 0x00 0x00 0x00 0x00 ${BootProgressID} 0x00
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600420 ${resp}= Read Attribute ${SYSTEM_STATE_URI}/host0 BootProgress
421 Should Be Equal ${BootProgress} ${resp}
422
Steven Sombar5bc33d62018-02-01 06:57:21 -0600423
Sweta Potthuri4a556022017-11-24 04:03:37 -0600424Test Teardown Execution
425 [Documentation] Do the post test teardown.
426 ... 1. Capture FFDC on test failure.
427 ... 2. Close all open SSH connections.
428
429 FFDC On Test Case Fail
Sweta Potthuri4a556022017-11-24 04:03:37 -0600430