Added new testcases to policies sub-menu
Changes:
- Disable SSH Via GUI And Verify Persistency On BMC Reboot
- Disable IPMI Via GUI And Verify Persistency On BMC Reboot
Tested:
Ran Test
gui/gui_test/security_and_access_menu/test_policies_sub_menu.robot
Change-Id: I4868ccdf5301750e945100fd76cdcca12d3e5c91
Signed-off-by: meghagn <Megha.GN@ibm.com>
diff --git a/gui/gui_test/security_and_access_menu/test_policies_sub_menu.robot b/gui/gui_test/security_and_access_menu/test_policies_sub_menu.robot
index eef48d8..1a5b978 100644
--- a/gui/gui_test/security_and_access_menu/test_policies_sub_menu.robot
+++ b/gui/gui_test/security_and_access_menu/test_policies_sub_menu.robot
@@ -121,6 +121,42 @@
Wait Until Keyword Succeeds 2 min 30 sec Run IPMI Standard Command sel info
+Disable SSH Via GUI And Verify Persistency On BMC Reboot
+ [Documentation] Login to GUI Policies page,disable SSH and
+ ... verify that SSH to BMC stops working after disabling SSH on BMC reboot.
+ [Tags] Disable_SSH_Via_GUI_And_Verify_Persistency_On_BMC_Reboot
+ [Teardown] Run Keywords Wait Until Keyword Succeeds 2 min 15 sec Enable SSH Protocol ${True}
+ ... AND Wait Until Keyword Succeeds 2 min 15 sec Open Connection And Login
+
+ Set Policy Via GUI SSH Disabled
+
+ Reboot BMC via GUI
+
+ ${status}= Run Keyword And Return Status
+ ... Wait Until Keyword Succeeds 10 sec 5 sec Open Connection And Login
+
+ Should Be Equal As Strings ${status} False
+ ... msg=SSH login still working after disabling SSH.
+
+
+Disable IPMI Via GUI And Verify Persistency On BMC Reboot
+ [Documentation] Login to GUI Policies page,disable IPMI and
+ ... verify persistency of IPMI command doesnot work on BMC reboot.
+ [Tags] Disable_IPMI_Via_GUI_And_Verify_Persistency_On_BMC_Reboot
+ [Teardown] Run Keywords Wait Until Keyword Succeeds 2 min 15 sec Enable IPMI Protocol ${True}
+ ... AND Wait Until Keyword Succeeds 2 min 15 sec Run IPMI Standard Command sel info
+
+ Set Policy Via GUI IPMI Disabled
+
+ Reboot BMC via GUI
+
+ ${status}= Run Keyword And Return Status
+ ... Wait Until Keyword Succeeds 10 sec 5 sec Run IPMI Standard Command sel info
+
+ Should Be Equal As Strings ${status} False
+ ... msg=IPMI command is working after disabling IPMI.
+
+
*** Keywords ***
Test Setup Execution