-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
11699dd
commit b3a8f54
Showing
3 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
tests/acceptance/features/cliProvisioning/userSync.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
@cli | ||
Feature: sync a user using occ command | ||
|
||
As an administrator | ||
I want to be able to sync a user via the command line | ||
So that I can easily manage users when user LDAP is enabled | ||
|
||
Scenario: admin deletes ldap users and syncs only one of them | ||
When the administrator deletes user "user0" using the occ command | ||
And the administrator deletes user "user1" using the occ command | ||
Then user "user0" should not exist | ||
And user "user1" should not exist | ||
When LDAP user "user0" is resynced | ||
Then user "user0" should exist | ||
And user "user1" should not exist | ||
|
||
Scenario: admin edits ldap users email and syncs only one of them | ||
When the administrator changes the email of user "user0" to "[email protected]" using the occ command | ||
And the administrator changes the email of user "user1" to "[email protected]" using the occ command | ||
Then user "user0" should exist | ||
And user "user1" should exist | ||
When LDAP user "user0" is resynced | ||
Then the email address of user "user0" should be "[email protected]" | ||
And the email address of user "user1" should be "[email protected]" | ||
|
||
Scenario: admin lists all the enabled backends | ||
When the admin lists the enabled user backends using the occ command | ||
Then the command should have been successful | ||
And the command output should be: | ||
""" | ||
OC\User\Database | ||
OCA\User_LDAP\User_Proxy | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,3 +91,4 @@ Feature: add a user using the using the occ command | |
#| email | [email protected]| | ||
| email | occuser@oc.com| | ||
|
||
|