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