Skip to content

Commit

Permalink
Testing: Port test_grace_login_limit test from test_user
Browse files Browse the repository at this point in the history
Signed-off-by: Erik Belko <ebelko@redhat.com>
  • Loading branch information
b3lix committed Jul 13, 2023
1 parent e16ab4c commit 30d23ea
Showing 1 changed file with 31 additions and 16 deletions.
47 changes: 31 additions & 16 deletions tests/features/test_active_user.feature
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,34 @@ Feature: User manipulation
Then I should see field certificate_mapping filled with "CR MAPPING CONTENT"
Scenario: Password expiration notification
Given There is an entry testuser1
* There is an entry testgroup1
* There is an entry pwpolicy1
When Navigate to entity "config"
* Modify record "ipapwdexpadvnotify"
* I add user testuser1 to group testgroup1
* I open details for entry testgroup1
* I set pwpolicy1 for entry testgroup1
* I open details for entry testuser1
* I reset password for entry testuser1 with password "Secret123"
* I logout
* I login as an entry testuser1
Then I should see field header filled with "Your password expires in 6 days."
When I do profile menu action "password_reset"
* I fill password dialog with password "Secret123"
Then Password should be reset
Given There is an entry testuser1
* There is an entry testgroup1
* There is an entry pwpolicy1
When Navigate to entity "config"
* Modify record "ipapwdexpadvnotify"
* I add user testuser1 to group testgroup1
* I open details for entry testgroup1
* I set pwpolicy1 for entry testgroup1
* I open details for entry testuser1
* I reset password for entry testuser1 with password "Secret123"
* I logout
* I login as an entry testuser1
Then I should see field header filled with "Your password expires in 6 days."
When I do profile menu action "password_reset"
* I fill password dialog with password "Secret123"
Then Password should be reset
Scenario: Grace login limit
Given There is an entry testuser1
* There is an entry testgroup1
* There is an entry pwpolicy1
When I open details for entry testgroup1
* I set pwpolicy1 for entry testgroup1
* I add user testuser1 to group testgroup1
* I click on refresh button
# TODO: vymysliet ako poriesit toto passwordgracelimit v pwpolicy1
Then I should see field passwordgracelimit filled with pwpolicy1.passwordgracelimit
Scenario:
Given There
# cleanupy poriesit

0 comments on commit 30d23ea

Please sign in to comment.