blob: 87c05d54d4965a7e494b947b41d92edb5ff91b4f [file] [log] [blame]
Sweta Potthuri70bfeb82017-09-07 01:19:56 -05001*** Settings ***
2Documentation This suite is for testing OCC: Power capping setting
3
4Resource ../lib/rest_client.robot
5Resource ../lib/utils.robot
6Resource ../lib/connection_client.robot
7Resource ../lib/openbmc_ffdc.robot
8Resource ../lib/boot_utils.robot
9Resource ../lib/bmc_ssh_utils.py
10
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