-
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.
Add provisioning API tests for usernames with special characters
- Loading branch information
1 parent
3ad2baf
commit f2129d4
Showing
12 changed files
with
160 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
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
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
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 |
---|---|---|
|
@@ -15,6 +15,19 @@ Feature: edit users | |
And the OCS status code should be "100" | ||
And the email address of user "brand-new-user" should be "[email protected]" | ||
|
||
Scenario Outline: the administrator can edit a user email of an user with special characters in the username | ||
Given these users have been created with skeleton files: | ||
| username | email | | ||
| <username> | <email> | | ||
When the administrator changes the email of user "<username>" to "[email protected]" using the provisioning API | ||
Then the HTTP status code should be "200" | ||
And the OCS status code should be "100" | ||
And the email address of user "<username>" should be "[email protected]" | ||
Examples: | ||
| username | email | | ||
| a@-+_.b | a.b@example.com | | ||
| a space | a.space@example.com | | ||
|
||
@smokeTest | ||
Scenario: the administrator can edit a user display (the API allows editing the "display name" by using the key word "display") | ||
Given user "brand-new-user" has been created with default attributes and skeleton files | ||
|
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
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
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
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
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
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 |
---|---|---|
|
@@ -15,6 +15,19 @@ Feature: edit users | |
And the OCS status code should be "200" | ||
And the email address of user "brand-new-user" should be "[email protected]" | ||
|
||
Scenario Outline: the administrator can edit a user email of an user with special characters in the username | ||
Given these users have been created with skeleton files: | ||
| username | email | | ||
| <username> | <email> | | ||
When the administrator changes the email of user "<username>" to "[email protected]" using the provisioning API | ||
Then the HTTP status code should be "200" | ||
And the OCS status code should be "200" | ||
And the email address of user "<username>" should be "[email protected]" | ||
Examples: | ||
| username | email | | ||
| a@-+_.b | a.b@example.com | | ||
| a space | a.space@example.com | | ||
|
||
@smokeTest | ||
Scenario: the administrator can edit a user display (the API allows editing the "display name" by using the key word "display") | ||
Given user "brand-new-user" has been created with default attributes and skeleton files | ||
|
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
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