-
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.
- Loading branch information
1 parent
96a24ea
commit 9313f5c
Showing
2 changed files
with
40 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
26 changes: 26 additions & 0 deletions
26
tests/acceptance/features/cliProvisioning/removeFromGroup.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,26 @@ | ||
@cli @skipOnLDAP | ||
Feature: remove a user from a group | ||
As an admin | ||
I want to be able to remove a user from a group | ||
So that I can manage user access to group resources | ||
|
||
Scenario Outline: admin removes a user from a group | ||
Given user "brand-new-user" has been created | ||
And group "<group_id>" has been created | ||
And user "brand-new-user" has been added to group "<group_id>" | ||
When the administrator removes user "brand-new-user" from group "<group_id>" using the occ command | ||
Then the command should have been successful | ||
And the command output should contain the text 'Member "brand-new-user" removed from group "<group_id>"' | ||
And user "brand-new-user" should not belong to group "<group_id>" | ||
Examples: | ||
| group_id | comment | | ||
| simplegroup | nothing special here | | ||
| España | special European characters | | ||
| नेपाली | Unicode group name | | ||
|
||
Scenario: admin tries to remove a user from a group which does not exist | ||
Given user "brand-new-user" has been created | ||
And group "not-group" has been deleted | ||
When the administrator removes user "brand-new-user" from group "not-group" using the occ command | ||
Then the command should have failed with exit code 1 | ||
And the command output should contain the text 'Group "not-group" does not exist' |