Sweta Potthuri | 70bfeb8 | 2017-09-07 01:19:56 -0500 | [diff] [blame] | 1 | *** Settings *** |
George Keishing | 4c2bdf5 | 2017-09-29 15:44:58 -0500 | [diff] [blame] | 2 | Documentation Verify BMC reboot using REST. |
Sweta Potthuri | 70bfeb8 | 2017-09-07 01:19:56 -0500 | [diff] [blame] | 3 | |
| 4 | Resource ../lib/rest_client.robot |
| 5 | Resource ../lib/utils.robot |
| 6 | Resource ../lib/connection_client.robot |
| 7 | Resource ../lib/openbmc_ffdc.robot |
| 8 | Resource ../lib/boot_utils.robot |
George Keishing | 4c2bdf5 | 2017-09-29 15:44:58 -0500 | [diff] [blame] | 9 | Library ../lib/bmc_ssh_utils.py |
Sweta Potthuri | 70bfeb8 | 2017-09-07 01:19:56 -0500 | [diff] [blame] | 10 | |
| 11 | Force Tags bmcreboot |
| 12 | |
| 13 | Suite Setup Open Connection And Log In |
| 14 | Suite Teardown Close All Connections |
| 15 | Test Teardown FFDC On Test Case Fail |
| 16 | |
| 17 | *** Variables *** |
| 18 | ${SYSTEM_SHUTDOWN_TIME} ${5} |
| 19 | |
| 20 | *** Test Cases *** |
| 21 | |
| 22 | Test 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 | |