Skip to content

Commit d074632

Browse files
committed
feat(linksecurity): add more tests
1 parent 81113bc commit d074632

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

features/authorization/deny.feature

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,3 +262,24 @@ Feature: Authorization checking
262262
And I add "Authorization" header equal to "Basic ZHVuZ2xhczprZXZpbg=="
263263
And I send a "GET" request to "/secured_dummies/5/to_from"
264264
Then the response status code should be 403
265+
266+
Scenario: I define a custom name of the security object
267+
When I add "Accept" header equal to "application/ld+json"
268+
And I add "Content-Type" header equal to "application/ld+json"
269+
And I add "Authorization" header equal to "Basic ZHVuZ2xhczprZXZpbg=="
270+
And I send a "GET" request to "/secured_dummies/5/with_name"
271+
Then the response status code should be 403
272+
273+
Scenario: I define a from from link
274+
When I add "Accept" header equal to "application/ld+json"
275+
And I add "Content-Type" header equal to "application/ld+json"
276+
And I add "Authorization" header equal to "Basic ZHVuZ2xhczprZXZpbg=="
277+
And I send a "GET" request to "/related_linked_dummies/2/from_from"
278+
Then the response status code should be 403
279+
280+
Scenario: I define multiple links with security
281+
When I add "Accept" header equal to "application/ld+json"
282+
And I add "Content-Type" header equal to "application/ld+json"
283+
And I add "Authorization" header equal to "Basic ZHVuZ2xhczprZXZpbg=="
284+
And I send a "GET" request to "/secured_dummies/5/related/2"
285+
Then the response status code should be 403

0 commit comments

Comments
 (0)