blob: 0ba5ce9caa687206da48d2a9e626deecc84b015a [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
32