Added new test for Expired password menu

Changes:
    - Added test "Verify_Expire_Admin_Password_And_Update_Bad_Password_Length_Via_Redfish"

Tested:
    - Ran successfully test_bmc_expire_password.robot

Change-Id: I9317383af845c2aeec50a3be89a02d2b439ab19d
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 62ef99c..0d2fa75 100644
--- a/security/test_bmc_expire_password.robot
+++ b/security/test_bmc_expire_password.robot
@@ -228,6 +228,22 @@
     Should Be Equal  ${status}  ${False}
 
 
+Verify Expire Admin Password And Update Bad Password Length Via Redfish
+   [Documentation]  Expire admin password and update bad password with more than 20 characters
+   ...  via Redfish and expect an error.
+   [Tags]  Verify_Expire_Admin_Password_And_Update_Bad_Password_Length_Via_Redfish
+   [Setup]  Redfish Create User  ${admin_user}  ${default_adminuser_passwd}  Administrator  ${True}
+
+   Expire Password  ${admin_user}
+
+   Redfish.Login
+   ${status}=  Run Keyword And Return Status
+   ...  Redfish.Patch  /redfish/v1/AccountService/Accounts/${OPENBMC_USERNAME}
+   ...  body={'Password': '0penBmc0penBmc0penBmc'}
+
+   Should Be Equal  ${status}  ${False}
+
+
 *** Keywords ***
 
 Set Account Lockout Threshold