You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And headers utils.authHeaders(method, testResource.url, agent)
21
+
And retry until responseStatus == <status>
21
22
When method <method>
22
-
Then status <status>
23
23
Examples:
24
24
| agent | result | method | type | container | resource | status |
25
25
| Bob | can | GET | plain | no | R | 200 |
@@ -57,8 +57,8 @@ Feature: Only authenticated agents can read (and only that) a resource when gran
57
57
And headers utils.authHeaders(method, testResource.url, agent)
58
58
And header Content-Type = 'text/turtle'
59
59
And request '@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>. <> rdfs:comment "Bob added this.".'
60
+
And retry until utils.includesExpectedStatus(responseStatus, <status>)
60
61
When method <method>
61
-
Then match <status> contains responseStatus
62
62
Examples:
63
63
| agent | result | method | type | container | resource | status |
64
64
| Bob | cannot | PUT | rdf | no | R | [403] |
@@ -88,8 +88,8 @@ Feature: Only authenticated agents can read (and only that) a resource when gran
88
88
And headers utils.authHeaders(method, testResource.url, agent)
89
89
And header Content-Type = 'text/n3'
90
90
And request '@prefix solid: <http://www.w3.org/ns/solid/terms#>. _:insert a solid:InsertDeletePatch; solid:inserts { <> a <http://example.org#Foo> . }.'
91
+
And retry until responseStatus == <status>
91
92
When method <method>
92
-
Then status <status>
93
93
Examples:
94
94
| agent | result | method | type | container | resource | status |
95
95
| Bob | cannot | PATCH | rdf | no | R | 403 |
@@ -109,8 +109,8 @@ Feature: Only authenticated agents can read (and only that) a resource when gran
109
109
And headers utils.authHeaders(method, testResource.url, agent)
110
110
And header Content-Type = 'text/plain'
111
111
And request "Bob's text"
112
+
And retry until utils.includesExpectedStatus(responseStatus, <status>)
112
113
When method <method>
113
-
Then match <status> contains responseStatus
114
114
Examples:
115
115
| agent | result | method | type | container | resource | status |
116
116
| Bob | cannot | PUT | plain | no | R | [403] |
@@ -136,8 +136,8 @@ Feature: Only authenticated agents can read (and only that) a resource when gran
And headers utils.authHeaders(method, testResource.url, agent)
21
+
And retry until responseStatus == <status>
21
22
When method <method>
22
-
Then status <status>
23
23
Examples:
24
24
| agent | result | method | type | container | resource | status |
25
25
| Bob | can | GET | plain | no | R | 200 |
@@ -57,8 +57,8 @@ Feature: Only Bob can read (and only that) a resource when granted read access
57
57
And headers utils.authHeaders(method, testResource.url, agent)
58
58
And header Content-Type = 'text/turtle'
59
59
And request '@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>. <> rdfs:comment "Bob added this.".'
60
+
And retry until utils.includesExpectedStatus(responseStatus, <status>)
60
61
When method <method>
61
-
Then match <status> contains responseStatus
62
62
Examples:
63
63
| agent | result | method | type | container | resource | status |
64
64
| Bob | cannot | PUT | rdf | no | R | [403] |
@@ -88,8 +88,8 @@ Feature: Only Bob can read (and only that) a resource when granted read access
88
88
And headers utils.authHeaders(method, testResource.url, agent)
89
89
And header Content-Type = 'text/n3'
90
90
And request '@prefix solid: <http://www.w3.org/ns/solid/terms#>. _:insert a solid:InsertDeletePatch; solid:inserts { <> a <http://example.org#Foo> . }.'
91
+
And retry until responseStatus == <status>
91
92
When method <method>
92
-
Then status <status>
93
93
Examples:
94
94
| agent | result | method | type | container | resource | status |
95
95
| Bob | cannot | PATCH | rdf | no | R | 403 |
@@ -109,8 +109,8 @@ Feature: Only Bob can read (and only that) a resource when granted read access
109
109
And headers utils.authHeaders(method, testResource.url, agent)
110
110
And header Content-Type = 'text/plain'
111
111
And request "Bob's text"
112
+
And retry until utils.includesExpectedStatus(responseStatus, <status>)
112
113
When method <method>
113
-
Then match <status> contains responseStatus
114
114
Examples:
115
115
| agent | result | method | type | container | resource | status |
116
116
| Bob | cannot | PUT | plain | no | R | [403] |
@@ -136,8 +136,8 @@ Feature: Only Bob can read (and only that) a resource when granted read access
And headers utils.authHeaders(method, testResource.url, agent)
21
+
And retry until responseStatus == <status>
21
22
When method <method>
22
-
Then status <status>
23
23
Examples:
24
24
| agent | result | method | type | container | resource | status |
25
25
| Bob | can | GET | plain | no | R | 200 |
@@ -61,8 +61,8 @@ Feature: Public agents can read (and only that) a resource when granted read acc
61
61
And headers utils.authHeaders(method, testResource.url, agent)
62
62
And header Content-Type = 'text/turtle'
63
63
And request '@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>. <> rdfs:comment "Bob added this.".'
64
+
And retry until utils.includesExpectedStatus(responseStatus, <status>)
64
65
When method <method>
65
-
Then match <status> contains responseStatus
66
66
Examples:
67
67
| agent | result | method | type | container | resource | status |
68
68
| Bob | cannot | PUT | rdf | no | R | [403] |
@@ -92,8 +92,8 @@ Feature: Public agents can read (and only that) a resource when granted read acc
92
92
And headers utils.authHeaders(method, testResource.url, agent)
93
93
And header Content-Type = 'text/n3'
94
94
And request '@prefix solid: <http://www.w3.org/ns/solid/terms#>. _:insert a solid:InsertDeletePatch; solid:inserts { <> a <http://example.org#Foo> . }.'
95
+
And retry until responseStatus == <status>
95
96
When method <method>
96
-
Then status <status>
97
97
Examples:
98
98
| agent | result | method | type | container | resource | status |
99
99
| Bob | cannot | PATCH | rdf | no | R | 403 |
@@ -113,8 +113,8 @@ Feature: Public agents can read (and only that) a resource when granted read acc
113
113
And headers utils.authHeaders(method, testResource.url, agent)
114
114
And header Content-Type = 'text/plain'
115
115
And request "Bob's text"
116
+
And retry until utils.includesExpectedStatus(responseStatus, <status>)
116
117
When method <method>
117
-
Then match <status> contains responseStatus
118
118
Examples:
119
119
| agent | result | method | type | container | resource | status |
120
120
| Bob | cannot | PUT | plain | no | R | [403] |
@@ -140,8 +140,8 @@ Feature: Public agents can read (and only that) a resource when granted read acc
Scenario Outline: <agent> <result> <method> a <type> resource, when an authenticated agent has <container> access to the container and <resource> access to the resource
Copy file name to clipboardExpand all lines: web-access-control/protected-operation/write-access-public.feature
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -17,8 +17,8 @@ Feature: Only authenticated agents can write (and only that) a resource when gra
17
17
Scenario Outline: <agent> <result> read a <type> resource (<method>), when a public agent has <container> access to the container and <resource> access to the resource
| agent | result | method | type | container | resource | status |
24
24
| Public | cannot | GET | plain | no | WAC | 401 |
@@ -43,8 +43,8 @@ Feature: Only authenticated agents can write (and only that) a resource when gra
43
43
Given url testResource.url
44
44
And header Content-Type = requestData.contentType
45
45
And request requestData.requestBody
46
+
And retry until utils.includesExpectedStatus(responseStatus, <writeStatus>)
46
47
When method <method>
47
-
Then match <writeStatus> contains responseStatus
48
48
# Server may return payload with information about the operation e.g. "Created" so check it hasn't leaked the data which was PUT
49
49
And string responseString = response
50
50
And match responseString !contains requestData.responseShouldNotContain
@@ -71,8 +71,8 @@ Feature: Only authenticated agents can write (and only that) a resource when gra
71
71
Given url testResource.url
72
72
And header Content-Type = requestData.contentType
73
73
And request requestData.requestBody
74
+
And retry until utils.includesExpectedStatus(responseStatus, <writeStatus>)
74
75
When method <method>
75
-
Then match <writeStatus> contains responseStatus
76
76
# Server may return payload with information about the operation e.g. "Created" so check it hasn't leaked the data which was PUT
77
77
And string responseString = response
78
78
And match responseString !contains requestData.responseShouldNotContain
@@ -96,8 +96,8 @@ Feature: Only authenticated agents can write (and only that) a resource when gra
96
96
Scenario Outline: <agent> <result> <method> a <type> resource, when a public agent has <container> access to the container and <resource> access to the resource
0 commit comments