-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WebSecurityConfig changed so only admin can post to /shelters/**
- Loading branch information
1 parent
051ccbc
commit c138612
Showing
3 changed files
with
16 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,12 +21,12 @@ Feature: Create Shelter | |
When I create a shelter with a name "name", email "[email protected]" and phone "123123123" and location "location" | ||
Then The response code is 201 | ||
|
||
#Scenario: Create shelter as Volunteer | ||
# Given I login as "volunteer" with password "password" | ||
# When I create a shelter with a name "name", email "[email protected]" and phone "123123123" and location "location" | ||
# Then The response code is 401 | ||
# And The error message is "Unauthorized" | ||
# And There is 0 Shelter created | ||
Scenario: Create shelter as Volunteer | ||
Given I login as "volunteer" with password "password" | ||
When I create a shelter with a name "name", email "[email protected]" and phone "123123123" and location "location" | ||
Then The response code is 403 | ||
And The error message is "Forbidden" | ||
And There is 0 Shelter created | ||
|
||
Scenario: Create shelter as Client | ||
Given I login as "client" with password "password" | ||
|