<commit_before>*** Settings ***
Documentation           This suite is for testing OCC: Power capping setting

Resource                ../lib/rest_client.robot
Resource                ../lib/utils.robot
Resource                ../lib/connection_client.robot
Resource                ../lib/openbmc_ffdc.robot
Resource                ../lib/boot_utils.robot
Resource                ../lib/bmc_ssh_utils.py

Force Tags  bmcreboot

Suite Setup             Open Connection And Log In
Suite Teardown          Close All Connections
Test Teardown           FFDC On Test Case Fail

*** Variables ***
${SYSTEM_SHUTDOWN_TIME}    ${5}

*** Test Cases ***

Test BMC Reboot via REST
    [Documentation]   This test case is to verify bmc reboot using REST.
    [Tags]  Test_BMC_Reboot_via_REST

    ${test_file_path}=  Set Variable  /tmp/before_bmcreboot
    BMC Execute Command  touch ${test_file_path}

    REST OBMC Reboot (off)  stack_mode=normal

    BMC Execute Command  if [ -f ${test_file_path} ] ; then false ; fi
<commit_msg>Fix library import and documentation<commit_after>*** Settings ***
Documentation           Verify BMC reboot using REST.

Resource                ../lib/rest_client.robot
Resource                ../lib/utils.robot
Resource                ../lib/connection_client.robot
Resource                ../lib/openbmc_ffdc.robot
Resource                ../lib/boot_utils.robot
Library                 ../lib/bmc_ssh_utils.py

Force Tags  bmcreboot

Suite Setup             Open Connection And Log In
Suite Teardown          Close All Connections
Test Teardown           FFDC On Test Case Fail

*** Variables ***
${SYSTEM_SHUTDOWN_TIME}    ${5}

*** Test Cases ***

Test BMC Reboot via REST
    [Documentation]   This test case is to verify bmc reboot using REST.
    [Tags]  Test_BMC_Reboot_via_REST

    ${test_file_path}=  Set Variable  /tmp/before_bmcreboot
    BMC Execute Command  touch ${test_file_path}

    REST OBMC Reboot (off)  stack_mode=normal

    BMC Execute Command  if [ -f ${test_file_path} ] ; then false ; fi

{'fraction_non_alphanumeric': 0.08145240431795878, 'fraction_numerical': 0.0009813542688910696, 'mean_word_length': 2.2624, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1655310', 'n_tokens_mistral': 617, 'n_tokens_neox': 588, 'n_words': 184}