Fix SOL test use cases
Changes:
- Improve time wait on SOL data by organizing test power off
strategy.
- organize test teardown restore policies.
Change-Id: I68f94e11d46859632b0161c32a62c7e472965f23
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/ipmi/test_ipmi_sol.robot b/ipmi/test_ipmi_sol.robot
index 39098d7..f84f6da 100644
--- a/ipmi/test_ipmi_sol.robot
+++ b/ipmi/test_ipmi_sol.robot
@@ -125,12 +125,17 @@
[Documentation] Verify SOL during boot.
[Tags] Verify_SOL_During_Boot
- Redfish Power Off
+ Redfish Hard Power Off
Activate SOL Via IPMI
- Redfish Power On
+ Initiate Host Boot Via External IPMI wait=${0}
- Check IPMI SOL Output Content Welcome to Hostboot
- Check IPMI SOL Output Content ISTEP
+ Wait Until Keyword Succeeds 3 mins 15 secs
+ ... Check IPMI SOL Output Content Welcome to Hostboot
+
+ Wait Until Keyword Succeeds 3 mins 15 secs
+ ... Check IPMI SOL Output Content ISTEP
+
+ Redfish Hard Power Off
Verify Deactivate Non Existing SOL
@@ -230,19 +235,18 @@
Should Be Equal '${setting_value}' '${expected_value}'
- # Power on host to check if SOL is working fine with new setting.
- ${current_state}= Get Host State Via External IPMI
- Run Keyword If '${current_state}' == 'on'
- ... Initiate Host PowerOff Via External IPMI
+ Redfish Hard Power Off
+
Initiate Host Boot Via External IPMI wait=${0}
Activate SOL Via IPMI
- Wait Until Keyword Succeeds 10 mins 30 secs
+ Wait Until Keyword Succeeds 3 mins 15 secs
... Check IPMI SOL Output Content Welcome to Hostboot
- Wait Until Keyword Succeeds 3 mins 30 secs
+ Wait Until Keyword Succeeds 3 mins 15 secs
... Check IPMI SOL Output Content ISTEP
+
Get SOL Setting
[Documentation] Returns status for given SOL setting.
[Arguments] ${setting}
@@ -269,8 +273,8 @@
Test Teardown Execution
[Documentation] Do the post test teardown.
+ Wait Until Keyword Succeeds 15 sec 5 sec Restore Default SOL Configuration
Deactivate SOL Via IPMI
${sol_log}= Stop SOL Console Logging
Log ${sol_log}
FFDC On Test Case Fail
- Wait Until Keyword Succeeds 15 sec 5 sec Restore Default SOL Configuration