George Keishing | 4d9b7e1 | 2019-03-26 02:03:47 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Test BMC using https://github.com/DMTF/Redfish-Usecase-Checkers |
| 3 | ... DMTF tool. |
| 4 | |
| 5 | Library OperatingSystem |
| 6 | Resource ../../lib/dmtf_tools_utils.robot |
| 7 | Resource ../../lib/openbmc_ffdc.robot |
| 8 | |
| 9 | Test Setup Test Setup Execution |
| 10 | Test 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 | |
| 25 | Test 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 | |
| 36 | Test Setup Execution |
| 37 | [Documentation] Do test case setup tasks. |
| 38 | |
| 39 | Download DMTF Tool ${rsv_dir_path} ${rsv_github_url} |
| 40 | |
| 41 | Test Teardown Execution |
| 42 | [Documentation] Do the post-test teardown. |
| 43 | |
| 44 | FFDC On Test Case Fail |