Rahul Maheshwari | 81095b6 | 2018-11-05 01:54:19 -0600 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Test BMC code update on a target BMC. |
| 3 | ... Execution Command: |
Rahul Maheshwari | f0b1b5f | 2018-11-16 01:00:52 -0600 | [diff] [blame] | 4 | ... 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 Maheshwari | 81095b6 | 2018-11-05 01:54:19 -0600 | [diff] [blame] | 7 | |
| 8 | Resource ../../lib/code_update_utils.robot |
| 9 | Resource ../../lib/ipmi_client.robot |
| 10 | |
| 11 | Suite 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 | |
| 22 | Verify 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 | |
| 43 | Suite 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 | |