File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -262,3 +262,24 @@ Feature: Authorization checking
262
262
And I add "Authorization" header equal to "Basic ZHVuZ2xhczprZXZpbg=="
263
263
And I send a "GET" request to "/secured_dummies/5/to_from"
264
264
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
You can’t perform that action at this time.
0 commit comments