blob: 80faf9b000cb1c5403e8b622f92a3b2c83172ff1 [file] [log] [blame]
George Keishing5e870cd2016-08-24 10:05:47 -05001*** Settings ***
2Documentation Trigger code update to a target BMC.
3... Execution Method :
4... python -m robot -v OPENBMC_HOST:<hostname>
5... -v FILE_PATH:<path/*all.tar> update_bmc.robot
6...
7... Code update method BMC using REST
8... Update work flow sequence:
9... - User input BMC File existence check
10... - Ping Test and REST authentication
11... - Apply preserve BMC Network setting
12... - SCP image to BMC
13... - Activate the flash image
14... - Warm Reset BMC to activate code
15... - Wait for BMC to come online time out 30 minutes
16... - Version check post update
17
18Resource code_update_utils.robot
19
20*** Variables ***
21
22${FILE_PATH} ${EMPTY}
23
24*** Test cases ***
25
26Initiate Code update BMC
27 [Documentation] BMC code update process initiation
28
29 Check If File Exist ${FILE_PATH}
30 System Readiness Test
31 Validate BMC Version before
32
33 Preserve BMC Network Setting
34 SCP Tar Image File to BMC ${FILE_PATH}
35
36 Activate BMC flash image
37
38 Trigger Warm Reset
39 # TODO: openbmc/openbmc#519
40 ${session_active}= Check If warmReset is Initiated
41 Run Keyword If '${session_active}' == '${True}'
42 ... Trigger Warm Reset via Reboot
43
44 Wait for BMC to respond
45 Sleep 1 min
46 Validate BMC Version