Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation This testsuite is for testing the Boot Device Functions |
| 4 | |
Sivas SRR | e1143ae | 2016-08-26 22:31:02 -0500 | [diff] [blame] | 5 | Resource ../lib/rest_client.robot |
| 6 | Resource ../lib/ipmi_client.robot |
| 7 | Resource ../lib/openbmc_ffdc.robot |
George Keishing | ddc605f | 2016-09-15 00:46:32 -0500 | [diff] [blame] | 8 | Resource ../lib/utils.robot |
Sweta Potthuri | af741cb | 2017-07-04 09:41:17 -0500 | [diff] [blame] | 9 | Resource ../lib/boot_utils.robot |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 10 | |
George Keishing | 3ce958c | 2017-03-27 01:09:02 -0500 | [diff] [blame] | 11 | Suite Setup Test Suite Setup |
Sweta Potthuri | f93a746 | 2017-03-21 06:38:26 -0500 | [diff] [blame] | 12 | Test Teardown Post Test Case Execution |
George Keishing | ec80737 | 2016-12-05 03:54:51 -0600 | [diff] [blame] | 13 | |
Sivas SRR | e1143ae | 2016-08-26 22:31:02 -0500 | [diff] [blame] | 14 | *** Variables *** |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 15 | |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 16 | ${stack_mode} skip |
| 17 | |
George Keishing | ec80737 | 2016-12-05 03:54:51 -0600 | [diff] [blame] | 18 | |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 19 | *** Test Cases *** |
| 20 | |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 21 | Set The Boot Source As Default Using REST API |
| 22 | [Documentation] Set default boot source via REST and verify with both |
| 23 | ... REST and IPMI. |
| 24 | [Tags] Set_The_Boot_Source_As_Default_Using_REST_API |
Sivas SRR | e1143ae | 2016-08-26 22:31:02 -0500 | [diff] [blame] | 25 | |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 26 | Set Boot Source ${BOOT_SOURCE_DEFAULT} |
| 27 | |
| 28 | ${boot_source}= |
George Keishing | df3e65f | 2018-12-18 13:06:56 -0600 | [diff] [blame] | 29 | ... Read Attribute ${CONTROL_HOST_URI}boot/one_time BootSource |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 30 | Should Be Equal As Strings ${boot_source} ${BOOT_SOURCE_DEFAULT} |
| 31 | |
Rahul Maheshwari | 56d8675 | 2017-04-07 14:25:01 -0500 | [diff] [blame] | 32 | ${output}= Run IPMI Standard Command chassis bootparam get 5 |
| 33 | Should Contain ${output} No override |
Sivas SRR | e1143ae | 2016-08-26 22:31:02 -0500 | [diff] [blame] | 34 | |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 35 | |
| 36 | Set The Boot Source As Default Using Ipmitool |
| 37 | [Documentation] Set default boot source via IPMI and verify with both |
| 38 | ... REST and IPMI. |
| 39 | [Tags] Set_The_Boot_Source_As_Default_Using_Ipmitool |
Sivas SRR | e1143ae | 2016-08-26 22:31:02 -0500 | [diff] [blame] | 40 | |
Rahul Maheshwari | 8dc8a48 | 2017-01-29 21:41:55 -0600 | [diff] [blame] | 41 | Run IPMI command 0x0 0x8 0x05 0x80 0x00 0x00 0x00 0x00 |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 42 | |
| 43 | ${boot_source}= |
George Keishing | df3e65f | 2018-12-18 13:06:56 -0600 | [diff] [blame] | 44 | ... Read Attribute ${CONTROL_HOST_URI}boot/one_time BootSource |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 45 | Should Be Equal As Strings ${boot_source} ${BOOT_SOURCE_DEFAULT} |
| 46 | |
Rahul Maheshwari | 56d8675 | 2017-04-07 14:25:01 -0500 | [diff] [blame] | 47 | ${output}= Run IPMI Standard Command chassis bootparam get 5 |
| 48 | Should Contain ${output} No override |
Sivas SRR | e1143ae | 2016-08-26 22:31:02 -0500 | [diff] [blame] | 49 | |
Sivas SRR | e1143ae | 2016-08-26 22:31:02 -0500 | [diff] [blame] | 50 | |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 51 | Set The Boot Source As Network Using REST API |
| 52 | [Documentation] Set boot source as Network via REST and verify with both |
| 53 | ... REST and IPMI. |
| 54 | [Tags] Set_The_Boot_Source_As_Network_Using_REST_API |
| 55 | |
| 56 | Set Boot Source ${BOOT_SOURCE_NETWORK} |
| 57 | |
| 58 | ${boot_source}= |
George Keishing | df3e65f | 2018-12-18 13:06:56 -0600 | [diff] [blame] | 59 | ... Read Attribute ${CONTROL_HOST_URI}boot/one_time BootSource |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 60 | Should Be Equal As Strings ${boot_source} ${BOOT_SOURCE_NETWORK} |
| 61 | |
Rahul Maheshwari | 56d8675 | 2017-04-07 14:25:01 -0500 | [diff] [blame] | 62 | ${output}= Run IPMI Standard Command chassis bootparam get 5 |
| 63 | Should Contain ${output} Force PXE |
Sivas SRR | e1143ae | 2016-08-26 22:31:02 -0500 | [diff] [blame] | 64 | |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 65 | |
| 66 | Set The Boot Source As Network Using Ipmitool |
| 67 | [Documentation] Set boot source as Network via IPMI and verify with both |
| 68 | ... REST and IPMI. |
| 69 | [Tags] Set_The_Boot_Source_As_Network_Using_Ipmitool |
Sivas SRR | e1143ae | 2016-08-26 22:31:02 -0500 | [diff] [blame] | 70 | |
Rahul Maheshwari | 8dc8a48 | 2017-01-29 21:41:55 -0600 | [diff] [blame] | 71 | Run IPMI command 0x0 0x8 0x05 0x80 0x04 0x00 0x00 0x00 |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 72 | |
| 73 | ${boot_source}= |
George Keishing | df3e65f | 2018-12-18 13:06:56 -0600 | [diff] [blame] | 74 | ... Read Attribute ${CONTROL_HOST_URI}boot/one_time BootSource |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 75 | Should Be Equal As Strings ${boot_source} ${BOOT_SOURCE_NETWORK} |
| 76 | |
Rahul Maheshwari | 56d8675 | 2017-04-07 14:25:01 -0500 | [diff] [blame] | 77 | ${output}= Run IPMI Standard Command chassis bootparam get 5 |
| 78 | Should Contain ${output} Force PXE |
Sivas SRR | e1143ae | 2016-08-26 22:31:02 -0500 | [diff] [blame] | 79 | |
Sivas SRR | e1143ae | 2016-08-26 22:31:02 -0500 | [diff] [blame] | 80 | |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 81 | Set The Boot Source As Disk Using REST API |
| 82 | [Documentation] Set boot source as Disk via REST and verify with both |
| 83 | ... REST and IPMI. |
| 84 | [Tags] Set_The_Boot_Source_As_Disk_Using_REST_API |
| 85 | |
| 86 | Set Boot Source ${BOOT_SOURCE_DISK} |
| 87 | |
| 88 | ${boot_source}= |
George Keishing | df3e65f | 2018-12-18 13:06:56 -0600 | [diff] [blame] | 89 | ... Read Attribute ${CONTROL_HOST_URI}boot/one_time BootSource |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 90 | Should Be Equal As Strings ${boot_source} ${BOOT_SOURCE_DISK} |
| 91 | |
Rahul Maheshwari | 56d8675 | 2017-04-07 14:25:01 -0500 | [diff] [blame] | 92 | ${output}= Run IPMI Standard Command chassis bootparam get 5 |
| 93 | Should Contain ${output} Force Boot from default Hard-Drive |
Sivas SRR | e1143ae | 2016-08-26 22:31:02 -0500 | [diff] [blame] | 94 | |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 95 | |
| 96 | Set The Boot Source As Disk Using Ipmitool |
| 97 | [Documentation] Set boot source as Disk via IPMI and verify with both |
| 98 | ... REST and IPMI. |
| 99 | [Tags] Set_The_Boot_Source_As_Disk_Using_Ipmitool |
Sivas SRR | e1143ae | 2016-08-26 22:31:02 -0500 | [diff] [blame] | 100 | |
Rahul Maheshwari | 8dc8a48 | 2017-01-29 21:41:55 -0600 | [diff] [blame] | 101 | Run IPMI command 0x0 0x8 0x05 0x80 0x08 0x00 0x00 0x00 |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 102 | |
| 103 | ${boot_source}= |
George Keishing | df3e65f | 2018-12-18 13:06:56 -0600 | [diff] [blame] | 104 | ... Read Attribute ${CONTROL_HOST_URI}boot/one_time BootSource |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 105 | Should Be Equal As Strings ${boot_source} ${BOOT_SOURCE_DISK} |
| 106 | |
Rahul Maheshwari | 56d8675 | 2017-04-07 14:25:01 -0500 | [diff] [blame] | 107 | ${output}= Run IPMI Standard Command chassis bootparam get 5 |
| 108 | Should Contain ${output} Force Boot from default Hard-Drive |
Sivas SRR | e1143ae | 2016-08-26 22:31:02 -0500 | [diff] [blame] | 109 | |
Sivas SRR | e1143ae | 2016-08-26 22:31:02 -0500 | [diff] [blame] | 110 | |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 111 | Set The Boot Mode As Safe Using REST API |
| 112 | [Documentation] Set boot mode as Safe via REST and verify with both |
| 113 | ... REST and IPMI. |
| 114 | [Tags] Set_The_Boot_Mode_As_Safe_Using_REST_API |
| 115 | |
| 116 | Set Boot Mode ${BOOT_MODE_SAFE} |
| 117 | |
George Keishing | df3e65f | 2018-12-18 13:06:56 -0600 | [diff] [blame] | 118 | ${boot_mode}= Read Attribute ${CONTROL_HOST_URI}boot/one_time BootMode |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 119 | Should Be Equal As Strings ${boot_mode} ${BOOT_MODE_SAFE} |
| 120 | |
Rahul Maheshwari | 56d8675 | 2017-04-07 14:25:01 -0500 | [diff] [blame] | 121 | ${output}= Run IPMI Standard Command chassis bootparam get 5 |
| 122 | Should Contain ${output} Safe-Mode |
Sivas SRR | e1143ae | 2016-08-26 22:31:02 -0500 | [diff] [blame] | 123 | |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 124 | |
| 125 | Set The Boot Mode As Safe Using Ipmitool |
| 126 | [Documentation] Set boot mode as Safe via IPMI and verify with both |
| 127 | ... REST and IPMI. |
| 128 | [Tags] Set_The_Boot_Mode_As_Safe_Using_Ipmitool |
Sivas SRR | e1143ae | 2016-08-26 22:31:02 -0500 | [diff] [blame] | 129 | |
Rahul Maheshwari | 8dc8a48 | 2017-01-29 21:41:55 -0600 | [diff] [blame] | 130 | Run IPMI command 0x0 0x8 0x05 0x80 0x0C 0x00 0x00 0x00 |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 131 | |
George Keishing | df3e65f | 2018-12-18 13:06:56 -0600 | [diff] [blame] | 132 | ${boot_mode}= Read Attribute ${CONTROL_HOST_URI}boot/one_time BootMode |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 133 | Should Be Equal As Strings ${boot_mode} ${BOOT_MODE_SAFE} |
| 134 | |
Rahul Maheshwari | 56d8675 | 2017-04-07 14:25:01 -0500 | [diff] [blame] | 135 | ${output}= Run IPMI Standard Command chassis bootparam get 5 |
| 136 | Should Contain ${output} Safe-Mode |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 137 | |
Sivas SRR | e1143ae | 2016-08-26 22:31:02 -0500 | [diff] [blame] | 138 | |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 139 | Set The Boot Source As CDROM Using REST API |
| 140 | [Documentation] Set boot source as CDROM via REST and verify with both |
| 141 | ... REST and IPMI. |
| 142 | [Tags] Set_The_Boot_Source_As_CDROM_Using_REST_API |
| 143 | |
| 144 | Set Boot Source ${BOOT_SOURCE_CDROM} |
| 145 | |
| 146 | ${boot_source}= |
George Keishing | df3e65f | 2018-12-18 13:06:56 -0600 | [diff] [blame] | 147 | ... Read Attribute ${CONTROL_HOST_URI}boot/one_time BootSource |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 148 | Should Be Equal As Strings ${boot_source} ${BOOT_SOURCE_CDROM} |
| 149 | |
Rahul Maheshwari | 56d8675 | 2017-04-07 14:25:01 -0500 | [diff] [blame] | 150 | ${output}= Run IPMI Standard Command chassis bootparam get 5 |
| 151 | Should Contain ${output} Force Boot from CD/DVD |
Sivas SRR | e1143ae | 2016-08-26 22:31:02 -0500 | [diff] [blame] | 152 | |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 153 | |
| 154 | Set The Boot Source As CDROM Using Ipmitool |
| 155 | [Documentation] Set boot source as CDROM via IPMI and verify with both |
| 156 | ... REST and IPMI. |
| 157 | [Tags] Set_The_Boot_Source_As_CDROM_Using_Ipmitool |
Sivas SRR | e1143ae | 2016-08-26 22:31:02 -0500 | [diff] [blame] | 158 | |
Rahul Maheshwari | 8dc8a48 | 2017-01-29 21:41:55 -0600 | [diff] [blame] | 159 | Run IPMI command 0x0 0x8 0x05 0x80 0x14 0x00 0x00 0x00 |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 160 | |
| 161 | ${boot_source}= |
George Keishing | df3e65f | 2018-12-18 13:06:56 -0600 | [diff] [blame] | 162 | ... Read Attribute ${CONTROL_HOST_URI}boot/one_time BootSource |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 163 | Should Be Equal As Strings ${boot_source} ${BOOT_SOURCE_CDROM} |
| 164 | |
Rahul Maheshwari | 56d8675 | 2017-04-07 14:25:01 -0500 | [diff] [blame] | 165 | ${output}= Run IPMI Standard Command chassis bootparam get 5 |
| 166 | Should Contain ${output} Force Boot from CD/DVD |
Sivas SRR | e1143ae | 2016-08-26 22:31:02 -0500 | [diff] [blame] | 167 | |
Sivas SRR | e1143ae | 2016-08-26 22:31:02 -0500 | [diff] [blame] | 168 | |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 169 | Set The Boot Mode As Setup Using REST API |
| 170 | [Documentation] Set boot mode as Setup via REST and verify with both |
| 171 | ... REST and IPMI. |
| 172 | [Tags] Set_The_Boot_Mode_As_Setup_Using_REST_API |
| 173 | |
| 174 | Set Boot Mode ${BOOT_MODE_SETUP} |
| 175 | |
George Keishing | df3e65f | 2018-12-18 13:06:56 -0600 | [diff] [blame] | 176 | ${boot_mode}= Read Attribute ${CONTROL_HOST_URI}boot/one_time BootMode |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 177 | Should Be Equal As Strings ${boot_mode} ${BOOT_MODE_SETUP} |
| 178 | |
Rahul Maheshwari | 56d8675 | 2017-04-07 14:25:01 -0500 | [diff] [blame] | 179 | ${output}= Run IPMI Standard Command chassis bootparam get 5 |
| 180 | Should Contain ${output} Force Boot into BIOS Setup |
Sivas SRR | e1143ae | 2016-08-26 22:31:02 -0500 | [diff] [blame] | 181 | |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 182 | |
| 183 | Set The Boot Mode As Setup Using Ipmitool |
| 184 | [Documentation] Set boot mode as Setup via IPMI and verify with both |
| 185 | ... REST and IPMI. |
| 186 | [Tags] Set_The_Boot_Mode_As_Setup_Using_Ipmitool |
Sivas SRR | e1143ae | 2016-08-26 22:31:02 -0500 | [diff] [blame] | 187 | |
Rahul Maheshwari | 8dc8a48 | 2017-01-29 21:41:55 -0600 | [diff] [blame] | 188 | Run IPMI command 0x0 0x8 0x05 0x80 0x18 0x00 0x00 0x00 |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 189 | |
George Keishing | df3e65f | 2018-12-18 13:06:56 -0600 | [diff] [blame] | 190 | ${boot_mode}= Read Attribute ${CONTROL_HOST_URI}boot/one_time BootMode |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 191 | Should Be Equal As Strings ${boot_mode} ${BOOT_MODE_SETUP} |
| 192 | |
Rahul Maheshwari | 56d8675 | 2017-04-07 14:25:01 -0500 | [diff] [blame] | 193 | ${output}= Run IPMI Standard Command chassis bootparam get 5 |
| 194 | Should Contain ${output} Force Boot into BIOS Setup |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 195 | |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 196 | |
Konstantin Aladyshev | e2016fa | 2021-04-14 12:53:32 +0300 | [diff] [blame] | 197 | Set The Boot Type As Legacy Using REST API |
| 198 | [Documentation] Set boot type as Legacy via REST and verify with both |
| 199 | ... REST and IPMI. |
| 200 | [Tags] Set_The_Boot_Type_As_Legacy_Using_REST_API |
| 201 | |
| 202 | Set Boot Type ${BOOT_TYPE_LEGACY} |
| 203 | |
| 204 | ${boot_type}= Read Attribute ${CONTROL_HOST_URI}boot/one_time BootType |
| 205 | Should Be Equal As Strings ${boot_type} ${BOOT_TYPE_LEGACY} |
| 206 | |
| 207 | ${output}= Run IPMI Standard Command chassis bootparam get 5 |
| 208 | Should Contain ${output} BIOS PC Compatible (legacy) boot |
| 209 | |
| 210 | |
| 211 | Set The Boot Type As Legacy Using Ipmitool |
| 212 | [Documentation] Set boot type as Legacy via IPMI and verify with both |
| 213 | ... REST and IPMI. |
| 214 | [Tags] Set_The_Boot_Type_As_Legacy_Using_Ipmitool |
| 215 | |
| 216 | Run IPMI command 0x0 0x8 0x05 0x80 0x00 0x00 0x00 0x00 |
| 217 | |
| 218 | ${boot_type}= Read Attribute ${CONTROL_HOST_URI}boot/one_time BootType |
| 219 | Should Be Equal As Strings ${boot_type} ${BOOT_TYPE_LEGACY} |
| 220 | |
| 221 | ${output}= Run IPMI Standard Command chassis bootparam get 5 |
| 222 | Should Contain ${output} BIOS PC Compatible (legacy) boot |
| 223 | |
| 224 | |
| 225 | Set The Boot Type As EFI Using REST API |
| 226 | [Documentation] Set boot type as EFI via REST and verify with both |
| 227 | ... REST and IPMI. |
| 228 | [Tags] Set_The_Boot_Type_As_EFI_Using_REST_API |
| 229 | |
| 230 | Set Boot Type ${BOOT_TYPE_EFI} |
| 231 | |
| 232 | ${boot_type}= Read Attribute ${CONTROL_HOST_URI}boot/one_time BootType |
| 233 | Should Be Equal As Strings ${boot_type} ${BOOT_TYPE_EFI} |
| 234 | |
| 235 | ${output}= Run IPMI Standard Command chassis bootparam get 5 |
| 236 | Should Contain ${output} BIOS EFI boot |
| 237 | |
| 238 | |
| 239 | Set The Boot Type As EFI Using Ipmitool |
| 240 | [Documentation] Set boot type as EFI via IPMI and verify with both |
| 241 | ... REST and IPMI. |
| 242 | [Tags] Set_The_Boot_Type_As_EFI_Using_Ipmitool |
| 243 | |
| 244 | Run IPMI command 0x0 0x8 0x05 0xA0 0x00 0x00 0x00 0x00 |
| 245 | |
| 246 | ${boot_type}= Read Attribute ${CONTROL_HOST_URI}boot/one_time BootType |
| 247 | Should Be Equal As Strings ${boot_type} ${BOOT_TYPE_EFI} |
| 248 | |
| 249 | ${output}= Run IPMI Standard Command chassis bootparam get 5 |
| 250 | Should Contain ${output} BIOS EFI boot |
| 251 | |
| 252 | |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 253 | *** Keywords *** |
| 254 | |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 255 | Set Boot Source |
| 256 | [Documentation] Set given boot source. |
| 257 | [Arguments] ${boot_source} |
| 258 | # Description of argument(s): |
| 259 | # boot_source Boot source which need to be set. |
| 260 | |
| 261 | ${valueDict}= Create Dictionary data=${boot_source} |
George Keishing | df3e65f | 2018-12-18 13:06:56 -0600 | [diff] [blame] | 262 | Write Attribute ${CONTROL_HOST_URI}boot/one_time BootSource |
Rahul Maheshwari | 3087f34 | 2017-09-22 05:22:44 -0500 | [diff] [blame] | 263 | ... data=${valueDict} |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 264 | |
| 265 | |
| 266 | Set Boot Mode |
| 267 | [Documentation] Set given boot mode. |
| 268 | [Arguments] ${boot_mode} |
| 269 | # Description of argument(s): |
| 270 | # boot_mode Boot mode which need to be set. |
| 271 | |
| 272 | ${valueDict}= Create Dictionary data=${boot_mode} |
George Keishing | df3e65f | 2018-12-18 13:06:56 -0600 | [diff] [blame] | 273 | Write Attribute ${CONTROL_HOST_URI}boot/one_time BootMode |
Rahul Maheshwari | 3087f34 | 2017-09-22 05:22:44 -0500 | [diff] [blame] | 274 | ... data=${valueDict} |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 275 | |
| 276 | |
Konstantin Aladyshev | e2016fa | 2021-04-14 12:53:32 +0300 | [diff] [blame] | 277 | Set Boot Type |
| 278 | [Documentation] Set given boot type. |
| 279 | [Arguments] ${boot_type} |
| 280 | # Description of argument(s): |
| 281 | # boot_type Boot type which need to be set. |
| 282 | |
| 283 | ${valueDict}= Create Dictionary data=${boot_type} |
| 284 | Write Attribute ${CONTROL_HOST_URI}boot/one_time BootType |
| 285 | ... data=${valueDict} |
| 286 | |
| 287 | |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 288 | Response Should Be Equal |
Joy Onyerikwu | f4a807b | 2018-06-20 08:43:54 -0500 | [diff] [blame] | 289 | [Documentation] Verify that the output is equal to the given args. |
Rahul Maheshwari | 8dc8a48 | 2017-01-29 21:41:55 -0600 | [diff] [blame] | 290 | [Arguments] ${args} |
| 291 | Should Be Equal ${OUTPUT} ${args} |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 292 | |
Sivas SRR | e1143ae | 2016-08-26 22:31:02 -0500 | [diff] [blame] | 293 | Read the Attribute |
Joy Onyerikwu | f4a807b | 2018-06-20 08:43:54 -0500 | [diff] [blame] | 294 | [Documentation] Read the given attribute. |
Rahul Maheshwari | 8dc8a48 | 2017-01-29 21:41:55 -0600 | [diff] [blame] | 295 | [Arguments] ${uri} ${parm} |
| 296 | ${output}= Read Attribute ${uri} ${parm} |
| 297 | Set Test Variable ${OUTPUT} ${output} |
Sweta Potthuri | f93a746 | 2017-03-21 06:38:26 -0500 | [diff] [blame] | 298 | |
Sweta Potthuri | f93a746 | 2017-03-21 06:38:26 -0500 | [diff] [blame] | 299 | Post Test Case Execution |
| 300 | [Documentation] Do the post test teardown. |
| 301 | |
| 302 | FFDC On Test Case Fail |
Rahul Maheshwari | 85c4d34 | 2017-08-09 21:59:30 -0500 | [diff] [blame] | 303 | Set Boot Source ${BOOT_SOURCE_DEFAULT} |
| 304 | Set Boot Mode ${BOOT_MODE_REGULAR} |
George Keishing | 3ce958c | 2017-03-27 01:09:02 -0500 | [diff] [blame] | 305 | |
| 306 | Test Suite Setup |
| 307 | [Documentation] Do the initial suite setup. |
George Keishing | f142668 | 2017-07-12 23:17:17 -0500 | [diff] [blame] | 308 | |
Rahul Maheshwari | 3087f34 | 2017-09-22 05:22:44 -0500 | [diff] [blame] | 309 | Smart Power Off |
| 310 | |
| 311 | # Set boot policy to default i.e. one time enabled. |
| 312 | ${valueDict}= Create Dictionary data=${1} |
George Keishing | df3e65f | 2018-12-18 13:06:56 -0600 | [diff] [blame] | 313 | Write Attribute ${CONTROL_HOST_URI}boot/one_time Enabled |
Rahul Maheshwari | 3087f34 | 2017-09-22 05:22:44 -0500 | [diff] [blame] | 314 | ... data=${valueDict} |