Rahul Maheshwari | 982fee4 | 2017-05-03 00:33:15 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation This suite tests IPMI SOL in OpenBMC. |
| 3 | |
Rahul Maheshwari | 1cd7e43 | 2019-03-06 10:27:21 -0600 | [diff] [blame] | 4 | Resource ../lib/ipmi_client.robot |
| 5 | Resource ../lib/openbmc_ffdc.robot |
George Keishing | 42e1ac6 | 2019-03-07 13:18:39 -0600 | [diff] [blame] | 6 | Resource ../lib/state_manager.robot |
George Keishing | 60b5e61 | 2019-07-05 12:11:51 -0500 | [diff] [blame] | 7 | Resource ../lib/boot_utils.robot |
| 8 | Resource ../lib/bmc_redfish_resource.robot |
Rahul Maheshwari | 1cd7e43 | 2019-03-06 10:27:21 -0600 | [diff] [blame] | 9 | Library ../lib/ipmi_utils.py |
chithrag | dc5679e | 2022-03-01 11:51:41 +0000 | [diff] [blame] | 10 | Variables ../data/ipmi_raw_cmd_table.py |
Rahul Maheshwari | 982fee4 | 2017-05-03 00:33:15 -0500 | [diff] [blame] | 11 | |
Rahul Maheshwari | 2a17511 | 2017-08-22 05:06:49 -0500 | [diff] [blame] | 12 | Test Setup Start SOL Console Logging |
George Keishing | 0ea976a | 2017-12-08 01:09:40 -0600 | [diff] [blame] | 13 | Test Teardown Test Teardown Execution |
Rahul Maheshwari | 982fee4 | 2017-05-03 00:33:15 -0500 | [diff] [blame] | 14 | |
Rahul Maheshwari | 7eea8ed | 2018-12-18 04:51:38 -0600 | [diff] [blame] | 15 | Force Tags SOL_Test |
| 16 | |
| 17 | |
Rahul Maheshwari | 982fee4 | 2017-05-03 00:33:15 -0500 | [diff] [blame] | 18 | *** Variables *** |
| 19 | |
chithrag | dc5679e | 2022-03-01 11:51:41 +0000 | [diff] [blame] | 20 | @{valid_bit_rates} ${9.6} ${19.2} ${38.4} ${57.6} ${115.2} |
| 21 | @{setinprogress} set-complete set-in-progress commit-write |
| 22 | ${invalid_bit_rate} 7.5 |
| 23 | |
| 24 | |
Rahul Maheshwari | 982fee4 | 2017-05-03 00:33:15 -0500 | [diff] [blame] | 25 | *** Test Cases *** |
| 26 | |
Rahul Maheshwari | d71cd95 | 2017-06-20 21:30:51 -0500 | [diff] [blame] | 27 | Set SOL Enabled |
| 28 | [Documentation] Verify enabling SOL via IPMI. |
| 29 | [Tags] Set_SOL_Enabled |
| 30 | |
| 31 | ${msg}= Run Keyword Run IPMI Standard Command |
| 32 | ... sol set enabled true |
| 33 | |
| 34 | # Verify SOL status from ipmitool sol info command. |
| 35 | ${sol_info_dict}= Get SOL Info |
| 36 | ${sol_enable_status}= Get From Dictionary |
| 37 | ... ${sol_info_dict} Enabled |
| 38 | |
| 39 | Should Be Equal '${sol_enable_status}' 'true' |
| 40 | |
| 41 | |
| 42 | Set SOL Disabled |
| 43 | [Documentation] Verify disabling SOL via IPMI. |
| 44 | [Tags] Set_SOL_Disabled |
| 45 | |
| 46 | ${msg}= Run Keyword Run IPMI Standard Command |
| 47 | ... sol set enabled false |
| 48 | |
| 49 | # Verify SOL status from ipmitool sol info command. |
| 50 | ${sol_info_dict}= Get SOL Info |
| 51 | ${sol_enable_status}= Get From Dictionary |
| 52 | ... ${sol_info_dict} Enabled |
| 53 | Should Be Equal '${sol_enable_status}' 'false' |
| 54 | |
| 55 | # Verify error while activating SOL with SOL disabled. |
| 56 | ${msg}= Run Keyword And Expect Error * Run IPMI Standard Command |
| 57 | ... sol activate |
| 58 | Should Contain ${msg} SOL payload disabled ignore_case=True |
| 59 | |
| 60 | |
Rahul Maheshwari | 6fe52b9 | 2017-06-16 03:35:26 -0500 | [diff] [blame] | 61 | Set Valid SOL Privilege Level |
| 62 | [Documentation] Verify valid SOL's privilege level via IPMI. |
| 63 | [Tags] Set_Valid_SOL_Privilege_Level |
| 64 | |
| 65 | ${privilege_level_list}= Create List user operator admin oem |
Sushil Singh | ab209cd | 2020-07-01 09:01:14 -0500 | [diff] [blame] | 66 | |
| 67 | FOR ${item} IN @{privilege_level_list} |
| 68 | Set SOL Setting privilege-level ${item} |
| 69 | ${output}= Get SOL Setting Privilege Level |
| 70 | Should Contain ${output} ${item} ignore_case=True |
| 71 | END |
Rahul Maheshwari | 6fe52b9 | 2017-06-16 03:35:26 -0500 | [diff] [blame] | 72 | |
| 73 | |
| 74 | Set Invalid SOL Privilege Level |
| 75 | [Documentation] Verify invalid SOL's retry count via IPMI. |
| 76 | [Tags] Set_Invalid_SOL_Privilege_Level |
| 77 | |
| 78 | ${value}= Generate Random String ${8} |
| 79 | ${msg}= Run Keyword And Expect Error * Run IPMI Standard Command |
| 80 | ... sol set privilege-level ${value} |
| 81 | Should Contain ${msg} Invalid value ignore_case=True |
| 82 | |
| 83 | |
Rahul Maheshwari | a88de44 | 2017-06-16 01:05:16 -0500 | [diff] [blame] | 84 | Set Invalid SOL Retry Count |
| 85 | [Documentation] Verify invalid SOL's retry count via IPMI. |
| 86 | [Tags] Set_Invalid_SOL_Retry_Count |
| 87 | |
Gunnar Mills | 28e403b | 2017-10-25 16:16:38 -0500 | [diff] [blame] | 88 | # Any integer above 7 is invalid for SOL retry count. |
Rahul Maheshwari | a88de44 | 2017-06-16 01:05:16 -0500 | [diff] [blame] | 89 | ${value}= Evaluate random.randint(8, 10000) modules=random |
| 90 | |
| 91 | ${msg}= Run Keyword And Expect Error * Run IPMI Standard Command |
| 92 | ... sol set retry-count ${value} |
| 93 | Should Contain ${msg} Invalid value ignore_case=True |
| 94 | |
| 95 | |
| 96 | Set Invalid SOL Retry Interval |
| 97 | [Documentation] Verify invalid SOL's retry interval via IPMI. |
| 98 | [Tags] Set_Invalid_SOL_Retry_Interval |
| 99 | |
Gunnar Mills | 28e403b | 2017-10-25 16:16:38 -0500 | [diff] [blame] | 100 | # Any integer above 255 is invalid for SOL retry interval. |
Rahul Maheshwari | a88de44 | 2017-06-16 01:05:16 -0500 | [diff] [blame] | 101 | ${value}= Evaluate random.randint(256, 10000) modules=random |
| 102 | |
| 103 | ${msg}= Run Keyword And Expect Error * Run IPMI Standard Command |
| 104 | ... sol set retry-interval ${value} |
| 105 | Should Contain ${msg} Invalid value ignore_case=True |
| 106 | |
| 107 | |
| 108 | Set Invalid SOL Character Accumulate Level |
| 109 | [Documentation] Verify invalid SOL's character accumulate level via IPMI. |
| 110 | [Tags] Set_Invalid_SOL_Character_Accumulate_Level |
| 111 | |
| 112 | # Any integer above 255 is invalid for SOL character accumulate level. |
| 113 | ${value}= Evaluate random.randint(256, 10000) modules=random |
| 114 | |
| 115 | ${msg}= Run Keyword And Expect Error * Run IPMI Standard Command |
| 116 | ... sol set character-accumulate-level ${value} |
| 117 | Should Contain ${msg} Invalid value ignore_case=True |
| 118 | |
| 119 | |
| 120 | Set Invalid SOL Character Send Threshold |
| 121 | [Documentation] Verify invalid SOL's character send threshold via IPMI. |
| 122 | [Tags] Set_Invalid_SOL_Character_Send_Threshold |
| 123 | |
Gunnar Mills | 28e403b | 2017-10-25 16:16:38 -0500 | [diff] [blame] | 124 | # Any integer above 255 is invalid for SOL character send threshold. |
Rahul Maheshwari | a88de44 | 2017-06-16 01:05:16 -0500 | [diff] [blame] | 125 | ${value}= Evaluate random.randint(256, 10000) modules=random |
| 126 | |
| 127 | ${msg}= Run Keyword And Expect Error * Run IPMI Standard Command |
| 128 | ... sol set character-send-threshold ${value} |
| 129 | Should Contain ${msg} Invalid value ignore_case=True |
| 130 | |
| 131 | |
George Keishing | 1ca77aa | 2017-08-21 23:55:51 -0500 | [diff] [blame] | 132 | Verify SOL During Boot |
| 133 | [Documentation] Verify SOL during boot. |
| 134 | [Tags] Verify_SOL_During_Boot |
| 135 | |
George Keishing | 2620672 | 2021-11-17 01:29:53 -0600 | [diff] [blame] | 136 | IPMI Power Off stack_mode=skip |
George Keishing | 1ca77aa | 2017-08-21 23:55:51 -0500 | [diff] [blame] | 137 | Activate SOL Via IPMI |
George Keishing | e053d34 | 2019-10-25 07:16:20 -0500 | [diff] [blame] | 138 | Initiate Host Boot Via External IPMI wait=${0} |
George Keishing | de9804a | 2017-09-28 04:03:11 -0500 | [diff] [blame] | 139 | |
George Keishing | e053d34 | 2019-10-25 07:16:20 -0500 | [diff] [blame] | 140 | Wait Until Keyword Succeeds 3 mins 15 secs |
| 141 | ... Check IPMI SOL Output Content Welcome to Hostboot |
| 142 | |
| 143 | Wait Until Keyword Succeeds 3 mins 15 secs |
| 144 | ... Check IPMI SOL Output Content ISTEP |
| 145 | |
George Keishing | 2620672 | 2021-11-17 01:29:53 -0600 | [diff] [blame] | 146 | IPMI Power Off |
George Keishing | 5632f3c | 2018-11-01 00:39:10 -0500 | [diff] [blame] | 147 | |
| 148 | |
George Keishing | 1ca77aa | 2017-08-21 23:55:51 -0500 | [diff] [blame] | 149 | Verify Deactivate Non Existing SOL |
| 150 | [Documentation] Verify deactivate non existing SOL session. |
| 151 | [Tags] Verify_Deactivate_Non_Existing_SOL |
| 152 | |
| 153 | ${resp}= Deactivate SOL Via IPMI |
| 154 | Should Contain ${resp} SOL payload already de-activated |
| 155 | ... case_insensitive=True |
| 156 | |
| 157 | |
| 158 | Set Valid SOL Retry Count |
George Keishing | 1ca77aa | 2017-08-21 23:55:51 -0500 | [diff] [blame] | 159 | [Documentation] Verify valid SOL's retry count via IPMI. |
| 160 | [Tags] Set_Valid_SOL_Retry_Count |
George Keishing | 1ca77aa | 2017-08-21 23:55:51 -0500 | [diff] [blame] | 161 | [Template] Verify SOL Setting |
| 162 | |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 163 | # Setting name Min valid value Max valid value |
| 164 | retry-count 0 7 |
| 165 | |
George Keishing | 1ca77aa | 2017-08-21 23:55:51 -0500 | [diff] [blame] | 166 | |
| 167 | Set Valid SOL Retry Interval |
George Keishing | 1ca77aa | 2017-08-21 23:55:51 -0500 | [diff] [blame] | 168 | [Documentation] Verify valid SOL's retry interval via IPMI. |
| 169 | [Tags] Set_Valid_SOL_Retry_Interval |
George Keishing | 1ca77aa | 2017-08-21 23:55:51 -0500 | [diff] [blame] | 170 | [Template] Verify SOL Setting |
| 171 | |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 172 | # Setting name Min valid value Max valid value |
| 173 | retry-interval 0 255 |
| 174 | |
George Keishing | 1ca77aa | 2017-08-21 23:55:51 -0500 | [diff] [blame] | 175 | |
| 176 | Set Valid SOL Character Accumulate Level |
George Keishing | 1ca77aa | 2017-08-21 23:55:51 -0500 | [diff] [blame] | 177 | [Documentation] Verify valid SOL's character accumulate level via IPMI. |
| 178 | [Tags] Set_Valid_SOL_Character_Accumulate_Level |
George Keishing | 1ca77aa | 2017-08-21 23:55:51 -0500 | [diff] [blame] | 179 | [Template] Verify SOL Setting |
| 180 | |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 181 | # Setting name Min valid value Max valid value |
| 182 | character-accumulate-level 1 255 |
| 183 | |
George Keishing | 1ca77aa | 2017-08-21 23:55:51 -0500 | [diff] [blame] | 184 | |
| 185 | Set Valid SOL Character Send Threshold |
George Keishing | 1ca77aa | 2017-08-21 23:55:51 -0500 | [diff] [blame] | 186 | [Documentation] Verify valid SOL's character send threshold via IPMI. |
| 187 | [Tags] Set_Valid_SOL_Character_Send_Threshold |
George Keishing | 1ca77aa | 2017-08-21 23:55:51 -0500 | [diff] [blame] | 188 | [Template] Verify SOL Setting |
| 189 | |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 190 | # Setting name Min valid value Max valid value |
| 191 | character-send-threshold 0 255 |
| 192 | |
Anusha Dathatri | c3a0bb7 | 2020-02-12 07:52:40 -0600 | [diff] [blame] | 193 | |
| 194 | Verify Continuous Activation And Deactivation Of SOL |
| 195 | [Documentation] Continuously on and off SOL. |
| 196 | [Tags] Verify_Continuous_Activation_And_Deactivation_Of_SOL |
| 197 | |
| 198 | ${iteration_count}= Evaluate random.randint(5,10) modules=random |
| 199 | FOR ${iter} IN RANGE ${iteration_count} |
| 200 | Activate SOL Via IPMI |
| 201 | Deactivate SOL Via IPMI |
| 202 | END |
| 203 | |
| 204 | |
chithrag | dc5679e | 2022-03-01 11:51:41 +0000 | [diff] [blame] | 205 | Verify SOL Payload Channel |
| 206 | [Documentation] Verify SOL payload channel from SOL info. |
| 207 | [Tags] Verify_SOL_Payload_Channel |
| 208 | |
| 209 | # Get channel number from SOL Info and verify it is not empty. |
| 210 | ${payload_channel}= Get SOL Setting Payload Channel |
| 211 | Should Not Be Empty ${payload_channel} |
| 212 | |
| 213 | |
| 214 | Verify SOL Payload Port |
| 215 | [Documentation] Verify SOL payload port from SOL info. |
| 216 | [Tags] Verify_SOL_Payload_Port |
| 217 | |
| 218 | # Get Payload Port from SOL Info and verify it equal with ipmi port. |
| 219 | ${payload_port}= Get SOL Setting Payload Port |
| 220 | Should Be Equal ${IPMI_PORT} ${payload_port} |
| 221 | |
| 222 | |
| 223 | Set Valid SOL Non Volatile Bit Rate |
| 224 | [Documentation] Verify ability to set valid SOL non-volatile bit rate. |
| 225 | [Tags] Set_Valid_SOL_Non_Volatile_Bit_Rate |
| 226 | |
| 227 | FOR ${bit_rate} IN @{valid_bit_rates} |
| 228 | |
| 229 | # Set valid non-volatile-bit-rate from SOL Info. |
| 230 | Run Keyword And Expect Error *Parameter not supported* |
| 231 | ... Run IPMI Standard Command |
| 232 | ... sol set non-volatile-bit-rate ${bit_rate} |
| 233 | |
| 234 | END |
| 235 | |
| 236 | |
| 237 | Set Invalid SOL Non Volatile Bit Rate |
| 238 | [Documentation] Verify ability to set invalid SOL non-volatile bit rate. |
| 239 | [Tags] Set_Invalid_SOL_Non_Volatile_Bit_Rate |
| 240 | |
| 241 | # Set Invalid non-volatile-bit-rate from SOL Info. |
| 242 | ${resp} = Run Keyword and Expect Error *${IPMI_RAW_CMD['SOL']['Set_SOL'][0]}* |
| 243 | ... Run IPMI Standard Command sol set non-volatile-bit-rate ${invalid_bit_rate} |
| 244 | |
| 245 | # Compares whether valid values are displayed. |
| 246 | Should Contain ${resp} ${IPMI_RAW_CMD['SOL']['Set_SOL'][1]} ignore_case=True |
| 247 | |
| 248 | |
| 249 | Set Valid SOL Volatile Bit Rate |
| 250 | [Documentation] Verify ability to set valid SOL volatile bit rate. |
| 251 | [Tags] Set_Valid_SOL_Volatile_Bit_Rate |
| 252 | |
| 253 | FOR ${bit_rate} IN @{valid_bit_rates} |
| 254 | |
| 255 | # Set valid volatile-bit-rate from SOL Info. |
| 256 | Run Keyword and Expect Error *Parameter not supported* |
| 257 | ... Run IPMI Standard Command |
| 258 | ... sol set volatile-bit-rate ${bit_rate} |
| 259 | |
| 260 | END |
| 261 | |
| 262 | |
| 263 | Set Invalid SOL Volatile Bit Rate |
| 264 | [Documentation] Verify ability to set invalid SOL volatile bit rate. |
| 265 | [Tags] Set_Invalid_SOL_Volatile_Bit_Rate |
| 266 | |
| 267 | # Set invalid volatile-bit-rate from SOL Info. |
| 268 | ${resp} = Run Keyword and Expect Error *${IPMI_RAW_CMD['SOL']['Set_SOL'][0]}* |
| 269 | ... Run IPMI Standard Command sol set volatile-bit-rate ${invalid_bit_rate} |
| 270 | |
| 271 | # Compares whether valid values are displayed. |
| 272 | Should Contain ${resp} ${IPMI_RAW_CMD['SOL']['Set_SOL'][1]} ignore_case=True |
| 273 | |
| 274 | |
| 275 | Verify SOL Set In Progress |
| 276 | [Documentation] Verify ability to set the set in-progress data for SOL. |
| 277 | [Tags] Verify_SOL_Set_In_Progress |
| 278 | [Teardown] Run Keywords Set SOL Setting set-in-progress set-complete |
| 279 | ... AND Test Teardown Execution |
| 280 | |
| 281 | # Set the param 0 - set-in-progress from SOL Info. |
| 282 | FOR ${prog} IN @{setinprogress} |
| 283 | Run Keyword Run IPMI Standard Command sol set set-in-progress ${prog} |
| 284 | # Get the param 0 - set-in-progress from SOL Info and verify. |
| 285 | ${set_inprogress_state}= Get SOL Setting Set in progress |
| 286 | Should Be Equal ${prog} ${set_inprogress_state} |
| 287 | END |
| 288 | |
| 289 | |
Rahul Maheshwari | 982fee4 | 2017-05-03 00:33:15 -0500 | [diff] [blame] | 290 | *** Keywords *** |
| 291 | |
Rahul Maheshwari | 982fee4 | 2017-05-03 00:33:15 -0500 | [diff] [blame] | 292 | Check IPMI SOL Output Content |
| 293 | [Documentation] Check if SOL has given content. |
George Keishing | 2620672 | 2021-11-17 01:29:53 -0600 | [diff] [blame] | 294 | [Arguments] ${data} ${file_path}=${IPMI_SOL_LOG_FILE} |
Rahul Maheshwari | 982fee4 | 2017-05-03 00:33:15 -0500 | [diff] [blame] | 295 | # Description of argument(s): |
| 296 | # data Content which need to be checked(e.g. Petitboot, ISTEP). |
| 297 | # file_path The file path on the local machine to check SOL content. |
George Keishing | 2620672 | 2021-11-17 01:29:53 -0600 | [diff] [blame] | 298 | # By default it check SOL content from log/sol_<BMC_IP>. |
Rahul Maheshwari | 982fee4 | 2017-05-03 00:33:15 -0500 | [diff] [blame] | 299 | |
George Keishing | 6f88c5e | 2019-07-03 13:54:12 -0500 | [diff] [blame] | 300 | ${output}= OperatingSystem.Get File ${file_path} encoding_errors=ignore |
Rahul Maheshwari | 982fee4 | 2017-05-03 00:33:15 -0500 | [diff] [blame] | 301 | Should Contain ${output} ${data} case_insensitive=True |
Rahul Maheshwari | d629b5c | 2017-05-23 08:06:28 -0500 | [diff] [blame] | 302 | |
| 303 | |
| 304 | Verify SOL Setting |
| 305 | [Documentation] Verify SOL Setting via IPMI. |
| 306 | [Arguments] ${setting_name} ${min_value} ${max_value} |
| 307 | # Description of Arguments: |
| 308 | # setting_name Setting to verify (e.g. "retry-count"). |
| 309 | # min_value min valid value for given setting. |
| 310 | # max_value max valid value for given setting. |
| 311 | |
| 312 | ${value}= |
| 313 | ... Evaluate random.randint(${min_value}, ${max_value}) modules=random |
| 314 | |
| 315 | # Character accumulate level setting is set in multiples of 5. |
| 316 | # Retry interval setting is set in multiples of 10. |
| 317 | # Reference IPMI specification v2.0 |
| 318 | |
| 319 | ${expected_value}= Run Keyword If |
| 320 | ... '${setting_name}' == 'character-accumulate-level' Evaluate ${value}*5 |
| 321 | ... ELSE IF '${setting_name}' == 'retry-interval' Evaluate ${value}*10 |
| 322 | ... ELSE Set Variable ${value} |
| 323 | |
| 324 | Set SOL Setting ${setting_name} '${value}' |
| 325 | |
| 326 | # Replace "-" with space " " in setting name. |
| 327 | # E.g. "retry-count" to "retry count" |
| 328 | ${setting_name}= Evaluate $setting_name.replace('-',' ') |
| 329 | |
| 330 | ${sol_info_dict}= Get SOL Info |
| 331 | |
| 332 | # Get exact SOL setting name from sol info output. |
| 333 | ${list}= Get Matches ${sol_info_dict} ${setting_name}* |
| 334 | ... case_insensitive=${True} |
| 335 | ${setting_name_from_dict}= Get From List ${list} 0 |
| 336 | |
| 337 | # Get SOL setting value from above setting name. |
| 338 | ${setting_value}= Get From Dictionary |
| 339 | ... ${sol_info_dict} ${setting_name_from_dict} |
| 340 | |
| 341 | Should Be Equal '${setting_value}' '${expected_value}' |
| 342 | |
George Keishing | 2620672 | 2021-11-17 01:29:53 -0600 | [diff] [blame] | 343 | IPMI Power Off stack_mode=skip |
George Keishing | e053d34 | 2019-10-25 07:16:20 -0500 | [diff] [blame] | 344 | |
Rahul Maheshwari | d629b5c | 2017-05-23 08:06:28 -0500 | [diff] [blame] | 345 | Initiate Host Boot Via External IPMI wait=${0} |
| 346 | |
| 347 | Activate SOL Via IPMI |
George Keishing | e053d34 | 2019-10-25 07:16:20 -0500 | [diff] [blame] | 348 | Wait Until Keyword Succeeds 3 mins 15 secs |
George Keishing | d6ddf49 | 2018-10-24 09:53:12 -0500 | [diff] [blame] | 349 | ... Check IPMI SOL Output Content Welcome to Hostboot |
George Keishing | 0ea976a | 2017-12-08 01:09:40 -0600 | [diff] [blame] | 350 | |
George Keishing | e053d34 | 2019-10-25 07:16:20 -0500 | [diff] [blame] | 351 | Wait Until Keyword Succeeds 3 mins 15 secs |
George Keishing | 0ea976a | 2017-12-08 01:09:40 -0600 | [diff] [blame] | 352 | ... Check IPMI SOL Output Content ISTEP |
Rahul Maheshwari | d629b5c | 2017-05-23 08:06:28 -0500 | [diff] [blame] | 353 | |
George Keishing | e053d34 | 2019-10-25 07:16:20 -0500 | [diff] [blame] | 354 | |
Rahul Maheshwari | 9e0b4d6 | 2017-06-21 06:42:46 -0500 | [diff] [blame] | 355 | Get SOL Setting |
| 356 | [Documentation] Returns status for given SOL setting. |
| 357 | [Arguments] ${setting} |
| 358 | # Description of argument(s): |
| 359 | # setting SOL setting which needs to be read(e.g. "Retry Count"). |
| 360 | |
| 361 | ${sol_info_dict}= Get SOL Info |
| 362 | ${setting_status}= Get From Dictionary ${sol_info_dict} ${setting} |
| 363 | |
| 364 | [Return] ${setting_status} |
| 365 | |
Rahul Maheshwari | d629b5c | 2017-05-23 08:06:28 -0500 | [diff] [blame] | 366 | |
| 367 | Restore Default SOL Configuration |
| 368 | [Documentation] Restore default SOL configuration. |
| 369 | |
Rahul Maheshwari | d71cd95 | 2017-06-20 21:30:51 -0500 | [diff] [blame] | 370 | Set SOL Setting enabled true |
Rahul Maheshwari | d629b5c | 2017-05-23 08:06:28 -0500 | [diff] [blame] | 371 | Set SOL Setting retry-count 7 |
| 372 | Set SOL Setting retry-interval 10 |
| 373 | Set SOL Setting character-accumulate-level 20 |
| 374 | Set SOL Setting character-send-threshold 1 |
Rahul Maheshwari | 6fe52b9 | 2017-06-16 03:35:26 -0500 | [diff] [blame] | 375 | Set SOL Setting privilege-level user |
Rahul Maheshwari | d629b5c | 2017-05-23 08:06:28 -0500 | [diff] [blame] | 376 | |
Rahul Maheshwari | d629b5c | 2017-05-23 08:06:28 -0500 | [diff] [blame] | 377 | |
George Keishing | 0ea976a | 2017-12-08 01:09:40 -0600 | [diff] [blame] | 378 | Test Teardown Execution |
Rahul Maheshwari | d629b5c | 2017-05-23 08:06:28 -0500 | [diff] [blame] | 379 | [Documentation] Do the post test teardown. |
| 380 | |
George Keishing | e053d34 | 2019-10-25 07:16:20 -0500 | [diff] [blame] | 381 | Wait Until Keyword Succeeds 15 sec 5 sec Restore Default SOL Configuration |
Rahul Maheshwari | d629b5c | 2017-05-23 08:06:28 -0500 | [diff] [blame] | 382 | Deactivate SOL Via IPMI |
Rahul Maheshwari | 2a17511 | 2017-08-22 05:06:49 -0500 | [diff] [blame] | 383 | ${sol_log}= Stop SOL Console Logging |
| 384 | Log ${sol_log} |
Rahul Maheshwari | d629b5c | 2017-05-23 08:06:28 -0500 | [diff] [blame] | 385 | FFDC On Test Case Fail |