@@ -272,43 +272,58 @@ Feature: an user shares resources using ScienceMesh application
272
272
And "Alice" has created the federation share invitation
273
273
And using server "REMOTE"
274
274
And "Brian" has accepted invitation
275
+ And using server "LOCAL"
275
276
And using spaces DAV path
276
- And the administrator has assigned the role "Space Admin" to user "Brian " using the Graph API
277
- And user "Brian " has created a space "brian 's space" with the default quota using the Graph API
278
- When user "Brian " tries to send the following space share invitation to federated user using permissions endpoint of the Graph API:
279
- | space | brian 's space |
280
- | sharee | Alice |
281
- | shareType | user |
282
- | permissionsRole | <permissions -role > |
283
- | federatedServer | @ocis -server :9200 |
284
- Then the HTTP status code should be "403 "
277
+ And the administrator has assigned the role "Space Admin" to user "Alice " using the Graph API
278
+ And user "Alice " has created a space "alice 's space" with the default quota using the Graph API
279
+ When user "Alice " tries to send the following space share invitation to federated user using permissions endpoint of the Graph API:
280
+ | space | alice 's space |
281
+ | sharee | Brian |
282
+ | shareType | user |
283
+ | permissionsRole | <permissions -role > |
284
+ | federatedServer | @federation - ocis -server :10200 |
285
+ Then the HTTP status code should be "400 "
285
286
And the JSON data of the response should match
286
287
"""
287
288
{
288
289
"type": "object",
289
- "required": [
290
- "code",
291
- "message"
292
- ],
290
+ "required": ["error"],
293
291
"properties": {
294
- "code": {
295
- "const": "PERMISSION_DENIED"
296
- },
297
- "message": {
298
- "const": "permission denied to create the file"
292
+ "error": {
293
+ "type": "object",
294
+ "required": [
295
+ "code",
296
+ "innererror",
297
+ "message"
298
+ ],
299
+ "properties": {
300
+ "code": {
301
+ "const": "invalidRequest"
302
+ },
303
+ "innererror": {
304
+ "type": "object",
305
+ "required": [
306
+ "date",
307
+ "request-id"
308
+ ]
309
+ },
310
+ "message": {
311
+ "const": "federated user can not become a space member"
312
+ }
313
+ }
299
314
}
300
315
}
301
316
}
302
317
"""
303
- And using server "LOCAL "
304
- And the user "Alice " should not have a space called "brian 's space"
318
+ And using server "REMOTE "
319
+ And the user "Brian " should not have a space called "alice 's space"
305
320
Examples :
306
321
| permissions -role |
307
322
| Space Viewer |
308
323
| Space Editor |
309
324
| Manager |
310
325
311
-
326
+ @issue-10051
312
327
Scenario Outline : try to add federated user as a member of a project space (root endpoint)
313
328
Given using server "LOCAL"
314
329
And using spaces DAV path
0 commit comments