Prashanth Katti | 26f9175 | 2021-04-08 09:23:17 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation Test Redfish session and its connection stability. |
| 4 | |
Prashanth Katti | 26f9175 | 2021-04-08 09:23:17 -0500 | [diff] [blame] | 5 | Resource ../../lib/bmc_redfish_utils.robot |
| 6 | Resource ../../lib/openbmc_ffdc.robot |
| 7 | |
Yi Hu | 02d3276 | 2024-03-07 14:34:34 -0800 | [diff] [blame] | 8 | Suite Setup Set Redfish Delete Session Flag ${0} |
| 9 | Suite Teardown Run Keywords Set Redfish Delete Session Flag ${1} AND Redfish.Logout |
Prashanth Katti | 26f9175 | 2021-04-08 09:23:17 -0500 | [diff] [blame] | 10 | Test Setup Printn |
| 11 | Test Teardown FFDC On Test Case Fail |
| 12 | |
| 13 | |
| 14 | *** Variables *** |
| 15 | |
| 16 | ${duration} 6h |
| 17 | ${interval} 30s |
| 18 | ${reboot_interval} 30m |
Prashanth Katti | 26f9175 | 2021-04-08 09:23:17 -0500 | [diff] [blame] | 19 | |
| 20 | |
| 21 | *** Test Cases *** |
| 22 | |
| 23 | Create Session And Check Connection Stability |
George Keishing | 89f499d | 2021-04-19 05:25:40 -0500 | [diff] [blame] | 24 | [Documentation] Send heartbeat on session continuously and verify connection stability. |
Prashanth Katti | 26f9175 | 2021-04-08 09:23:17 -0500 | [diff] [blame] | 25 | [Tags] Create_Session_And_Check_Connection_Stability |
| 26 | [Setup] Redfish.logout |
| 27 | |
| 28 | # Clear old session and start new session. |
| 29 | Redfish.Login |
| 30 | |
| 31 | Repeat Keyword ${duration} Send Heartbeat |
| 32 | |
| 33 | |
| 34 | Create Session And Check Connection Stability On Reboot |
| 35 | [Documentation] Create Session And Check Connection Stability On Reboot |
| 36 | [Tags] Create_Session_And_Check_Connection_Stability_On_Reboot |
| 37 | [Setup] Redfish.logout |
| 38 | |
| 39 | # Clear old session and start new session. |
| 40 | Redfish.Login |
| 41 | |
| 42 | Repeat Keyword ${duration} Check Connection On Reboot |
| 43 | |
| 44 | |
| 45 | *** Keywords *** |
| 46 | |
| 47 | Send Heartbeat |
| 48 | [Documentation] Send heartbeat to BMC. |
| 49 | |
| 50 | ${hostname}= Redfish.Get Attribute ${REDFISH_NW_PROTOCOL_URI} HostName |
| 51 | Sleep ${interval} |
| 52 | |
| 53 | |
| 54 | Check Connection On Reboot |
| 55 | [Documentation] Send heartbeat on BMC reboot. |
| 56 | |
| 57 | # Reboot BMC |
| 58 | Redfish OBMC Reboot (Off) |
| 59 | |
| 60 | # Verify session is still active and no issues on connection after reboot. |
| 61 | Repeat Keyword ${reboot_interval} Send Heartbeat |