blob: d16804709a51facb365773787e1fc42695fb4394 [file] [log] [blame]
Sweta Potthuri70bfeb82017-09-07 01:19:56 -05001*** Settings ***
George Keishing4c2bdf52017-09-29 15:44:58 -05002Documentation Verify BMC reboot using REST.
Sweta Potthuri70bfeb82017-09-07 01:19:56 -05003
4Resource ../lib/rest_client.robot
5Resource ../lib/utils.robot
6Resource ../lib/connection_client.robot
7Resource ../lib/openbmc_ffdc.robot
8Resource ../lib/boot_utils.robot
George Keishing4c2bdf52017-09-29 15:44:58 -05009Library ../lib/bmc_ssh_utils.py
Sweta Potthuri70bfeb82017-09-07 01:19:56 -050010
11Force Tags bmcreboot
12
13Suite Setup Open Connection And Log In
14Suite Teardown Close All Connections
15Test Teardown FFDC On Test Case Fail
16
17*** Variables ***
18${SYSTEM_SHUTDOWN_TIME} ${5}
19
20*** Test Cases ***
21
22Test BMC Reboot via REST
23 [Documentation] This test case is to verify bmc reboot using REST.
24 [Tags] Test_BMC_Reboot_via_REST
25
26 ${test_file_path}= Set Variable /tmp/before_bmcreboot
27 BMC Execute Command touch ${test_file_path}
28
29 REST OBMC Reboot (off) stack_mode=normal
30
31 BMC Execute Command if [ -f ${test_file_path} ] ; then false ; fi
George Keishingb39a6792017-11-10 22:58:52 -060032 Verify BMC RTC And UTC Time Drift
Sweta Potthuri70bfeb82017-09-07 01:19:56 -050033