-
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.
[TEST] Add UpdateShelterCertificateFeature test
- Loading branch information
1 parent
44eb08e
commit da29089
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
src/test/resources/features/UpdateShelterCertificate.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,30 @@ | ||
Feature: Update Shelter Certificate | ||
In order to maintain shelter certificate information | ||
As a user with appropriate permissions | ||
I want to be able to update a shelter certificate | ||
|
||
Background: | ||
Given There is a registered user with username "username" and password "password" and email "[email protected]" | ||
|
||
Scenario: Update existing shelter certificate | ||
Given I can login with username "username" and password "password" | ||
And There is a registered shelter certificate with id "1" for shelter with name "existing_shelter" | ||
When I update the shelter certificate with id "1" and new attributes: | ||
| expirationDate | | ||
| 2023-12-31T00:00:00 | | ||
Then The response code is 200 | ||
|
||
Scenario: Update non-existent shelter certificate | ||
Given I can login with username "username" and password "password" | ||
When I update the shelter certificate with id "999" and new attributes: | ||
| expirationDate | | ||
| 2023-12-31T00:00:00 | | ||
Then The response code is 404 | ||
|
||
Scenario: Update shelter certificate when I am not logged in | ||
Given I'm not logged in | ||
And There is a registered shelter certificate with id "1" for shelter with name "existing_shelter" | ||
When I update the shelter certificate with id "1" and new attributes: | ||
| expirationDate | | ||
| 2023-12-31T00:00:00 | | ||
Then The response code is 401 |