blob: 1d619b5d827287b1680e5cbf2162b53b16a60410 [file] [log] [blame]
*** Settings ***
Documentation Test Redfish session and its connection stability.
Resource ../../lib/bmc_redfish_utils.robot
Resource ../../lib/openbmc_ffdc.robot
Suite Teardown Redfish.Logout
Test Setup Printn
Test Teardown FFDC On Test Case Fail
*** Variables ***
${duration} 6h
${interval} 30s
${reboot_interval} 30m
${REDFISH_DELETE_SESSIONS} ${0}
*** Test Cases ***
Create Session And Check Connection Stability
[Documentation] Send heartbeat on session continuously and verify connection stability.
[Tags] Create_Session_And_Check_Connection_Stability
[Setup] Redfish.logout
# Clear old session and start new session.
Redfish.Login
Repeat Keyword ${duration} Send Heartbeat
Create Session And Check Connection Stability On Reboot
[Documentation] Create Session And Check Connection Stability On Reboot
[Tags] Create_Session_And_Check_Connection_Stability_On_Reboot
[Setup] Redfish.logout
# Clear old session and start new session.
Redfish.Login
Repeat Keyword ${duration} Check Connection On Reboot
*** Keywords ***
Send Heartbeat
[Documentation] Send heartbeat to BMC.
${hostname}= Redfish.Get Attribute ${REDFISH_NW_PROTOCOL_URI} HostName
Sleep ${interval}
Check Connection On Reboot
[Documentation] Send heartbeat on BMC reboot.
# Reboot BMC
Redfish OBMC Reboot (Off)
# Verify session is still active and no issues on connection after reboot.
Repeat Keyword ${reboot_interval} Send Heartbeat