blob: c60af1ff54d3ec8c2df65cbbf6fbe96c3ecafe51 [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
Rahul Maheshwaria89ff9e2020-09-25 05:04:33 -050031 ${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 Keishing8d693382018-12-18 12:15:04 -060035 ${resp}= OpenBMC Get Request ${DUMP_ENTRY_URI}list
George Keishing91843f92018-03-26 12:49:36 -050036 Should Be Equal As Strings ${resp.status_code} ${HTTP_NOT_FOUND}
37 ... msg=BMC dump(s) were not deleted as expected.
George Keishing6d0d6a02020-08-17 12:09:27 -050038
39 Check For Regex In Journald ${ERROR_REGEX} error_check=${0} boot=-b