George Keishing | ef97f3f | 2017-11-15 10:32:59 -0600 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation This suite is for disable field mode if enabled. |
| 3 | |
| 4 | Resource ../lib/code_update_utils.robot |
George Keishing | 97db708 | 2017-12-08 01:31:30 -0600 | [diff] [blame] | 5 | Resource ../lib/openbmc_ffdc.robot |
George Keishing | 91843f9 | 2018-03-26 12:49:36 -0500 | [diff] [blame] | 6 | Resource ../lib/dump_utils.robot |
George Keishing | ef97f3f | 2017-11-15 10:32:59 -0600 | [diff] [blame] | 7 | |
George Keishing | 97db708 | 2017-12-08 01:31:30 -0600 | [diff] [blame] | 8 | Test Teardown FFDC On Test Case Fail |
George Keishing | ef97f3f | 2017-11-15 10:32:59 -0600 | [diff] [blame] | 9 | |
George Keishing | 6d0d6a0 | 2020-08-17 12:09:27 -0500 | [diff] [blame] | 10 | *** Variables *** |
| 11 | |
| 12 | # Error strings to check from journald. |
| 13 | ${ERROR_REGEX} SEGV|core-dump|FAILURE|Failed to start |
| 14 | |
George Keishing | ef97f3f | 2017-11-15 10:32:59 -0600 | [diff] [blame] | 15 | *** Test Cases *** |
| 16 | |
| 17 | Verify Field Mode Is Disable |
| 18 | [Documentation] Disable software manager field mode. |
George Keishing | 3659195 | 2018-09-22 11:23:00 -0500 | [diff] [blame] | 19 | [Tags] Verify_Field_Mode_Is_Disable |
George Keishing | ef97f3f | 2017-11-15 10:32:59 -0600 | [diff] [blame] | 20 | |
George Keishing | 97db708 | 2017-12-08 01:31:30 -0600 | [diff] [blame] | 21 | # Field mode is enabled before running CT. |
| 22 | # It is to ensure that the setting is not changed during CT |
| 23 | Field Mode Should Be Enabled |
George Keishing | ef97f3f | 2017-11-15 10:32:59 -0600 | [diff] [blame] | 24 | Disable Field Mode And Verify Unmount |
George Keishing | 91843f9 | 2018-03-26 12:49:36 -0500 | [diff] [blame] | 25 | |
| 26 | |
George Keishing | 6d0d6a0 | 2020-08-17 12:09:27 -0500 | [diff] [blame] | 27 | Verify No BMC Dump And Application Failures |
George Keishing | 91843f9 | 2018-03-26 12:49:36 -0500 | [diff] [blame] | 28 | [Documentation] Verify no BMC dump exist. |
George Keishing | 6d0d6a0 | 2020-08-17 12:09:27 -0500 | [diff] [blame] | 29 | [Tags] Verify_No_BMC_Dump_And_Application_Failures |
George Keishing | 91843f9 | 2018-03-26 12:49:36 -0500 | [diff] [blame] | 30 | |
Rahul Maheshwari | a89ff9e | 2020-09-25 05:04:33 -0500 | [diff] [blame] | 31 | ${resp}= OpenBMC Get Request ${DUMP_URI} |
| 32 | Run Keyword If '${resp.status_code}' == '${HTTP_NOT_FOUND}' |
| 33 | ... Set Test Variable ${DUMP_ENTRY_URI} /xyz/openbmc_project/dump/entry/ |
| 34 | |
George Keishing | 8d69338 | 2018-12-18 12:15:04 -0600 | [diff] [blame] | 35 | ${resp}= OpenBMC Get Request ${DUMP_ENTRY_URI}list |
George Keishing | 91843f9 | 2018-03-26 12:49:36 -0500 | [diff] [blame] | 36 | Should Be Equal As Strings ${resp.status_code} ${HTTP_NOT_FOUND} |
| 37 | ... msg=BMC dump(s) were not deleted as expected. |
George Keishing | 6d0d6a0 | 2020-08-17 12:09:27 -0500 | [diff] [blame] | 38 | |
| 39 | Check For Regex In Journald ${ERROR_REGEX} error_check=${0} boot=-b |