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 | |
George Keishing | c5fef58 | 2018-07-18 08:41:28 -0500 | [diff] [blame^] | 20 | # Strings to check from journald. |
| 21 | ${REBOOT_REGEX} ^\-- Reboot -- |
| 22 | |
| 23 | |
Sweta Potthuri | 70bfeb8 | 2017-09-07 01:19:56 -0500 | [diff] [blame] | 24 | *** Test Cases *** |
| 25 | |
| 26 | Test BMC Reboot via REST |
| 27 | [Documentation] This test case is to verify bmc reboot using REST. |
| 28 | [Tags] Test_BMC_Reboot_via_REST |
| 29 | |
| 30 | ${test_file_path}= Set Variable /tmp/before_bmcreboot |
| 31 | BMC Execute Command touch ${test_file_path} |
| 32 | |
| 33 | REST OBMC Reboot (off) stack_mode=normal |
| 34 | |
| 35 | BMC Execute Command if [ -f ${test_file_path} ] ; then false ; fi |
George Keishing | b39a679 | 2017-11-10 22:58:52 -0600 | [diff] [blame] | 36 | Verify BMC RTC And UTC Time Drift |
Sweta Potthuri | 70bfeb8 | 2017-09-07 01:19:56 -0500 | [diff] [blame] | 37 | |
George Keishing | c5fef58 | 2018-07-18 08:41:28 -0500 | [diff] [blame^] | 38 | # Check for journald persistency post reboot. |
| 39 | Check For Regex In Journald ${REBOOT_REGEX} error_check=${1} |
| 40 | |