-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33081 from owncloud/occTest-cliProvisioning-delet…
…eUser Occ test cli provisioning delete user
- Loading branch information
Showing
2 changed files
with
33 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
19 changes: 19 additions & 0 deletions
19
tests/acceptance/features/cliProvisioning/deleteUser.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,19 @@ | ||
@cli @skipOnLDAP | ||
Feature: delete users | ||
As an admin | ||
I want to be able to delete users | ||
So that I can remove user from ownCloud | ||
|
||
Scenario: admin deletes a user | ||
Given user "brand-new-user" has been created | ||
When the administrator sends a user deletion request for user "brand-new-user" using the occ command | ||
Then the command should have been successful | ||
And the command output should contain the text "User with uid 'brand-new-user', display name 'brand-new-user', email '' was deleted" | ||
And user "brand-new-user" should not exist | ||
|
||
Scenario: admin tries to delete a non-existing user | ||
Given user "brand-new-user" has been deleted | ||
When the administrator sends a user deletion request for user "brand-new-user" using the occ command | ||
Then the command should have failed with exit code 1 | ||
And the command output should contain the text "User with uid 'brand-new-user' does not exist" | ||
And user "brand-new-user" should not exist |