Test IPMI user password using test command
Change-Id: Ib8dce491e185627f0b0688f7aac4652d96dfba18
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
diff --git a/ipmi/test_ipmi_user.robot b/ipmi/test_ipmi_user.robot
index 380c821..72590a0 100644
--- a/ipmi/test_ipmi_user.robot
+++ b/ipmi/test_ipmi_user.robot
@@ -14,6 +14,8 @@
${invalid_password} abc123
${root_userid} 1
${operator_level_priv} 0x3
+${valid_password} 0penBmc1
+${max_password_length} 20
*** Test Cases ***
@@ -83,6 +85,26 @@
Should Contain ${msg} Set User Name command failed
+Verify IPMI User Password Via Test Command
+ [Documentation] Verify IPMI user password using test command.
+ [Tags] Verify_IPMI_User_Password_Via_Test_Command
+
+ # Create IPMI user.
+ ${random_username}= Generate Random String 8 [LETTERS]
+ ${random_userid}= Evaluate random.randint(2, 15) modules=random
+ IPMI Create User ${random_userid} ${random_username}
+
+ # Set valid password for newly created user.
+ Run IPMI Standard Command
+ ... user set password ${random_userid} ${valid_password}
+
+ # Verify newly set password using test command.
+ ${msg}= Run IPMI Standard Command
+ ... user test ${random_userid} ${max_password_length} ${valid_password}
+
+ Should Contain ${msg} Success
+
+
Verify IPMI User Creation With Same Name
[Documentation] Verify error while creating two IPMI user with same name.
[Tags] Verify_IPMI_User_Creation_With_Same_Name
@@ -126,6 +148,7 @@
Should Be Equal ${user_info['user_name']} ${EMPTY}
+
*** Keywords ***
IPMI Create User