blob: bf0028a55fd118a60908cf9730763611a9901c43 [file] [log] [blame]
Rahul Maheshwari81095b62018-11-05 01:54:19 -06001*** Settings ***
2Documentation Test BMC code update on a target BMC.
3... Execution Command:
Rahul Maheshwarif0b1b5f2018-11-16 01:00:52 -06004... python -m robot -v OPENBMC_HOST:<hostname> -v OS_HOST:<OS IP>
5... -v OS_USERNAME:<OS username> -v OS_PASSWORD:<OS password>
6... -v IMAGE_FILE_PATH:<path/*.tar> ipmi_bmc_code_update.robot
Rahul Maheshwari81095b62018-11-05 01:54:19 -06007
8Resource ../../lib/code_update_utils.robot
9Resource ../../lib/ipmi_client.robot
10
11Suite Setup Suite Setup Execution
12
13
14*** Variables ***
15
16${IMAGE_FILE_PATH} ${EMPTY}
17${SKIP_UPDATE_IF_ACTIVE} false
18
19
20*** Test Cases ***
21
22Verify IPMI Disable Policy Post BMC Code Update
23 [Documentation] Disable IPMI, update BMC and verify post-update.
24 [Tags] Verify_IPMI_Disable_Policy_Post_BMC_Code_Update
25 [Teardown] Run Keywords FFDC On Test Case Fail
26 ... AND Run Inband IPMI Standard Command lan set 1 access on
27
28 Run Inband IPMI Standard Command lan set 1 access off
29 Run Keyword and Expect Error *Unable to establish IPMI*
30 ... Run External IPMI Standard Command lan print
31
32 Upload And Activate Image ${IMAGE_FILE_PATH}
33 ... skip_if_active=${SKIP_UPDATE_IF_ACTIVE}
34 OBMC Reboot (off)
35 Verify Running BMC Image ${IMAGE_FILE_PATH}
36
37 Run Keyword and Expect Error *Unable to establish IPMI*
38 ... Run External IPMI Standard Command lan print
39
40
41*** Keywords ***
42
43Suite Setup Execution
44 [Documentation] Do code update test case setup.
45
46 # Check if image file is provided.
47 OperatingSystem.File Should Exist ${IMAGE_FILE_PATH}
48
49 # - Clean up all existing BMC dumps.
50 Run Key Delete All Dumps ignore=1
51 Run Keyword And Ignore Error Smart Power Off
52