blob: 42c1b0ea9353216cb5da8adb5f27da1f9b791aac [file] [log] [blame]
*** Settings ***
Documentation Test BMC using https://github.com/DMTF/Redfish-Usecase-Checkers
... DMTF tool.
Library OperatingSystem
Resource ../../lib/dmtf_tools_utils.robot
Resource ../../lib/openbmc_ffdc.robot
Test Setup Test Setup Execution
Test Teardown Test Teardown Execution
*** Variables ***
${DEFAULT_PYTHON} python3
${rsv_github_url} https://github.com/DMTF/Redfish-Usecase-Checkers.git
${rsv_dir_path} Redfish-Usecase-Checkers
${command_account} ${DEFAULT_PYTHON} ${rsv_dir_path}${/}account_management/account_management.py
... -r ${OPENBMC_HOST} -u ${OPENBMC_USERNAME}
... -p ${OPENBMC_PASSWORD} -S Always -d ${EXECDIR}${/}logs${/} -v
*** Test Case ***
Test BMC Redfish Account Management
[Documentation] Check Account Management with a Redfish interface.
[Tags] Test_BMC_Redfish_Account_Management
${output}= Run DMTF Tool ${rsv_dir_path} ${command_account}
${output}= Shell Cmd cat ${EXECDIR}${/}logs${/}results.json
Log ${output}
*** Keywords ***
Test Setup Execution
[Documentation] Do test case setup tasks.
Download DMTF Tool ${rsv_dir_path} ${rsv_github_url}
Test Teardown Execution
[Documentation] Do the post-test teardown.
FFDC On Test Case Fail