blob: 79fbb9ac52e376c598a2a4ed8d826eac60f82889 [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
George Keishingc5fef582018-07-18 08:41:28 -050020# Strings to check from journald.
21${REBOOT_REGEX} ^\-- Reboot --
22
23
Sweta Potthuri70bfeb82017-09-07 01:19:56 -050024*** Test Cases ***
25
26Test 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 Keishingb39a6792017-11-10 22:58:52 -060036 Verify BMC RTC And UTC Time Drift
Sweta Potthuri70bfeb82017-09-07 01:19:56 -050037
George Keishingc5fef582018-07-18 08:41:28 -050038 # Check for journald persistency post reboot.
39 Check For Regex In Journald ${REBOOT_REGEX} error_check=${1}
40