Skip to content

Commit

Permalink
Added acceptance test for single/multiple user:sync
Browse files Browse the repository at this point in the history
  • Loading branch information
kiranparajuli589 committed Feb 10, 2020
1 parent 1f70eeb commit 045276f
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions tests/acceptance/features/cliProvisioning/userSync.feature
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@cli
Feature: sync a user using occ command
Feature: sync user using occ command

As an administrator
I want to be able to sync a user via the command line
I want to be able to sync user/users via the command line
So that I can easily manage users when user LDAP is enabled

Background:
Expand Down Expand Up @@ -38,4 +38,20 @@ Feature: sync a user using occ command
"""
OC\User\Database
OCA\User_LDAP\User_Proxy
"""
"""

Scenario: admin deletes ldap users and performs full sync
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 the LDAP users have been resynced
Then user "user0" should exist
And user "user1" should exist

Scenario: sync a local user
Given user "local-user" has been created with default attributes in the database user backend
When the administrator changes the display name of user "local-user" to "Test User" using the occ command
And LDAP user "local-user" is resynced
Then the command should have been successful
And user "local-user" should not exist

0 comments on commit 045276f

Please sign in to comment.