Skip to content

Commit

Permalink
[TEST] Add UpdateShelterCertificateFeature test
Browse files Browse the repository at this point in the history
  • Loading branch information
diegogliarte committed Apr 5, 2024
1 parent 44eb08e commit da29089
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/test/resources/features/UpdateShelterCertificate.feature
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

0 comments on commit da29089

Please sign in to comment.