-
Notifications
You must be signed in to change notification settings - Fork 506
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 #4135 from SaifurRahmanMohsin/feature-disable-regi…
…stration feat(users): Disable registration
- Loading branch information
Showing
5 changed files
with
45 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 |
---|---|---|
|
@@ -503,6 +503,22 @@ Feature: API Access Control Layer | |
When I request "/posts" | ||
Then the guzzle status code should be 401 | ||
|
||
@disableRegistration | ||
Scenario: Registering as a user when a deployment has registration disabled | ||
Given that I want to make a new "user" | ||
And that the request "data" is: | ||
""" | ||
{ | ||
"email":"[email protected]", | ||
"realname":"John Tae", | ||
"password":"testing", | ||
"role":"admin" | ||
} | ||
""" | ||
When I request "/register" | ||
Then the response is JSON | ||
Then the guzzle status code should be 403 | ||
|
||
@rolesEnabled | ||
Scenario: User with Manage Posts permission can view all posts in collection | ||
Given that I want to get all "Posts" | ||
|
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