File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,23 @@ Feature: Provide a consistent standard JSON API endpoint
107107 When I request "/api/civilities/2" using HTTP GET
108108 Then the response code is 404
109109
110+ Scenario : Cannot delete a Civility linked to user
111+ Given I am successfully logged in with username: "superadmin@test.com" , password: "adminpwd" and grantType: "password"
112+ When I request "/api/civilities/1" using HTTP DELETE
113+ Then the response code is 400
114+
115+ Scenario : Cannot add a new Civility is code is longer than 10 characters
116+ Given I am successfully logged in with username: "superadmin@test.com" , password: "adminpwd" and grantType: "password"
117+ When the request body is:
118+ """
119+ {
120+ "name": "New civility",
121+ "code": "code longer than 10 characters"
122+ }
123+ """
124+ And I request "/api/civilities" using HTTP POST
125+ Then the response code is 400
126+
110127 Scenario : Reader cannot add a new Civility
111128 Given I am successfully logged in with username: "reader@test.com" , password: "readerpwd" and grantType: "password"
112129 And I request "/api/civilities" using HTTP POST
You can’t perform that action at this time.
0 commit comments