blob: 361f9774efefd6a256901726f9a3490919450bac [file] [log] [blame]
Michael Walsh800b3922017-05-05 15:30:30 -05001*** Settings ***
2Documentation This module provides one wrapper keyword for each kind of boot
3... test supported by obmc_boot_test.py.
4
5Resource ../extended/obmc_boot_test_resource.robot
6
7*** Keywords ***
Michael Walsh800b3922017-05-05 15:30:30 -05008REST Power On
9 [Documentation] Do "REST Power On" boot test.
Michael Walshff340002017-08-29 11:18:27 -050010 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -050011
Michael Walshff340002017-08-29 11:18:27 -050012 # Description of argument(s):
13 # stack_mode If stack_mode is set to "skip", each test
14 # specified in the boot_stack is only
15 # performed if the machine is not already in
16 # the state that would normally result from
17 # running the given boot test. Otherwise,
18 # the test is skipped. If stack_mode is set
19 # to "normal", all tests from the boot_stack
20 # are performed. "skip" mode is useful when
21 # you simply want the machine in a desired
22 # state. The default value is the global
23 # value of "${stack_mode}"
24 # quiet If this parameter is set to ${1}, this
25 # keyword will print only essential
26 # information. The default value is the
27 # global value of "${quiet}"
28
29 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=REST Power On
30 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
31 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -050032
Michael Walsh800b3922017-05-05 15:30:30 -050033
Michael Walsh287a0032019-02-14 18:00:20 -060034Redfish Power On
35 [Documentation] Do "Redfish Power On" boot test.
36 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
37
38 # Description of argument(s):
39 # stack_mode If stack_mode is set to "skip", each test
40 # specified in the boot_stack is only
41 # performed if the machine is not already in
42 # the state that would normally result from
43 # running the given boot test. Otherwise,
44 # the test is skipped. If stack_mode is set
45 # to "normal", all tests from the boot_stack
46 # are performed. "skip" mode is useful when
47 # you simply want the machine in a desired
48 # state. The default value is the global
49 # value of "${stack_mode}"
50 # quiet If this parameter is set to ${1}, this
51 # keyword will print only essential
52 # information. The default value is the
53 # global value of "${quiet}"
54
55 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=Redfish Power On
56 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
57 Run Key U ${cmd_buf}
58
59
Michael Walsh800b3922017-05-05 15:30:30 -050060IPMI Power On
61 [Documentation] Do "IPMI Power On" boot test.
Michael Walshff340002017-08-29 11:18:27 -050062 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -050063
Michael Walshff340002017-08-29 11:18:27 -050064 # Description of argument(s):
65 # stack_mode If stack_mode is set to "skip", each test
66 # specified in the boot_stack is only
67 # performed if the machine is not already in
68 # the state that would normally result from
69 # running the given boot test. Otherwise,
70 # the test is skipped. If stack_mode is set
71 # to "normal", all tests from the boot_stack
72 # are performed. "skip" mode is useful when
73 # you simply want the machine in a desired
74 # state. The default value is the global
75 # value of "${stack_mode}"
76 # quiet If this parameter is set to ${1}, this
77 # keyword will print only essential
78 # information. The default value is the
79 # global value of "${quiet}"
80
81 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=IPMI Power On
82 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
83 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -050084
Michael Walsh800b3922017-05-05 15:30:30 -050085
Michael Walsh800b3922017-05-05 15:30:30 -050086REST Power Off
87 [Documentation] Do "REST Power Off" boot test.
Michael Walshff340002017-08-29 11:18:27 -050088 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -050089
Michael Walshff340002017-08-29 11:18:27 -050090 # Description of argument(s):
91 # stack_mode If stack_mode is set to "skip", each test
92 # specified in the boot_stack is only
93 # performed if the machine is not already in
94 # the state that would normally result from
95 # running the given boot test. Otherwise,
96 # the test is skipped. If stack_mode is set
97 # to "normal", all tests from the boot_stack
98 # are performed. "skip" mode is useful when
99 # you simply want the machine in a desired
100 # state. The default value is the global
101 # value of "${stack_mode}"
102 # quiet If this parameter is set to ${1}, this
103 # keyword will print only essential
104 # information. The default value is the
105 # global value of "${quiet}"
106
107 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=REST Power Off
108 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
109 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500110
Michael Walsh800b3922017-05-05 15:30:30 -0500111
Michael Walsh287a0032019-02-14 18:00:20 -0600112Redfish Power Off
113 [Documentation] Do "Redfish Power Off" boot test.
114 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
115
116 # Description of argument(s):
117 # stack_mode If stack_mode is set to "skip", each test
118 # specified in the boot_stack is only
119 # performed if the machine is not already in
120 # the state that would normally result from
121 # running the given boot test. Otherwise,
122 # the test is skipped. If stack_mode is set
123 # to "normal", all tests from the boot_stack
124 # are performed. "skip" mode is useful when
125 # you simply want the machine in a desired
126 # state. The default value is the global
127 # value of "${stack_mode}"
128 # quiet If this parameter is set to ${1}, this
129 # keyword will print only essential
130 # information. The default value is the
131 # global value of "${quiet}"
132
133 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=Redfish Power Off
134 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
135 Run Key U ${cmd_buf}
136
137
Michael Walsh245db7c2017-09-05 15:45:03 -0500138REST Hard Power Off
139 [Documentation] Do "REST Hard Power Off" boot test.
140 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
141
142 # Description of argument(s):
143 # stack_mode If stack_mode is set to "skip", each test
144 # specified in the boot_stack is only
145 # performed if the machine is not already in
146 # the state that would normally result from
147 # running the given boot test. Otherwise,
148 # the test is skipped. If stack_mode is set
149 # to "normal", all tests from the boot_stack
150 # are performed. "skip" mode is useful when
151 # you simply want the machine in a desired
152 # state. The default value is the global
153 # value of "${stack_mode}"
154 # quiet If this parameter is set to ${1}, this
155 # keyword will print only essential
156 # information. The default value is the
157 # global value of "${quiet}"
158
159 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=REST Hard Power Off
160 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
161 Run Key U ${cmd_buf}
162
Michael Walsh245db7c2017-09-05 15:45:03 -0500163
Michael Walsh287a0032019-02-14 18:00:20 -0600164Redfish Hard Power Off
165 [Documentation] Do "Redfish Hard Power Off" boot test.
166 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
167
168 # Description of argument(s):
169 # stack_mode If stack_mode is set to "skip", each test
170 # specified in the boot_stack is only
171 # performed if the machine is not already in
172 # the state that would normally result from
173 # running the given boot test. Otherwise,
174 # the test is skipped. If stack_mode is set
175 # to "normal", all tests from the boot_stack
176 # are performed. "skip" mode is useful when
177 # you simply want the machine in a desired
178 # state. The default value is the global
179 # value of "${stack_mode}"
180 # quiet If this parameter is set to ${1}, this
181 # keyword will print only essential
182 # information. The default value is the
183 # global value of "${quiet}"
184
185 ${cmd_buf} Catenate OBMC Boot Test
186 ... \ loc_boot_stack=Redfish Hard Power Off
187 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
188 Run Key U ${cmd_buf}
189
190
Michael Walsh800b3922017-05-05 15:30:30 -0500191IPMI Power Off
192 [Documentation] Do "IPMI Power Off" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500193 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500194
Michael Walshff340002017-08-29 11:18:27 -0500195 # Description of argument(s):
196 # stack_mode If stack_mode is set to "skip", each test
197 # specified in the boot_stack is only
198 # performed if the machine is not already in
199 # the state that would normally result from
200 # running the given boot test. Otherwise,
201 # the test is skipped. If stack_mode is set
202 # to "normal", all tests from the boot_stack
203 # are performed. "skip" mode is useful when
204 # you simply want the machine in a desired
205 # state. The default value is the global
206 # value of "${stack_mode}"
207 # quiet If this parameter is set to ${1}, this
208 # keyword will print only essential
209 # information. The default value is the
210 # global value of "${quiet}"
211
212 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=IPMI Power Off
213 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
214 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500215
Michael Walsh800b3922017-05-05 15:30:30 -0500216
Michael Walsh800b3922017-05-05 15:30:30 -0500217IPMI Power Soft
218 [Documentation] Do "IPMI Power Soft" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500219 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500220
Michael Walshff340002017-08-29 11:18:27 -0500221 # Description of argument(s):
222 # stack_mode If stack_mode is set to "skip", each test
223 # specified in the boot_stack is only
224 # performed if the machine is not already in
225 # the state that would normally result from
226 # running the given boot test. Otherwise,
227 # the test is skipped. If stack_mode is set
228 # to "normal", all tests from the boot_stack
229 # are performed. "skip" mode is useful when
230 # you simply want the machine in a desired
231 # state. The default value is the global
232 # value of "${stack_mode}"
233 # quiet If this parameter is set to ${1}, this
234 # keyword will print only essential
235 # information. The default value is the
236 # global value of "${quiet}"
237
238 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=IPMI Power Soft
239 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
240 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500241
Michael Walsh800b3922017-05-05 15:30:30 -0500242
Michael Walsh800b3922017-05-05 15:30:30 -0500243Host Power Off
244 [Documentation] Do "Host Power Off" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500245 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500246
Michael Walshff340002017-08-29 11:18:27 -0500247 # Description of argument(s):
248 # stack_mode If stack_mode is set to "skip", each test
249 # specified in the boot_stack is only
250 # performed if the machine is not already in
251 # the state that would normally result from
252 # running the given boot test. Otherwise,
253 # the test is skipped. If stack_mode is set
254 # to "normal", all tests from the boot_stack
255 # are performed. "skip" mode is useful when
256 # you simply want the machine in a desired
257 # state. The default value is the global
258 # value of "${stack_mode}"
259 # quiet If this parameter is set to ${1}, this
260 # keyword will print only essential
261 # information. The default value is the
262 # global value of "${quiet}"
263
264 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=Host Power Off
265 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
266 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500267
Michael Walsh800b3922017-05-05 15:30:30 -0500268
Michael Walsh800b3922017-05-05 15:30:30 -0500269APOR
270 [Documentation] Do "APOR" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500271 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500272
Michael Walshff340002017-08-29 11:18:27 -0500273 # Description of argument(s):
274 # stack_mode If stack_mode is set to "skip", each test
275 # specified in the boot_stack is only
276 # performed if the machine is not already in
277 # the state that would normally result from
278 # running the given boot test. Otherwise,
279 # the test is skipped. If stack_mode is set
280 # to "normal", all tests from the boot_stack
281 # are performed. "skip" mode is useful when
282 # you simply want the machine in a desired
283 # state. The default value is the global
284 # value of "${stack_mode}"
285 # quiet If this parameter is set to ${1}, this
286 # keyword will print only essential
287 # information. The default value is the
288 # global value of "${quiet}"
289
290 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=APOR
291 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
292 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500293
Michael Walsh800b3922017-05-05 15:30:30 -0500294
Michael Walsh800b3922017-05-05 15:30:30 -0500295OBMC Reboot (run)
296 [Documentation] Do "OBMC Reboot (run)" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500297 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500298
Michael Walshff340002017-08-29 11:18:27 -0500299 # Description of argument(s):
300 # stack_mode If stack_mode is set to "skip", each test
301 # specified in the boot_stack is only
302 # performed if the machine is not already in
303 # the state that would normally result from
304 # running the given boot test. Otherwise,
305 # the test is skipped. If stack_mode is set
306 # to "normal", all tests from the boot_stack
307 # are performed. "skip" mode is useful when
308 # you simply want the machine in a desired
309 # state. The default value is the global
310 # value of "${stack_mode}"
311 # quiet If this parameter is set to ${1}, this
312 # keyword will print only essential
313 # information. The default value is the
314 # global value of "${quiet}"
315
316 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=OBMC Reboot (run)
317 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
318 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500319
Michael Walsh03e63392017-10-02 09:47:41 -0500320
321REST OBMC Reboot (run)
322 [Documentation] Do "REST OBMC Reboot (run)" boot test.
323 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
324
325 # Description of argument(s):
326 # stack_mode If stack_mode is set to "skip", each test
327 # specified in the boot_stack is only
328 # performed if the machine is not already in
329 # the state that would normally result from
330 # running the given boot test. Otherwise,
331 # the test is skipped. If stack_mode is set
332 # to "normal", all tests from the boot_stack
333 # are performed. "skip" mode is useful when
334 # you simply want the machine in a desired
335 # state. The default value is the global
336 # value of "${stack_mode}"
337 # quiet If this parameter is set to ${1}, this
338 # keyword will print only essential
339 # information. The default value is the
340 # global value of "${quiet}"
341
342 ${cmd_buf} Catenate OBMC Boot Test
343 ... \ loc_boot_stack=REST OBMC Reboot (run)
344 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
345 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500346
347
Michael Walsh64a9aa62019-03-08 14:46:52 -0600348Redfish OBMC Reboot (run)
349 [Documentation] Do "Redfish OBMC Reboot (run)" boot test.
350 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
351
352 # Description of argument(s):
353 # stack_mode If stack_mode is set to "skip", each test
354 # specified in the boot_stack is only
355 # performed if the machine is not already in
356 # the state that would normally result from
357 # running the given boot test. Otherwise,
358 # the test is skipped. If stack_mode is set
359 # to "normal", all tests from the boot_stack
360 # are performed. "skip" mode is useful when
361 # you simply want the machine in a desired
362 # state. The default value is the global
363 # value of "${stack_mode}"
364 # quiet If this parameter is set to ${1}, this
365 # keyword will print only essential
366 # information. The default value is the
367 # global value of "${quiet}"
368
369 ${cmd_buf} Catenate OBMC Boot Test
370 ... \ loc_boot_stack=Redfish OBMC Reboot (run)
371 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
372 Run Key U ${cmd_buf}
373
374
Michael Walsh800b3922017-05-05 15:30:30 -0500375OBMC Reboot (off)
376 [Documentation] Do "OBMC Reboot (off)" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500377 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500378
Michael Walshff340002017-08-29 11:18:27 -0500379 # Description of argument(s):
380 # stack_mode If stack_mode is set to "skip", each test
381 # specified in the boot_stack is only
382 # performed if the machine is not already in
383 # the state that would normally result from
384 # running the given boot test. Otherwise,
385 # the test is skipped. If stack_mode is set
386 # to "normal", all tests from the boot_stack
387 # are performed. "skip" mode is useful when
388 # you simply want the machine in a desired
389 # state. The default value is the global
390 # value of "${stack_mode}"
391 # quiet If this parameter is set to ${1}, this
392 # keyword will print only essential
393 # information. The default value is the
394 # global value of "${quiet}"
395
396 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=OBMC Reboot (off)
397 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
398 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500399
Michael Walsh03e63392017-10-02 09:47:41 -0500400
401REST OBMC Reboot (off)
402 [Documentation] Do "REST OBMC Reboot (off)" boot test.
403 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
404
405 # Description of argument(s):
406 # stack_mode If stack_mode is set to "skip", each test
407 # specified in the boot_stack is only
408 # performed if the machine is not already in
409 # the state that would normally result from
410 # running the given boot test. Otherwise,
411 # the test is skipped. If stack_mode is set
412 # to "normal", all tests from the boot_stack
413 # are performed. "skip" mode is useful when
414 # you simply want the machine in a desired
415 # state. The default value is the global
416 # value of "${stack_mode}"
417 # quiet If this parameter is set to ${1}, this
418 # keyword will print only essential
419 # information. The default value is the
420 # global value of "${quiet}"
421
422 ${cmd_buf} Catenate OBMC Boot Test
423 ... \ loc_boot_stack=REST OBMC Reboot (off)
424 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
425 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500426
427
Michael Walsh64a9aa62019-03-08 14:46:52 -0600428Redfish OBMC Reboot (off)
429 [Documentation] Do "Redfish OBMC Reboot (off)" boot test.
430 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
431
432 # Description of argument(s):
433 # stack_mode If stack_mode is set to "skip", each test
434 # specified in the boot_stack is only
435 # performed if the machine is not already in
436 # the state that would normally result from
437 # running the given boot test. Otherwise,
438 # the test is skipped. If stack_mode is set
439 # to "normal", all tests from the boot_stack
440 # are performed. "skip" mode is useful when
441 # you simply want the machine in a desired
442 # state. The default value is the global
443 # value of "${stack_mode}"
444 # quiet If this parameter is set to ${1}, this
445 # keyword will print only essential
446 # information. The default value is the
447 # global value of "${quiet}"
448
449 ${cmd_buf} Catenate OBMC Boot Test
450 ... \ loc_boot_stack=Redfish OBMC Reboot (off)
451 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
452 Run Key U ${cmd_buf}
453
454
Michael Walsh800b3922017-05-05 15:30:30 -0500455PDU AC Cycle (run)
456 [Documentation] Do "PDU AC Cycle (run)" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500457 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500458
Michael Walshff340002017-08-29 11:18:27 -0500459 # Description of argument(s):
460 # stack_mode If stack_mode is set to "skip", each test
461 # specified in the boot_stack is only
462 # performed if the machine is not already in
463 # the state that would normally result from
464 # running the given boot test. Otherwise,
465 # the test is skipped. If stack_mode is set
466 # to "normal", all tests from the boot_stack
467 # are performed. "skip" mode is useful when
468 # you simply want the machine in a desired
469 # state. The default value is the global
470 # value of "${stack_mode}"
471 # quiet If this parameter is set to ${1}, this
472 # keyword will print only essential
473 # information. The default value is the
474 # global value of "${quiet}"
475
476 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=PDU AC Cycle (run)
477 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
478 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500479
Michael Walsh800b3922017-05-05 15:30:30 -0500480
Michael Walsh800b3922017-05-05 15:30:30 -0500481PDU AC Cycle (off)
482 [Documentation] Do "PDU AC Cycle (off)" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500483 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500484
Michael Walshff340002017-08-29 11:18:27 -0500485 # Description of argument(s):
486 # stack_mode If stack_mode is set to "skip", each test
487 # specified in the boot_stack is only
488 # performed if the machine is not already in
489 # the state that would normally result from
490 # running the given boot test. Otherwise,
491 # the test is skipped. If stack_mode is set
492 # to "normal", all tests from the boot_stack
493 # are performed. "skip" mode is useful when
494 # you simply want the machine in a desired
495 # state. The default value is the global
496 # value of "${stack_mode}"
497 # quiet If this parameter is set to ${1}, this
498 # keyword will print only essential
499 # information. The default value is the
500 # global value of "${quiet}"
501
502 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=PDU AC Cycle (off)
503 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
504 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500505
Michael Walsh800b3922017-05-05 15:30:30 -0500506
Michael Walsh800b3922017-05-05 15:30:30 -0500507IPMI MC Reset Warm (run)
508 [Documentation] Do "IPMI MC Reset Warm (run)" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500509 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500510
Michael Walshff340002017-08-29 11:18:27 -0500511 # Description of argument(s):
512 # stack_mode If stack_mode is set to "skip", each test
513 # specified in the boot_stack is only
514 # performed if the machine is not already in
515 # the state that would normally result from
516 # running the given boot test. Otherwise,
517 # the test is skipped. If stack_mode is set
518 # to "normal", all tests from the boot_stack
519 # are performed. "skip" mode is useful when
520 # you simply want the machine in a desired
521 # state. The default value is the global
522 # value of "${stack_mode}"
523 # quiet If this parameter is set to ${1}, this
524 # keyword will print only essential
525 # information. The default value is the
526 # global value of "${quiet}"
527
528 ${cmd_buf} Catenate OBMC Boot Test
529 ... \ loc_boot_stack=IPMI MC Reset Warm (run)
530 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
531 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500532
Michael Walsh800b3922017-05-05 15:30:30 -0500533
Michael Walsh800b3922017-05-05 15:30:30 -0500534IPMI MC Reset Warm (off)
535 [Documentation] Do "IPMI MC Reset Warm (off)" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500536 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500537
Michael Walshff340002017-08-29 11:18:27 -0500538 # Description of argument(s):
539 # stack_mode If stack_mode is set to "skip", each test
540 # specified in the boot_stack is only
541 # performed if the machine is not already in
542 # the state that would normally result from
543 # running the given boot test. Otherwise,
544 # the test is skipped. If stack_mode is set
545 # to "normal", all tests from the boot_stack
546 # are performed. "skip" mode is useful when
547 # you simply want the machine in a desired
548 # state. The default value is the global
549 # value of "${stack_mode}"
550 # quiet If this parameter is set to ${1}, this
551 # keyword will print only essential
552 # information. The default value is the
553 # global value of "${quiet}"
554
555 ${cmd_buf} Catenate OBMC Boot Test
556 ... \ loc_boot_stack=IPMI MC Reset Warm (off)
557 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
558 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500559
Michael Walsh800b3922017-05-05 15:30:30 -0500560
Michael Walsh55b5c642018-03-16 14:21:13 -0500561IPMI MC Reset Cold (run)
562 [Documentation] Do "IPMI MC Reset Cold (run)" boot test.
563 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
564
565 # Description of argument(s):
566 # stack_mode If stack_mode is set to "skip", each test
567 # specified in the boot_stack is only
568 # performed if the machine is not already in
569 # the state that would normally result from
570 # running the given boot test. Otherwise,
571 # the test is skipped. If stack_mode is set
572 # to "normal", all tests from the boot_stack
573 # are performed. "skip" mode is useful when
574 # you simply want the machine in a desired
575 # state. The default value is the global
576 # value of "${stack_mode}"
577 # quiet If this parameter is set to ${1}, this
578 # keyword will print only essential
579 # information. The default value is the
580 # global value of "${quiet}"
581
582 ${cmd_buf} Catenate OBMC Boot Test
583 ... \ loc_boot_stack=IPMI MC Reset Cold (run)
584 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
585 Run Key U ${cmd_buf}
586
587
588IPMI MC Reset Cold (off)
589 [Documentation] Do "IPMI MC Reset Cold (off)" boot test.
590 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
591
592 # Description of argument(s):
593 # stack_mode If stack_mode is set to "skip", each test
594 # specified in the boot_stack is only
595 # performed if the machine is not already in
596 # the state that would normally result from
597 # running the given boot test. Otherwise,
598 # the test is skipped. If stack_mode is set
599 # to "normal", all tests from the boot_stack
600 # are performed. "skip" mode is useful when
601 # you simply want the machine in a desired
602 # state. The default value is the global
603 # value of "${stack_mode}"
604 # quiet If this parameter is set to ${1}, this
605 # keyword will print only essential
606 # information. The default value is the
607 # global value of "${quiet}"
608
609 ${cmd_buf} Catenate OBMC Boot Test
610 ... \ loc_boot_stack=IPMI MC Reset Cold (off)
611 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
612 Run Key U ${cmd_buf}
613
614
615IPMI Std MC Reset Warm (run)
616 [Documentation] Do "IPMI Std MC Reset Warm (run)" boot test.
617 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
618
619 # Description of argument(s):
620 # stack_mode If stack_mode is set to "skip", each test
621 # specified in the boot_stack is only
622 # performed if the machine is not already in
623 # the state that would normally result from
624 # running the given boot test. Otherwise,
625 # the test is skipped. If stack_mode is set
626 # to "normal", all tests from the boot_stack
627 # are performed. "skip" mode is useful when
628 # you simply want the machine in a desired
629 # state. The default value is the global
630 # value of "${stack_mode}"
631 # quiet If this parameter is set to ${1}, this
632 # keyword will print only essential
633 # information. The default value is the
634 # global value of "${quiet}"
635
636 ${cmd_buf} Catenate OBMC Boot Test
637 ... \ loc_boot_stack=IPMI Std MC Reset Warm (run)
638 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
639 Run Key U ${cmd_buf}
640
641
642IPMI Std MC Reset Warm (off)
643 [Documentation] Do "IPMI Std MC Reset Warm (off)" boot test.
644 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
645
646 # Description of argument(s):
647 # stack_mode If stack_mode is set to "skip", each test
648 # specified in the boot_stack is only
649 # performed if the machine is not already in
650 # the state that would normally result from
651 # running the given boot test. Otherwise,
652 # the test is skipped. If stack_mode is set
653 # to "normal", all tests from the boot_stack
654 # are performed. "skip" mode is useful when
655 # you simply want the machine in a desired
656 # state. The default value is the global
657 # value of "${stack_mode}"
658 # quiet If this parameter is set to ${1}, this
659 # keyword will print only essential
660 # information. The default value is the
661 # global value of "${quiet}"
662
663 ${cmd_buf} Catenate OBMC Boot Test
664 ... \ loc_boot_stack=IPMI Std MC Reset Warm (off)
665 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
666 Run Key U ${cmd_buf}
667
668
669IPMI Std MC Reset Cold (run)
670 [Documentation] Do "IPMI Std MC Reset Cold (run)" boot test.
671 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
672
673 # Description of argument(s):
674 # stack_mode If stack_mode is set to "skip", each test
675 # specified in the boot_stack is only
676 # performed if the machine is not already in
677 # the state that would normally result from
678 # running the given boot test. Otherwise,
679 # the test is skipped. If stack_mode is set
680 # to "normal", all tests from the boot_stack
681 # are performed. "skip" mode is useful when
682 # you simply want the machine in a desired
683 # state. The default value is the global
684 # value of "${stack_mode}"
685 # quiet If this parameter is set to ${1}, this
686 # keyword will print only essential
687 # information. The default value is the
688 # global value of "${quiet}"
689
690 ${cmd_buf} Catenate OBMC Boot Test
691 ... \ loc_boot_stack=IPMI Std MC Reset Cold (run)
692 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
693 Run Key U ${cmd_buf}
694
695
696IPMI Std MC Reset Cold (off)
697 [Documentation] Do "IPMI Std MC Reset Cold (off)" boot test.
698 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
699
700 # Description of argument(s):
701 # stack_mode If stack_mode is set to "skip", each test
702 # specified in the boot_stack is only
703 # performed if the machine is not already in
704 # the state that would normally result from
705 # running the given boot test. Otherwise,
706 # the test is skipped. If stack_mode is set
707 # to "normal", all tests from the boot_stack
708 # are performed. "skip" mode is useful when
709 # you simply want the machine in a desired
710 # state. The default value is the global
711 # value of "${stack_mode}"
712 # quiet If this parameter is set to ${1}, this
713 # keyword will print only essential
714 # information. The default value is the
715 # global value of "${quiet}"
716
717 ${cmd_buf} Catenate OBMC Boot Test
718 ... \ loc_boot_stack=IPMI Std MC Reset Cold (off)
719 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
720 Run Key U ${cmd_buf}
721
722
Michael Walsh800b3922017-05-05 15:30:30 -0500723IPMI Power Cycle
724 [Documentation] Do "IPMI Power Cycle" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500725 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500726
Michael Walshff340002017-08-29 11:18:27 -0500727 # Description of argument(s):
728 # stack_mode If stack_mode is set to "skip", each test
729 # specified in the boot_stack is only
730 # performed if the machine is not already in
731 # the state that would normally result from
732 # running the given boot test. Otherwise,
733 # the test is skipped. If stack_mode is set
734 # to "normal", all tests from the boot_stack
735 # are performed. "skip" mode is useful when
736 # you simply want the machine in a desired
737 # state. The default value is the global
738 # value of "${stack_mode}"
739 # quiet If this parameter is set to ${1}, this
740 # keyword will print only essential
741 # information. The default value is the
742 # global value of "${quiet}"
743
744 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=IPMI Power Cycle
745 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
746 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500747
Michael Walsh800b3922017-05-05 15:30:30 -0500748
Michael Walsh800b3922017-05-05 15:30:30 -0500749IPMI Power Reset
750 [Documentation] Do "IPMI Power Reset" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500751 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500752
Michael Walshff340002017-08-29 11:18:27 -0500753 # Description of argument(s):
754 # stack_mode If stack_mode is set to "skip", each test
755 # specified in the boot_stack is only
756 # performed if the machine is not already in
757 # the state that would normally result from
758 # running the given boot test. Otherwise,
759 # the test is skipped. If stack_mode is set
760 # to "normal", all tests from the boot_stack
761 # are performed. "skip" mode is useful when
762 # you simply want the machine in a desired
763 # state. The default value is the global
764 # value of "${stack_mode}"
765 # quiet If this parameter is set to ${1}, this
766 # keyword will print only essential
767 # information. The default value is the
768 # global value of "${quiet}"
769
770 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=IPMI Power Reset
771 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
772 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500773
Michael Walsh800b3922017-05-05 15:30:30 -0500774
Michael Walsh800b3922017-05-05 15:30:30 -0500775Auto Reboot
776 [Documentation] Do "Auto Reboot" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500777 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500778
Michael Walshff340002017-08-29 11:18:27 -0500779 # Description of argument(s):
780 # stack_mode If stack_mode is set to "skip", each test
781 # specified in the boot_stack is only
782 # performed if the machine is not already in
783 # the state that would normally result from
784 # running the given boot test. Otherwise,
785 # the test is skipped. If stack_mode is set
786 # to "normal", all tests from the boot_stack
787 # are performed. "skip" mode is useful when
788 # you simply want the machine in a desired
789 # state. The default value is the global
790 # value of "${stack_mode}"
791 # quiet If this parameter is set to ${1}, this
792 # keyword will print only essential
793 # information. The default value is the
794 # global value of "${quiet}"
795
796 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=Auto Reboot
797 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
798 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500799
Michael Walsh800b3922017-05-05 15:30:30 -0500800
Michael Walsh800b3922017-05-05 15:30:30 -0500801Host Reboot
802 [Documentation] Do "Host Reboot" boot test.
Michael Walshff340002017-08-29 11:18:27 -0500803 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
Michael Walsh800b3922017-05-05 15:30:30 -0500804
Michael Walshff340002017-08-29 11:18:27 -0500805 # Description of argument(s):
806 # stack_mode If stack_mode is set to "skip", each test
807 # specified in the boot_stack is only
808 # performed if the machine is not already in
809 # the state that would normally result from
810 # running the given boot test. Otherwise,
811 # the test is skipped. If stack_mode is set
812 # to "normal", all tests from the boot_stack
813 # are performed. "skip" mode is useful when
814 # you simply want the machine in a desired
815 # state. The default value is the global
816 # value of "${stack_mode}"
817 # quiet If this parameter is set to ${1}, this
818 # keyword will print only essential
819 # information. The default value is the
820 # global value of "${quiet}"
821
822 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=Host Reboot
823 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
824 Run Key U ${cmd_buf}
Michael Walsh800b3922017-05-05 15:30:30 -0500825
Michael Walsh800b3922017-05-05 15:30:30 -0500826
Michael Walsh287a0032019-02-14 18:00:20 -0600827Redfish Host Reboot
828 [Documentation] Do "Redfish Host Reboot" boot test.
829 [Arguments] ${stack_mode}=${stack_mode} ${quiet}=${quiet}
830
831 # Description of argument(s):
832 # stack_mode If stack_mode is set to "skip", each test
833 # specified in the boot_stack is only
834 # performed if the machine is not already in
835 # the state that would normally result from
836 # running the given boot test. Otherwise,
837 # the test is skipped. If stack_mode is set
838 # to "normal", all tests from the boot_stack
839 # are performed. "skip" mode is useful when
840 # you simply want the machine in a desired
841 # state. The default value is the global
842 # value of "${stack_mode}"
843 # quiet If this parameter is set to ${1}, this
844 # keyword will print only essential
845 # information. The default value is the
846 # global value of "${quiet}"
847
848 ${cmd_buf} Catenate OBMC Boot Test \ loc_boot_stack=Redfish Host Reboot
849 ... \ loc_stack_mode=${stack_mode} \ loc_quiet=${quiet}
850 Run Key U ${cmd_buf}
851
852
Michael Walshc28c2392017-09-07 14:17:43 -0500853Smart Power Off
854 [Documentation] Do a smart power off.
855 [Arguments] ${quiet}=${QUIET}
856
857 # A 'Smart Power Off' consists of a 'REST Power Off' with recovery.
858 # Namely, if the 'REST Power Off' fails, a 'REST Hard Power Off' will
859 # be attempted.
860
861 # Description of argument(s):
862 # quiet If this parameter is set to ${1}, this
863 # keyword will print only essential
864 # information. The default value is the
865 # global value of "${quiet}"
866
867
868 # OBMC Boot Test will restore global quiet to initial global value.
869 # Unfortunately, that restore affects our local quiet so we must
870 # preserve it.
871 ${loc_quiet}= Set Variable ${quiet}
872 ${cmd_buf}= Catenate REST Power Off \ stack_mode=skip
873 ... \ \ quiet=${loc_quiet}
874 ${status} ${ret_values}= Run Key U ${cmd_buf} ignore=${1}
875 ... quiet=${loc_quiet}
876
877 Run Keyword If '${status}' == 'PASS' Return From Keyword
878
879 ${cmd_buf}= Catenate REST Hard Power Off \ stack_mode=skip
880 ... \ \ quiet=${loc_quiet}
881 Run Key U ${cmd_buf} quiet=${loc_quiet}
882