blob: 132858d459420978aca6918caaeb2e9b8a18689b [file] [log] [blame]
Rahul Maheshwaricf0861f2021-07-15 03:23:55 -05001*** Settings ***
2Documentation This suite is to run some test at the end of execution.
3
George Keishing3fb91712021-07-15 10:05:51 -05004Resource ../lib/resource.robot
5Resource ../lib/bmc_redfish_resource.robot
George Keishing4d8e3092021-07-15 04:25:40 -05006Resource ../lib/openbmc_ffdc.robot
Rahul Maheshwaricf0861f2021-07-15 03:23:55 -05007
George Keishinge25cd7b2021-08-03 06:46:28 -05008Test Teardown Test Teardown Execution
Rahul Maheshwaricf0861f2021-07-15 03:23:55 -05009
Igor Kanyukafeb79d62025-10-20 21:24:03 +010010Test Tags Test_XIT
11
Rahul Maheshwaricf0861f2021-07-15 03:23:55 -050012*** Variables ***
13
14# Error strings to check from journald.
Jian Zhangc79341b2023-03-10 18:03:52 +080015${ERROR_REGEX} SEGV|core-dump|FAILURE|Failed to start|Found ordering cycle
George Keishing140351f2022-03-10 08:10:01 -060016${SKIP_ERROR} ${EMPTY}
Rahul Maheshwaricf0861f2021-07-15 03:23:55 -050017
18
19*** Test Cases ***
20
21Verify No BMC Dump And Application Failures In BMC
22 [Documentation] Verify no BMC dump and application failure exists in BMC.
23 [Tags] Verify_No_BMC_Dump_And_Application_Failures_In_BMC
24
25 # Check dump entry based on Redfish API availability.
George Keishingf84ed122021-07-15 14:44:36 -050026 Redfish.Login
ganesanb4d430282023-04-27 14:33:23 +000027 ${resp}= Redfish.Get /redfish/v1/Managers/${MANAGER_ID}/LogServices/Dump/Entries
George Keishing3fb91712021-07-15 10:05:51 -050028 ... valid_status_codes=[${HTTP_OK}, ${HTTP_NOT_FOUND}]
Rahul Maheshwaricf0861f2021-07-15 03:23:55 -050029
George Keishing3fb91712021-07-15 10:05:51 -050030 Log To Console ${resp}
Rahul Maheshwaricf0861f2021-07-15 03:23:55 -050031
George Keishing79fc7f02025-05-02 00:37:49 +053032 IF '${resp.status}' == '${HTTP_OK}'
33 Should Be Equal As Strings ${resp.dict["Members@odata.count"]} 0
34 ... msg=${resp.dict["Members@odata.count"]} dumps exist.
35 END
George Keishing3fb91712021-07-15 10:05:51 -050036
George Keishing140351f2022-03-10 08:10:01 -060037 Check For Regex In Journald ${ERROR_REGEX} error_check=${0} boot=-b filter_string=${SKIP_ERROR}
George Keishingf84ed122021-07-15 14:44:36 -050038
39
40*** Keywords ***
41
George Keishinge25cd7b2021-08-03 06:46:28 -050042Test Teardown Execution
43 [Documentation] Do test teardown operation.
44
45 FFDC On Test Case Fail
46 # Remove rm command once the BMC dump APIs are working.
47 Run Keyword And Ignore Error BMC Execute Command rm -rf /var/lib/phosphor-debug-collector/dumps/
George Keishinge25cd7b2021-08-03 06:46:28 -050048 Run Keyword And Ignore Error Redfish Delete All BMC Dumps
49 Run Keyword And Ignore Error Redfish Delete All System Dumps