blob: 5b0691991cc645cc17ba88c1cd1a4dd7241a0b22 [file] [log] [blame]
George Keishingef97f3f2017-11-15 10:32:59 -06001*** Settings ***
2Documentation This suite is for disable field mode if enabled.
3
4Resource ../lib/code_update_utils.robot
George Keishing97db7082017-12-08 01:31:30 -06005Resource ../lib/openbmc_ffdc.robot
George Keishing91843f92018-03-26 12:49:36 -05006Resource ../lib/dump_utils.robot
George Keishingef97f3f2017-11-15 10:32:59 -06007
George Keishing97db7082017-12-08 01:31:30 -06008Test Teardown FFDC On Test Case Fail
George Keishingef97f3f2017-11-15 10:32:59 -06009
George Keishing6d0d6a02020-08-17 12:09:27 -050010*** Variables ***
11
12# Error strings to check from journald.
13${ERROR_REGEX} SEGV|core-dump|FAILURE|Failed to start
14
George Keishingef97f3f2017-11-15 10:32:59 -060015*** Test Cases ***
16
17Verify Field Mode Is Disable
18 [Documentation] Disable software manager field mode.
George Keishing36591952018-09-22 11:23:00 -050019 [Tags] Verify_Field_Mode_Is_Disable
George Keishingef97f3f2017-11-15 10:32:59 -060020
George Keishing97db7082017-12-08 01:31:30 -060021 # 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 Keishingef97f3f2017-11-15 10:32:59 -060024 Disable Field Mode And Verify Unmount
George Keishing91843f92018-03-26 12:49:36 -050025
26
George Keishing6d0d6a02020-08-17 12:09:27 -050027Verify No BMC Dump And Application Failures
George Keishing91843f92018-03-26 12:49:36 -050028 [Documentation] Verify no BMC dump exist.
George Keishing6d0d6a02020-08-17 12:09:27 -050029 [Tags] Verify_No_BMC_Dump_And_Application_Failures
George Keishing91843f92018-03-26 12:49:36 -050030
George Keishing8d693382018-12-18 12:15:04 -060031 ${resp}= OpenBMC Get Request ${DUMP_ENTRY_URI}list
George Keishing91843f92018-03-26 12:49:36 -050032 Should Be Equal As Strings ${resp.status_code} ${HTTP_NOT_FOUND}
33 ... msg=BMC dump(s) were not deleted as expected.
George Keishing6d0d6a02020-08-17 12:09:27 -050034
35 Check For Regex In Journald ${ERROR_REGEX} error_check=${0} boot=-b