-
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 #2477 from ushahidi/fix/permisions
Fix/permisions
- Loading branch information
Showing
6 changed files
with
13 additions
and
22 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
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 |
---|---|---|
|
@@ -158,21 +158,13 @@ Feature: Testing the Users API | |
And the "email" property equals "[email protected]" | ||
Then the guzzle status code should be 200 | ||
|
||
Scenario: Finding a User as anonymous user gives partial details | ||
Scenario: Finding a User as anonymous user does not give details | ||
Given that I want to find a "User" | ||
And that its "id" is "1" | ||
And that the request "Authorization" header is "Bearer testanon" | ||
When I request "/users" | ||
Then the guzzle status code should be 403 | ||
Then the response is JSON | ||
And the response has a "id" property | ||
And the type of the "id" property is "numeric" | ||
And the response has a "realname" property | ||
And the response does not have a "email" property | ||
And the response does not have a "logins" property | ||
And the response does not have a "failed_attempts" property | ||
And the response does not have a "last_login" property | ||
And the response does not have a "last_attempt" property | ||
Then the guzzle status code should be 200 | ||
|
||
Scenario: Finding a non-existent user | ||
Given that I want to find a "User" | ||
|