Michael Tritz | 935c18e | 2017-03-08 11:45:41 -0600 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Test Error logging. |
| 3 | |
| 4 | Resource ../lib/connection_client.robot |
| 5 | Resource ../lib/openbmc_ffdc.robot |
| 6 | Resource ../lib/utils.robot |
| 7 | Resource ../lib/state_manager.robot |
Rahul Maheshwari | 92972e7 | 2017-06-22 00:59:59 -0500 | [diff] [blame] | 8 | Resource ../lib/ipmi_client.robot |
George Keishing | 1d82dd1 | 2017-07-24 01:16:23 -0500 | [diff] [blame] | 9 | Resource ../lib/boot_utils.robot |
Sivas SRR | cf6714f | 2018-03-26 10:51:29 -0500 | [diff] [blame] | 10 | Resource ../lib/logging_utils.robot |
Michael Tritz | 935c18e | 2017-03-08 11:45:41 -0600 | [diff] [blame] | 11 | |
George Keishing | 95c371a | 2017-09-14 15:42:33 -0500 | [diff] [blame] | 12 | Test Setup Test Setup Execution |
George Keishing | fa2fc16 | 2018-01-08 07:41:13 -0600 | [diff] [blame] | 13 | Test Teardown Test Teardown Execution |
George Keishing | 184a89a | 2017-06-27 07:12:16 -0500 | [diff] [blame] | 14 | Suite Teardown Delete Error Logs And Verify |
Michael Tritz | 935c18e | 2017-03-08 11:45:41 -0600 | [diff] [blame] | 15 | |
George Keishing | 1d82dd1 | 2017-07-24 01:16:23 -0500 | [diff] [blame] | 16 | *** Variables *** |
| 17 | |
| 18 | ${stack_mode} skip |
| 19 | |
Michael Tritz | 935c18e | 2017-03-08 11:45:41 -0600 | [diff] [blame] | 20 | *** Test Cases *** |
| 21 | |
George Keishing | 1d82dd1 | 2017-07-24 01:16:23 -0500 | [diff] [blame] | 22 | Error Log Check After BMC Reboot |
| 23 | [Documentation] Check error log after BMC rebooted. |
| 24 | [Tags] Error_Log_Check_At_BMC_Ready |
| 25 | # 1. Power off. |
| 26 | # 2. Delete error logs. |
| 27 | # 3. Reboot BMC. |
Gunnar Mills | 917ba1a | 2018-04-08 16:42:12 -0500 | [diff] [blame] | 28 | # 4. Check if error log exists. |
George Keishing | 1d82dd1 | 2017-07-24 01:16:23 -0500 | [diff] [blame] | 29 | |
George Keishing | 3f4a3eb | 2017-09-26 10:33:16 -0500 | [diff] [blame] | 30 | Smart Power Off |
George Keishing | 1d82dd1 | 2017-07-24 01:16:23 -0500 | [diff] [blame] | 31 | Delete Error Logs And Verify |
George Keishing | 3f4a3eb | 2017-09-26 10:33:16 -0500 | [diff] [blame] | 32 | OBMC Reboot (off) stack_mode=normal |
George Keishing | 1d82dd1 | 2017-07-24 01:16:23 -0500 | [diff] [blame] | 33 | Error Logs Should Not Exist |
| 34 | |
| 35 | |
| 36 | Error Log Check After Host Poweron |
| 37 | [Documentation] Check error log after host has booted. |
| 38 | [Tags] Error_Log_Check_At_Host_Booted |
| 39 | # 1. Delete error logs |
| 40 | # 1. Power on. |
Gunnar Mills | 917ba1a | 2018-04-08 16:42:12 -0500 | [diff] [blame] | 41 | # 3. Check if error log exists. |
George Keishing | 1d82dd1 | 2017-07-24 01:16:23 -0500 | [diff] [blame] | 42 | |
| 43 | Delete Error Logs And Verify |
| 44 | REST Power On |
| 45 | Error Logs Should Not Exist |
| 46 | |
| 47 | |
Michael Tritz | 935c18e | 2017-03-08 11:45:41 -0600 | [diff] [blame] | 48 | Create Test Error And Verify |
| 49 | [Documentation] Create error logs and verify via REST. |
| 50 | [Tags] Create_Test_Error_And_Verify |
| 51 | |
| 52 | Create Test Error Log |
| 53 | Verify Test Error Log |
| 54 | |
| 55 | |
| 56 | Test Error Persistency On Restart |
George Keishing | 184a89a | 2017-06-27 07:12:16 -0500 | [diff] [blame] | 57 | [Documentation] Restart logging service and verify error logs. |
Michael Tritz | 935c18e | 2017-03-08 11:45:41 -0600 | [diff] [blame] | 58 | [Tags] Test_Error_Persistency_On_Restart |
| 59 | |
| 60 | Create Test Error Log |
| 61 | Verify Test Error Log |
Joy Onyerikwu | 2ef965a | 2018-05-24 15:23:27 -0500 | [diff] [blame] | 62 | BMC Execute Command |
Michael Tritz | 935c18e | 2017-03-08 11:45:41 -0600 | [diff] [blame] | 63 | ... systemctl restart xyz.openbmc_project.Logging.service |
| 64 | Sleep 10s reason=Wait for logging service to restart properly. |
George Keishing | 184a89a | 2017-06-27 07:12:16 -0500 | [diff] [blame] | 65 | Verify Test Error Log |
Michael Tritz | 935c18e | 2017-03-08 11:45:41 -0600 | [diff] [blame] | 66 | |
| 67 | |
George Keishing | 742b060 | 2017-07-28 14:20:53 -0500 | [diff] [blame] | 68 | Test Error Entry Numbering Reset On Restart |
| 69 | [Documentation] Restarts logging service and verify error logs entry start |
| 70 | ... from entry "Id" 1. |
| 71 | # 1. Create error log. |
| 72 | # 2. Verify error log. |
| 73 | # 3. Delete error log. |
| 74 | # 4. Restart logging service. |
| 75 | # 5. Create error log. |
| 76 | # 6. Verify new error log entry starts with Id entry 1. |
| 77 | |
| 78 | [Tags] Test_Error_Entry_Numbering_Reset_On_Restart |
| 79 | # Example Error logs: |
| 80 | # "/xyz/openbmc_project/logging/entry/1": { |
| 81 | # "AdditionalData": [ |
| 82 | # "STRING=FOO" |
| 83 | # ], |
| 84 | # "Id": 1, <--- Entry value should be 1. |
| 85 | # "Message": "example.xyz.openbmc_project.Example.Elog.AutoTestSimple", |
| 86 | # "Resolved": 0, |
| 87 | # "Severity": "xyz.openbmc_project.Logging.Entry.Level.Error", |
| 88 | # "Timestamp": 1490818990051, |
| 89 | # "associations": [] |
| 90 | # }, |
| 91 | |
| 92 | Create Test Error Log |
| 93 | Verify Test Error Log |
George Keishing | cc71c3c | 2017-09-20 09:38:03 -0500 | [diff] [blame] | 94 | Delete All Error Logs |
Joy Onyerikwu | 2ef965a | 2018-05-24 15:23:27 -0500 | [diff] [blame] | 95 | BMC Execute Command |
George Keishing | 742b060 | 2017-07-28 14:20:53 -0500 | [diff] [blame] | 96 | ... systemctl restart xyz.openbmc_project.Logging.service |
| 97 | Sleep 10s reason=Wait for logging service to restart properly. |
| 98 | Create Test Error Log |
| 99 | ${elog_entry}= Get URL List ${BMC_LOGGING_ENTRY} |
| 100 | ${entry_id}= Read Attribute ${elog_entry[0]} Id |
| 101 | Should Be Equal ${entry_id} ${1} |
| 102 | |
| 103 | |
Michael Tritz | 935c18e | 2017-03-08 11:45:41 -0600 | [diff] [blame] | 104 | Test Error Persistency On Reboot |
George Keishing | 184a89a | 2017-06-27 07:12:16 -0500 | [diff] [blame] | 105 | [Documentation] Reboot BMC and verify error logs. |
Michael Tritz | 935c18e | 2017-03-08 11:45:41 -0600 | [diff] [blame] | 106 | [Tags] Test_Error_Persistency_On_Reboot |
| 107 | |
| 108 | Create Test Error Log |
| 109 | Verify Test Error Log |
| 110 | Initiate BMC Reboot |
| 111 | Wait Until Keyword Succeeds 10 min 10 sec |
| 112 | ... Is BMC Ready |
George Keishing | 184a89a | 2017-06-27 07:12:16 -0500 | [diff] [blame] | 113 | Verify Test Error Log |
Michael Tritz | 935c18e | 2017-03-08 11:45:41 -0600 | [diff] [blame] | 114 | |
| 115 | |
George Keishing | 04bc481 | 2017-03-30 03:33:31 -0500 | [diff] [blame] | 116 | Create Test Error And Verify Resolved Field |
| 117 | [Documentation] Create error log and verify "Resolved" |
| 118 | ... field is 0. |
| 119 | [Tags] Create_Test_Error_And_Verify_Resolved_Field |
| 120 | |
| 121 | # Example Error log: |
| 122 | # "/xyz/openbmc_project/logging/entry/1": { |
| 123 | # "AdditionalData": [ |
| 124 | # "STRING=FOO" |
| 125 | # ], |
| 126 | # "Id": 1, |
| 127 | # "Message": "example.xyz.openbmc_project.Example.Elog.AutoTestSimple", |
| 128 | # "Resolved": 0, |
| 129 | # "Severity": "xyz.openbmc_project.Logging.Entry.Level.Error", |
| 130 | # "Timestamp": 1490817164983, |
| 131 | # "associations": [] |
| 132 | # }, |
| 133 | |
| 134 | # It's work in progress, but it's mnfg need. To mark an error as |
| 135 | # resolved, without deleting the error, mfg will set this bool |
| 136 | # property. |
| 137 | # In this test context we are making sure "Resolved" field is "0" |
| 138 | # by default. |
| 139 | |
George Keishing | cc71c3c | 2017-09-20 09:38:03 -0500 | [diff] [blame] | 140 | Delete All Error Logs |
George Keishing | 04bc481 | 2017-03-30 03:33:31 -0500 | [diff] [blame] | 141 | Create Test Error Log |
George Keishing | 184a89a | 2017-06-27 07:12:16 -0500 | [diff] [blame] | 142 | ${elog_entry}= Get URL List ${BMC_LOGGING_ENTRY} |
| 143 | ${resolved}= Read Attribute ${elog_entry[0]} Resolved |
George Keishing | 04bc481 | 2017-03-30 03:33:31 -0500 | [diff] [blame] | 144 | Should Be True ${resolved} == 0 |
| 145 | |
| 146 | |
| 147 | Create Test Errors And Verify Time Stamp |
| 148 | [Documentation] Create error logs and verify time stamp. |
| 149 | [Tags] Create_Test_Error_And_Verify_Time_Stamp |
| 150 | |
| 151 | # Example Error logs: |
| 152 | # "/xyz/openbmc_project/logging/entry/1": { |
| 153 | # "AdditionalData": [ |
| 154 | # "STRING=FOO" |
| 155 | # ], |
| 156 | # "Id": 1, |
| 157 | # "Message": "example.xyz.openbmc_project.Example.Elog.AutoTestSimple", |
| 158 | # "Resolved": 0, |
| 159 | # "Severity": "xyz.openbmc_project.Logging.Entry.Level.Error", |
| 160 | # "Timestamp": 1490818990051, <--- Time stamp |
| 161 | # "associations": [] |
| 162 | # }, |
| 163 | # "/xyz/openbmc_project/logging/entry/2": { |
| 164 | # "AdditionalData": [ |
| 165 | # "STRING=FOO" |
| 166 | # ], |
| 167 | # "Id": 2, |
| 168 | # "Message": "example.xyz.openbmc_project.Example.Elog.AutoTestSimple", |
| 169 | # "Resolved": 0, |
| 170 | # "Severity": "xyz.openbmc_project.Logging.Entry.Level.Error", |
| 171 | # "Timestamp": 1490818992116, <---- Time stamp |
| 172 | # "associations": [] |
| 173 | # }, |
| 174 | |
George Keishing | cc71c3c | 2017-09-20 09:38:03 -0500 | [diff] [blame] | 175 | Delete All Error Logs |
George Keishing | 04bc481 | 2017-03-30 03:33:31 -0500 | [diff] [blame] | 176 | Create Test Error Log |
| 177 | Create Test Error Log |
| 178 | # The error log generated is associated with the epoc time and unique |
| 179 | # for every error and in increasing time stamp. |
George Keishing | 184a89a | 2017-06-27 07:12:16 -0500 | [diff] [blame] | 180 | ${elog_entry}= Get URL List ${BMC_LOGGING_ENTRY} |
| 181 | ${time_stamp1}= Read Attribute ${elog_entry[0]} Timestamp |
| 182 | ${time_stamp2}= Read Attribute ${elog_entry[1]} Timestamp |
George Keishing | 6eb10b8 | 2017-06-06 10:02:09 -0500 | [diff] [blame] | 183 | Should Be True ${time_stamp2} > ${time_stamp1} |
George Keishing | 04bc481 | 2017-03-30 03:33:31 -0500 | [diff] [blame] | 184 | |
Sweta Potthuri | 9ce8eeb | 2017-05-08 04:20:11 -0500 | [diff] [blame] | 185 | Create Test Error Log And Delete |
| 186 | [Documentation] Create an error log and delete it. |
| 187 | [Tags] Create_Test_Error_Log_And_Delete |
| 188 | |
| 189 | Delete Error Logs And Verify |
| 190 | Create Test Error Log |
| 191 | Delete Error Logs And Verify |
| 192 | |
| 193 | Create Multiple Test Error Logs And Delete All |
| 194 | [Documentation] Create multiple error logs and delete all. |
| 195 | [Tags] Create_Multiple_Test_Error_Logs_And_Delete_All |
| 196 | |
| 197 | Delete Error Logs And Verify |
| 198 | Create Test Error Log |
| 199 | Create Test Error Log |
| 200 | Create Test Error Log |
| 201 | Delete Error Logs And Verify |
| 202 | |
| 203 | Create Two Test Error Logs And Delete One |
| 204 | [Documentation] Create two error logs and delete the first entry. |
| 205 | [Tags] Create_Two_Test_Error_Logs_And_Delete_One |
| 206 | |
| 207 | Delete Error Logs And Verify |
| 208 | Create Test Error Log |
George Keishing | 184a89a | 2017-06-27 07:12:16 -0500 | [diff] [blame] | 209 | ${elog_entry}= Get URL List ${BMC_LOGGING_ENTRY} |
Sweta Potthuri | 9ce8eeb | 2017-05-08 04:20:11 -0500 | [diff] [blame] | 210 | Create Test Error Log |
George Keishing | 184a89a | 2017-06-27 07:12:16 -0500 | [diff] [blame] | 211 | Delete Error log Entry ${elog_entry[0]} |
| 212 | ${resp}= OpenBMC Get Request ${elog_entry[0]} |
Sweta Potthuri | 9ce8eeb | 2017-05-08 04:20:11 -0500 | [diff] [blame] | 213 | Should Be Equal As Strings ${resp.status_code} ${HTTP_NOT_FOUND} |
George Keishing | 04bc481 | 2017-03-30 03:33:31 -0500 | [diff] [blame] | 214 | |
Rahul Maheshwari | 92972e7 | 2017-06-22 00:59:59 -0500 | [diff] [blame] | 215 | |
George Keishing | 845d9dc | 2017-06-16 14:49:29 -0500 | [diff] [blame] | 216 | Verify Watchdog Timedout Error |
| 217 | [Documentation] Trigger watchdog timed out and verify errorlog generated. |
| 218 | [Tags] Verify_Watchdog_Timedout_Error |
| 219 | |
George Keishing | d397e6a | 2017-08-11 11:19:24 -0500 | [diff] [blame] | 220 | REST Power Off |
| 221 | REST Power On |
| 222 | |
George Keishing | 845d9dc | 2017-06-16 14:49:29 -0500 | [diff] [blame] | 223 | # Clear errors if there are any. |
George Keishing | cc71c3c | 2017-09-20 09:38:03 -0500 | [diff] [blame] | 224 | Delete All Error Logs |
George Keishing | 845d9dc | 2017-06-16 14:49:29 -0500 | [diff] [blame] | 225 | |
George Keishing | 845d9dc | 2017-06-16 14:49:29 -0500 | [diff] [blame] | 226 | Trigger Host Watchdog Error |
| 227 | |
George Keishing | 45921ea | 2017-11-23 04:32:56 -0600 | [diff] [blame] | 228 | # Logging took time to generate the timedout error. |
| 229 | Wait Until Keyword Succeeds 2 min 30 sec |
| 230 | ... Verify Watchdog Errorlog Content |
George Keishing | 845d9dc | 2017-06-16 14:49:29 -0500 | [diff] [blame] | 231 | |
| 232 | |
Rahul Maheshwari | b44b6ec | 2017-07-05 00:23:03 -0500 | [diff] [blame] | 233 | Verify IPMI SEL Delete |
| 234 | [Documentation] Verify IPMI SEL delete operation. |
| 235 | [Tags] Verify_IPMI_SEL_Delete |
| 236 | |
| 237 | Delete Error Logs And Verify |
| 238 | Create Test Error Log |
| 239 | |
| 240 | ${sel_list}= Run IPMI Standard Command sel list |
George Keishing | a2957ba | 2019-01-10 08:06:46 -0600 | [diff] [blame^] | 241 | Should Not Be Equal As Strings ${sel_list} SEL has no entries |
| 242 | |
Rahul Maheshwari | b44b6ec | 2017-07-05 00:23:03 -0500 | [diff] [blame] | 243 | # Example of SEL List: |
| 244 | # 4 | 04/21/2017 | 10:51:16 | System Event #0x01 | Undetermined system hardware failure | Asserted |
| 245 | |
| 246 | ${sel_entry}= Fetch from Left ${sel_list} | |
| 247 | ${sel_entry}= Evaluate $sel_entry.replace(' ','') |
| 248 | ${sel_entry}= Convert To Integer 0x${sel_entry} |
| 249 | |
| 250 | ${sel_delete}= Run IPMI Standard Command sel delete ${sel_entry} |
| 251 | Should Be Equal As Strings ${sel_delete} Deleted entry ${sel_entry} |
| 252 | ... case_insensitive=True |
| 253 | |
| 254 | ${sel_list}= Run IPMI Standard Command sel list |
| 255 | Should Be Equal As Strings ${sel_list} SEL has no entries |
| 256 | ... case_insensitive=True |
| 257 | |
| 258 | |
Rahul Maheshwari | b44b6ec | 2017-07-05 00:23:03 -0500 | [diff] [blame] | 259 | Delete Non Existing SEL Entry |
| 260 | [Documentation] Delete non existing SEL entry. |
| 261 | [Tags] Delete_Non_Existing_SEL_Entry |
| 262 | |
| 263 | Delete Error Logs And Verify |
| 264 | ${sel_delete}= Run Keyword And Expect Error * |
| 265 | ... Run IPMI Standard Command sel delete 100 |
| 266 | Should Contain ${sel_delete} Unable to delete entry |
| 267 | ... case_insensitive=True |
| 268 | |
| 269 | |
| 270 | Delete Invalid SEL Entry |
| 271 | [Documentation] Delete invalid SEL entry. |
| 272 | [Tags] Delete_Invalid_SEL_Entry |
| 273 | |
| 274 | ${sel_delete}= Run Keyword And Expect Error * |
| 275 | ... Run IPMI Standard Command sel delete abc |
| 276 | Should Contain ${sel_delete} Given SEL ID 'abc' is invalid |
| 277 | ... case_insensitive=True |
| 278 | |
| 279 | |
Rahul Maheshwari | e89b509 | 2017-06-23 00:24:15 -0500 | [diff] [blame] | 280 | Verify IPMI SEL Entries |
| 281 | [Documentation] Verify IPMI SEL's entries info. |
| 282 | [Tags] Verify_IPMI_SEL_Entries |
| 283 | |
| 284 | Delete Error Logs And Verify |
| 285 | |
| 286 | # Generate error logs of random count. |
| 287 | ${count}= Evaluate random.randint(1, 5) modules=random |
| 288 | Repeat Keyword ${count} Create Test Error Log |
| 289 | |
| 290 | ${sel_entries_count}= Get IPMI SEL Setting Entries |
| 291 | Should Be Equal As Strings ${sel_entries_count} ${count} |
| 292 | |
| 293 | |
| 294 | Verify IPMI SEL Last Add Time |
| 295 | [Documentation] Verify IPMI SEL's last added timestamp. |
| 296 | [Tags] Verify_IPMI_SEL_Last_Add_Time |
| 297 | |
| 298 | Create Test Error Log |
| 299 | ${sel_time}= Run IPMI Standard Command sel time get |
| 300 | ${sel_time}= Convert Date ${sel_time} |
| 301 | ... date_format=%m/%d/%Y %H:%M:%S exclude_millis=True |
| 302 | |
| 303 | ${sel_last_add_time}= Get IPMI SEL Setting Last Add Time |
| 304 | ${sel_last_add_time}= Convert Date ${sel_last_add_time} |
| 305 | ... date_format=%m/%d/%Y %H:%M:%S exclude_millis=True |
| 306 | |
| 307 | ${time-diff}= |
| 308 | ... Subtract Date From Date ${sel_last_add_time} ${sel_time} |
| 309 | |
| 310 | # Verify if the delay in current time check and last add SEL time |
| 311 | # is less or equals to 2 seconds. |
| 312 | Should Be True ${time-diff} <= 2 |
| 313 | |
Sweta Potthuri | 96d8249 | 2017-08-23 09:03:38 -0500 | [diff] [blame] | 314 | Verify Error Logs Capping |
| 315 | [Documentation] Verify error logs capping. |
| 316 | [Tags] Verify_Error_Logs_Capping |
| 317 | |
| 318 | Delete Error Logs And Verify |
George Keishing | fa2fc16 | 2018-01-08 07:41:13 -0600 | [diff] [blame] | 319 | ${cmd}= Catenate for i in {1..201}; do /tmp/tarball/bin/logging-test -c |
| 320 | ... AutoTestSimple; done |
Joy Onyerikwu | 2ef965a | 2018-05-24 15:23:27 -0500 | [diff] [blame] | 321 | BMC Execute Command ${cmd} |
Sweta Potthuri | 96d8249 | 2017-08-23 09:03:38 -0500 | [diff] [blame] | 322 | ${count}= Count Error Entries |
George Keishing | fa2fc16 | 2018-01-08 07:41:13 -0600 | [diff] [blame] | 323 | Run Keyword If ${count} > 200 |
| 324 | ... Fail Error logs created exceeded max capacity 200. |
Rahul Maheshwari | b44b6ec | 2017-07-05 00:23:03 -0500 | [diff] [blame] | 325 | |
Sweta Potthuri | d9e746e | 2018-01-08 09:38:42 -0600 | [diff] [blame] | 326 | Test Error Log Rotation |
| 327 | [Documentation] Verify creation of 201 error log is replaced by entry id 1. |
| 328 | [Tags] Test_Error_Log_Rotation |
| 329 | |
| 330 | Delete Error Logs And Verify |
| 331 | |
| 332 | # Restart service. |
| 333 | BMC Execute Command |
| 334 | ... systemctl restart xyz.openbmc_project.Logging.service |
| 335 | Sleep 10s reason=Wait for logging service to restart properly. |
| 336 | |
| 337 | # Create 200 error logs. |
| 338 | ${cmd}= Catenate for i in {1..200}; do /tmp/tarball/bin/logging-test -c |
| 339 | ... AutoTestSimple;done |
| 340 | BMC Execute Command ${cmd} |
| 341 | |
| 342 | # Check the response for 200th error log. |
| 343 | ${resp}= OpenBMC Get Request ${BMC_LOGGING_ENTRY}${200} |
| 344 | Should Be Equal As Strings ${resp.status_code} ${HTTP_OK} |
| 345 | |
| 346 | # Check if error log with id 1 exists. |
| 347 | ${resp}= OpenBMC Get Request ${BMC_LOGGING_ENTRY}${1} |
| 348 | Should Be Equal As Strings ${resp.status_code} ${HTTP_OK} |
| 349 | |
| 350 | # Create error log and verify the entry ID is 201 and not 1. |
| 351 | Create Test Error Log |
| 352 | ${resp}= OpenBMC Get Request ${BMC_LOGGING_ENTRY}${201} |
| 353 | Should Be Equal As Strings ${resp.status_code} ${HTTP_OK} |
| 354 | |
| 355 | # Error log 1 is not present. |
| 356 | ${resp}= OpenBMC Get Request ${BMC_LOGGING_ENTRY}${1} |
| 357 | Should Be Equal As Strings ${resp.status_code} ${HTTP_NOT_FOUND} |
| 358 | |
Michael Tritz | 935c18e | 2017-03-08 11:45:41 -0600 | [diff] [blame] | 359 | *** Keywords *** |
| 360 | |
George Keishing | 95c371a | 2017-09-14 15:42:33 -0500 | [diff] [blame] | 361 | Test Setup Execution |
| 362 | [Documentation] Do test case setup tasks. |
| 363 | |
| 364 | ${status}= Run Keyword And Return Status Logging Test Binary Exist |
| 365 | Run Keyword If ${status} == ${False} Install Tarball |
| 366 | Delete Error Logs And Verify |
| 367 | |
| 368 | |
George Keishing | fa2fc16 | 2018-01-08 07:41:13 -0600 | [diff] [blame] | 369 | Test Teardown Execution |
George Keishing | 845d9dc | 2017-06-16 14:49:29 -0500 | [diff] [blame] | 370 | [Documentation] Do the post test teardown. |
| 371 | # 1. Capture FFDC on test failure. |
| 372 | # 2. Delete error logs. |
| 373 | # 3. Close all open SSH connections. |
| 374 | # 4. Clear all REST sessions. |
| 375 | |
| 376 | FFDC On Test Case Fail |
George Keishing | cc71c3c | 2017-09-20 09:38:03 -0500 | [diff] [blame] | 377 | Delete All Error Logs |
George Keishing | 845d9dc | 2017-06-16 14:49:29 -0500 | [diff] [blame] | 378 | Close All Connections |