Added new test for expired password menu
Changes:
- Added test "Verify New Admin Password Persistency After BMC Reboot"
Tested:
- Ran successfully test_bmc_expire_password.robot
Change-Id: If82057b5cbcb7df9132ac8ab34a620fe073f1177
Signed-off-by: Megha G N <Megha.G.N@ibm.com>
diff --git a/security/test_bmc_expire_password.robot b/security/test_bmc_expire_password.robot
index 6839d30..a771b78 100644
--- a/security/test_bmc_expire_password.robot
+++ b/security/test_bmc_expire_password.robot
@@ -259,6 +259,25 @@
... valid_status_codes=[${HTTP_FORBIDDEN}]
+Verify New Admin Password Persistency After BMC Reboot
+ [Documentation] Verify new admin password persistency after BMC reboot.
+ [Tags] Verify_New_Admin_Password_Persistency_After_BMC_Reboot
+ [Setup] Redfish Create User ${admin_user} ${default_adminuser_passwd} Administrator ${True}
+ [Teardown] Restore Default Password For Admin User
+
+ Expire Password ${admin_user}
+
+ ${status}= Run Keyword And Return Status
+ ... Redfish.Patch /redfish/v1/AccountService/Accounts/${admin_user}
+ ... body={'Password': '${admin_password}'}
+
+ # Reboot BMC.
+ Redfish OBMC Reboot (off) stack_mode=skip
+
+ # Verify password is persisted after bmc reboot.
+ Redfish.Login ${admin_user} ${admin_password}
+
+
*** Keywords ***
Set Account Lockout Threshold