1*** Settings ***
2Documentation      Test BMC using https://github.com/DMTF/Redfish-Usecase-Checkers
3...                DMTF tool.
4
5Library            OperatingSystem
6Resource           ../../lib/dmtf_tools_utils.robot
7Resource           ../../lib/openbmc_ffdc.robot
8
9Test Setup         Test Setup Execution
10Test Teardown      Test Teardown Execution
11
12*** Variables ***
13
14${DEFAULT_PYTHON}  python3
15
16${rsv_github_url}  https://github.com/DMTF/Redfish-Usecase-Checkers.git
17${rsv_dir_path}    Redfish-Usecase-Checkers
18
19${command_account}  ${DEFAULT_PYTHON} ${rsv_dir_path}${/}account_management/account_management.py
20...                -r ${OPENBMC_HOST} -u ${OPENBMC_USERNAME}
21...                -p ${OPENBMC_PASSWORD} -S Always -d ${EXECDIR}${/}logs${/} -v
22
23*** Test Case ***
24
25Test BMC Redfish Account Management
26    [Documentation]  Check Account Management with a Redfish interface.
27    [Tags]  Test_BMC_Redfish_Account_Management
28
29    ${output}=  Run DMTF Tool  ${rsv_dir_path}  ${command_account}
30
31    ${output}=  Shell Cmd  cat ${EXECDIR}${/}logs${/}results.json
32    Log  ${output}
33
34*** Keywords ***
35
36Test Setup Execution
37    [Documentation]  Do test case setup tasks.
38
39    Download DMTF Tool  ${rsv_dir_path}  ${rsv_github_url}
40
41Test Teardown Execution
42    [Documentation]  Do the post-test teardown.
43
44    FFDC On Test Case Fail
45