blob: 6686f09a29292dcb9fe9467695082b0419011626 [file] [log] [blame]
George Keishing4d9b7e12019-03-26 02:03:47 -05001*** Settings ***
George Keishing6a69d262019-04-03 03:45:27 -05002Documentation Test BMC using https://github.com/DMTF/Redfish-Usecase-Checkers
3... DMTF tool.
George Keishing4d9b7e12019-03-26 02:03:47 -05004
George Keishingfc3d8f12022-03-24 10:57:31 -05005Resource ../../lib/resource.robot
George Keishing6a69d262019-04-03 03:45:27 -05006Resource ../../lib/dmtf_tools_utils.robot
7Resource ../../lib/openbmc_ffdc.robot
George Keishingfc3d8f12022-03-24 10:57:31 -05008Library OperatingSystem
9Library ../../lib/state.py
George Keishing4d9b7e12019-03-26 02:03:47 -050010
George Keishing6a69d262019-04-03 03:45:27 -050011Test Setup Test Setup Execution
12Test Teardown Test Teardown Execution
George Keishing4d9b7e12019-03-26 02:03:47 -050013
Sridevi Rameshcf0c8b02025-09-17 06:22:35 -050014Test Tags Redfish_Usecase_Checkers
15
George Keishing4d9b7e12019-03-26 02:03:47 -050016*** Variables ***
17
George Keishing6a69d262019-04-03 03:45:27 -050018${DEFAULT_PYTHON} python3
George Keishing4d9b7e12019-03-26 02:03:47 -050019
George Keishing6a69d262019-04-03 03:45:27 -050020${rsv_github_url} https://github.com/DMTF/Redfish-Usecase-Checkers.git
21${rsv_dir_path} Redfish-Usecase-Checkers
George Keishing4d9b7e12019-03-26 02:03:47 -050022
Igor Kanyuka4d395f22025-10-22 23:14:08 +010023${command_account} ${DEFAULT_PYTHON} ${rsv_dir_path}${/}rf_use_case_checkers.py
24... -r https://${OPENBMC_HOST} -u ${OPENBMC_USERNAME}
25... -p ${OPENBMC_PASSWORD} --test-list AccountManagement
George Keishing6a69d262019-04-03 03:45:27 -050026
Igor Kanyuka4d395f22025-10-22 23:14:08 +010027${command_power_control} ${DEFAULT_PYTHON} ${rsv_dir_path}${/}rf_use_case_checkers.py
28... -r https://${OPENBMC_HOST} -u ${OPENBMC_USERNAME}
29... -p ${OPENBMC_PASSWORD} --test-list PowerControl
George Keishing6a69d262019-04-03 03:45:27 -050030
31${power_on_timeout} 15 mins
32${power_off_timeout} 15 mins
33${state_change_timeout} 3 mins
ganesanbbca06d02023-04-15 10:52:51 +000034${branch_name} main
George Keishing4d9b7e12019-03-26 02:03:47 -050035
George Keishing409df052024-01-17 22:36:14 +053036*** Test Cases ***
George Keishing4d9b7e12019-03-26 02:03:47 -050037
38Test BMC Redfish Account Management
39 [Documentation] Check Account Management with a Redfish interface.
40 [Tags] Test_BMC_Redfish_Account_Management
41
Igor Kanyuka4d395f22025-10-22 23:14:08 +010042 ${rc} ${output}= Run DMTF Tool ${rsv_dir_path} ${command_account} check_error=1
George Keishing4d9b7e12019-03-26 02:03:47 -050043
Igor Kanyuka4d395f22025-10-22 23:14:08 +010044 Should Be Equal ${rc} ${0}
45 Should Match Regexp ${output} Summary - PASS: \\d+, WARN: \\d+, FAIL: 0, NOT TESTED: \\d+
manashsarmaa053fb32020-06-08 08:43:32 -050046
George Keishing6a69d262019-04-03 03:45:27 -050047
Peter D Phan1c5d3252021-12-30 12:53:49 -060048Test BMC Redfish Power Control Usecase
49 [Documentation] Power Control Usecase Test.
George Keishinge23afb52022-03-17 08:25:49 -050050 [Tags] Test_BMC_Redfish_Power_Control_Usecase
George Keishing6a69d262019-04-03 03:45:27 -050051
Peter D Phan1c5d3252021-12-30 12:53:49 -060052 DMTF Power
George Keishing6a69d262019-04-03 03:45:27 -050053
54
George Keishing4d9b7e12019-03-26 02:03:47 -050055*** Keywords ***
56
57Test Setup Execution
58 [Documentation] Do test case setup tasks.
59
George Keishing6a69d262019-04-03 03:45:27 -050060 Printn
ganesanbbca06d02023-04-15 10:52:51 +000061 Download DMTF Tool ${rsv_dir_path} ${rsv_github_url} ${branch_name}
George Keishing4d9b7e12019-03-26 02:03:47 -050062
George Keishing6a69d262019-04-03 03:45:27 -050063
George Keishing4d9b7e12019-03-26 02:03:47 -050064Test Teardown Execution
65 [Documentation] Do the post-test teardown.
66
George Keishing6a69d262019-04-03 03:45:27 -050067 Printn
George Keishing4d9b7e12019-03-26 02:03:47 -050068 FFDC On Test Case Fail
George Keishing6a69d262019-04-03 03:45:27 -050069
70
Peter D Phan1c5d3252021-12-30 12:53:49 -060071DMTF Power
George Keishing6a69d262019-04-03 03:45:27 -050072 [Documentation] Power the BMC machine on via DMTF tools.
73
Igor Kanyuka4d395f22025-10-22 23:14:08 +010074 ${rc} ${output}= Run DMTF Tool ${rsv_dir_path} ${command_power_control} check_error=1
75 Log ${rc}
George Keishingfc3d8f12022-03-24 10:57:31 -050076 Log ${output}
George Keishing6a69d262019-04-03 03:45:27 -050077
Igor Kanyuka4d395f22025-10-22 23:14:08 +010078 Should Be Equal ${rc} ${0}
79 Should Match Regexp ${output} Summary - PASS: \\d+, WARN: \\d+, FAIL: 0, NOT TESTED: \\d+