Lines Matching full:user

2 Documentation       Test suite for OpenBMC IPMI user management.
17 ${invalid_username} user%
34 # User defined count.
39 Verify IPMI User Summary
40 [Documentation] Verify IPMI maximum supported IPMI user ID and
41 ... enabled user from user summary.
44 ... Delete Created User ${random_userid}
46 ${initial_user_count} ${maximum_ids}= Get Enabled User Count
48 ${random_userid} ${random_username}= Create Random IPMI User
50 Run IPMI Standard Command user enable ${random_userid}
52 # Enable IPMI user and verify
53 Enable IPMI User And Verify ${random_userid}
56 ${current_user_count} ${maximum_ids}= Get Enabled User Count
60 # Verify maximum user count IPMI local user can have.
64 Verify IPMI User List
65 [Documentation] Verify user list via IPMI.
68 ... Delete Created User ${random_userid}
70 ${random_userid} ${random_username}= Create Random IPMI User
74 ... user set password ${random_userid} ${valid_password}
75 Run IPMI Standard Command user enable ${random_userid}
76 # Delay added for IPMI user to get enabled.
78 # Set admin privilege and enable IPMI messaging for newly created user.
81 ${users_access}= Get User Access Ipmi ${CHANNEL_NUMBER}
85 # Verify the user access of created user.
94 Verify IPMI User Creation With Valid Name And ID
95 [Documentation] Create user via IPMI and verify.
98 ... Delete Created User ${random_userid}
100 ${random_userid} ${random_username}= Create Random IPMI User
104 Verify IPMI User Creation With Invalid Name
105 [Documentation] Verify error while creating IPMI user with invalid
106 ... name (e.g. user name with special characters).
109 ${random_userid}= Find Free User Id
111 ... user set name ${random_userid} ${invalid_username}
115 Verify IPMI User Creation With Invalid ID
116 [Documentation] Verify error while creating IPMI user with invalid
127 ... user set name ${id} newuser
128 Should Contain Any ${msg} User ID is limited to range Parameter out of range
132 Verify Setting IPMI User With Invalid Password
133 [Documentation] Verify error while setting IPMI user with invalid password.
136 ... Delete Created User ${random_userid}
138 ${random_userid} ${random_username}= Create Random IPMI User
141 # Set invalid password for newly created user.
143 ... user set password ${random_userid} ${invalid_password}
145 # Delay added for user password to get set.
148 Should Contain ${msg} Set User Password command failed
151 Verify Setting IPMI Root User With New Name
152 [Documentation] Verify error while setting IPMI root user with new name.
155 # Set invalid password for newly created user.
157 ... user set name ${root_userid} abcd
159 Should Contain ${msg} Set User Name command failed
162 Verify IPMI User Password Via Test Command
163 [Documentation] Verify IPMI user password using test command.
166 ... Delete Created User ${random_userid}
168 ${random_userid} ${random_username}= Create Random IPMI User
171 # Set valid password for newly created user.
173 ... user set password ${random_userid} ${valid_password}
177 ... user test ${random_userid} ${max_password_length} ${valid_password}
182 Verify Setting Valid Password For IPMI User
183 [Documentation] Set valid password for IPMI user and verify.
186 ... Delete Created User ${random_userid}
188 ${random_userid} ${random_username}= Create Random IPMI User
191 # Set valid password for newly created user.
193 ... user set password ${random_userid} ${valid_password}
195 Run IPMI Standard Command user enable ${random_userid}
197 # Delay added for IPMI user to get enable
200 # Set admin privilege and enable IPMI messaging for newly created user
206 Verify IPMI User Creation With Same Name
207 [Documentation] Verify error while creating two IPMI user with same name.
210 ... Delete Created User ${random_userid}
212 ${random_userid} ${random_username}= Create Random IPMI User
214 # Set same username for another IPMI user.
215 ${rand_userid_two}= Find Free User Id
217 ... user set name ${rand_userid_two} ${random_username}
221 Verify Setting IPMI User With Null Password
222 [Documentation] Verify error while setting IPMI user with null
226 ... Delete Created User ${random_userid}
228 ${random_userid} ${random_username}= Create Random IPMI User
231 # Set null password for newly created user.
233 ... user set password ${random_userid} ""
238 Verify IPMI User Deletion
239 [Documentation] Delete user via IPMI and verify.
242 ... Delete Created User ${random_userid}
244 ${random_userid} ${random_username}= Create Random IPMI User
246 # Delete IPMI User and verify
247 Run IPMI Standard Command user set name ${random_userid} ""
248 ${user_info}= Get User Info ${random_userid} ${CHANNEL_NUMBER}
252 Test IPMI User Privilege Level
253 [Documentation] Verify IPMI user with user privilege can only run user level commands.
255 [Template] Test IPMI User Privilege
257 ... Delete Created User ${random_userid}
259 #Privilege level User Cmd Status Operator Cmd Status Admin Cmd Status
264 [Documentation] Verify IPMI user with operator privilege can only run user and
267 [Template] Test IPMI User Privilege
269 ... Delete Created User ${random_userid}
271 #Privilege level User Cmd Status Operator Cmd Status Admin Cmd Status
276 [Documentation] Verify IPMI user with admin privilege can run all levels command.
278 [Template] Test IPMI User Privilege
280 ... Delete Created User ${random_userid}
282 #Privilege level User Cmd Status Operator Cmd Status Admin Cmd Status
286 Enable IPMI User And Verify
287 [Documentation] Enable IPMI user and verify that the user is able
291 ... Delete Created User ${random_userid}
293 ${random_userid} ${random_username}= Create Random IPMI User
296 ... user set password ${random_userid} ${valid_password}
298 # Set admin privilege and enable IPMI messaging for newly created user.
301 # Delay added for user privilege to get set.
304 Enable IPMI User And Verify ${random_userid}
307 # Verify that enabled IPMI user is able to run IPMI command.
311 Disable IPMI User And Verify
312 [Documentation] Disable IPMI user and verify that that the user
316 ... Delete Created User ${random_userid}
318 ${random_userid} ${random_username}= Create Random IPMI User
321 ... user set password ${random_userid} ${valid_password}
323 # Set admin privilege and enable IPMI messaging for newly created user.
326 # Disable IPMI user and verify.
327 Run IPMI Standard Command user disable ${random_userid}
328 ${user_info}= Get User Info ${random_userid} ${CHANNEL_NUMBER}
331 # Verify that disabled IPMI user is unable to run IPMI command.
337 Verify IPMI Root User Password Change
338 [Documentation] Change IPMI root user password and verify that
339 ... root user is able to run IPMI command.
348 ... Restore Default Password For IPMI Root User
350 # Set new password for root user.
352 ... user set password ${root_userid} ${valid_password}
354 # Delay added for user password to get set.
357 # Verify that root user is able to run IPMI command using new password.
362 Verify Administrator And User Privilege For Different Channels
363 [Documentation] Set administrator and user privilege for different channels and verify.
367 ... Delete Created User ${random_userid}
369 ${random_userid} ${random_username}= Create Random IPMI User
372 ... user set password ${random_userid} ${valid_password}
374 # Set admin privilege for newly created user with channel 1.
377 # Set user privilege for newly created user with channel 2.
380 # Delay added for user privileges to get set.
383 Enable IPMI User And Verify ${random_userid}
385 # Verify that user is able to run administrator level IPMI command with channel 1.
388 # Verify that user is unable to run IPMI command with channel 2.
393 Verify Operator And User Privilege For Different Channels
394 [Documentation] Set operator and user privilege for different channels and verify.
398 ... Delete Created User ${random_userid}
400 ${random_userid} ${random_username}= Create Random IPMI User
403 ... user set password ${random_userid} ${valid_password}
405 # Set operator privilege for newly created user with channel 1.
408 # Set user privilege for newly created user with channel 2.
411 # Delay added for user privileges to get set.
414 Enable IPMI User And Verify ${random_userid}
416 # Verify that user is able to run operator level IPMI command with channel 1.
419 # Verify that user is able to run user level IPMI command with channel 2.
420 Verify IPMI Command ${random_username} ${valid_password} User ${secondary_channel_number}
423 Verify Setting IPMI User With Max Password Length
424 [Documentation] Verify IPMI user creation with password length of 20 characters.
426 [Template] Set User Password And Verify
432 Verify Setting IPMI User With Invalid Password Length
433 [Documentation] Verify that IPMI user cannot be set with 21 character password using 16 char
436 [Template] Set User Password And Verify
443 Verify Setting IPMI User With 16 Character Password
444 [Documentation] Verify that IPMI user can create a 16 character password using 16 char or 20
447 [Template] Set User Password And Verify
454 Verify Default Selection Of 16 Character Password For IPMI User
458 [Template] Set User Password And Verify
465 Verify Minimum Password Length For IPMI User
468 [Template] Set User Password And Verify
489 Modify IPMI User
490 [Documentation] Verify modified IPMI user is communicating via IPMI.
493 ... Delete Created User ${random_userid}
495 ${random_userid} ${random_username}= Create Random IPMI User
498 ... user set password ${random_userid} ${valid_password}
500 # Set admin privilege and enable IPMI messaging for newly created user.
503 # Delay added for user privilege to get set.
506 Enable IPMI User And Verify ${random_userid}
508 # Verify that user is able to run administrator level IPMI command.
511 # Set different username for same IPMI user.
513 ... user set name ${random_userid} ${new_username}
516 # Verify that user is able to run administrator level IPMI command.
522 Restore Default Password For IPMI Root User
523 [Documentation] Restore default password for IPMI root user
526 ... user set password ${root_userid} ${OPENBMC_PASSWORD}
528 Should Contain ${result} Set User Password command successful
530 # Verify that root user is able to run IPMI command using default password.
534 Test IPMI User Privilege
535 [Documentation] Test IPMI user privilege by executing IPMI command with different privileges.
539 # privilege_level Privilege level of IPMI user (e.g. 4, 3).
540 # user_cmd_status Expected status of IPMI command run with the "User"
547 # Create IPMI user and set valid password.
548 ${random_userid} ${random_username}= Create Random IPMI User
551 ... user set password ${random_userid} ${valid_password}
553 # Set privilege and enable IPMI messaging for newly created user.
556 # Delay added for user privilege to get set.
559 Enable IPMI User And Verify ${random_userid}
561 Verify IPMI Command ${random_username} ${valid_password} User
574 # username The user name (e.g. "root", "robert", etc.).
575 # password The user password (e.g. "0penBmc", "0penBmc1", etc.).
576 # privilege The session privilege for IPMI command (e.g. "User", "Operator", etc.).
577 # channel The user channel number (e.g. "1" or "2").
578 # expected_status Expected status of IPMI command run with the user
587 Set User Password And Verify
588 [Documentation] Create a user and set its password with given length and option.
590 [Teardown] Run Keyword Delete Created User ${random_userid}
594 # expected_result Expected result for setting the user's password (e.g. "True", "False").
597 ${random_userid} ${random_username}= Create Random IPMI User
602 # Set password for newly created user.
604 ... user set password ${random_userid} ${password} ${password_option}
609 # Set admin privilege and enable IPMI messaging for newly created user.
612 # Delay added for user privilege to get set.
615 Enable IPMI User And Verify ${random_userid}
649 [Documentation] Make sure the enabled user count is below maximum,
650 ... and prepares administrative user list suite variables.
652 Check Enabled User Count
653 # Skip root user checking if user decides not to use root user as default.
654 Run Keyword If '${IPMI_USERNAME}' == 'root' Determine Root User Id
657 Determine Root User Id
658 [Documentation] Determines the user ID of the root user.
661 ... user list ${CHANNEL_NUMBER}
676 Log To Console The root user ID is ${root_userid}.
677 Run Keyword If ${root_userid} < ${1} Fail msg= Did not identify root user ID.
685 # username The user name (e.g. "root", "robert", etc.).
686 # password The user password (e.g. "0penBmc", "0penBmc1", etc.).
691 # Looping verify that root user is able to run IPMI command using new password.
696 Get Enabled User Count
700 # Isolate 'Enabled User Count' value and convert to integer
702 ... user summary ${CHANNEL_NUMBER}
703 ${user_count_line}= Get Lines Containing String ${resp} Enabled User Count