@@ -1297,3 +1297,125 @@ Feature: an user shares resources using ScienceMesh application
1297
1297
And as user "Alice" the PROPFIND response should contain a resource "newFolder" with these key and value pairs:
1298
1298
| key | value |
1299
1299
| oc :name | newFolder |
1300
+
1301
+
1302
+ Scenario : local user shares multiple resources concurrently to a single federated user (Personal Space)
1303
+ Given using server "LOCAL"
1304
+ And user "Alice" has created the following folders
1305
+ | path |
1306
+ | folderToShare1 |
1307
+ | folderToShare2 |
1308
+ And user "Alice" has uploaded file with content "some content" to "textfile1.txt"
1309
+ And user "Alice" has uploaded file with content "hello world" to "textfile2.txt"
1310
+ When user "Alice" sends the following resources share invitation concurrently to federated user using the Graph API:
1311
+ | resource | space | sharee | shareType | permissionsRole |
1312
+ | folderToShare1 | Personal | Brian | user | Viewer |
1313
+ | folderToShare2 | Personal | Brian | user | Editor |
1314
+ | textfile1 .txt | Personal | Brian | user | Viewer |
1315
+ | textfile2 .txt | Personal | Brian | user | File Editor |
1316
+ Then the HTTP status code of responses on each endpoint should be "200, 200, 200, 200" respectively
1317
+ And using server "REMOTE"
1318
+ And user "Brian" should have the following federated share shared by user "Alice"
1319
+ | resource | folderToShare1 |
1320
+ | permissionsRole | Viewer |
1321
+ And user "Brian" should have the following federated share shared by user "Alice"
1322
+ | resource | folderToShare2 |
1323
+ | permissionsRole | Editor |
1324
+ And user "Brian" should have the following federated share shared by user "Alice"
1325
+ | resource | textfile1 .txt |
1326
+ | permissionsRole | Viewer |
1327
+ And user "Brian" should have the following federated share shared by user "Alice"
1328
+ | resource | textfile2 .txt |
1329
+ | permissionsRole | File Editor |
1330
+
1331
+
1332
+ Scenario : local user shares multiple resources concurrently to a single federated user (Project Space)
1333
+ Given using server "LOCAL"
1334
+ And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
1335
+ And user "Alice" has created a space "new-space" with the default quota using the Graph API
1336
+ And user "Alice" has created a folder "folderToShare1" in space "new-space"
1337
+ And user "Alice" has created a folder "folderToShare2" in space "new-space"
1338
+ And user "Alice" has uploaded a file inside space "new-space" with content "some content" to "textfile1.txt"
1339
+ And user "Alice" has uploaded a file inside space "new-space" with content "hello world" to "textfile2.txt"
1340
+ When user "Alice" sends the following resources share invitation concurrently to federated user using the Graph API:
1341
+ | resource | space | sharee | shareType | permissionsRole |
1342
+ | folderToShare1 | new -space | Brian | user | Viewer |
1343
+ | folderToShare2 | new -space | Brian | user | Editor |
1344
+ | textfile1 .txt | new -space | Brian | user | Viewer |
1345
+ | textfile2 .txt | new -space | Brian | user | File Editor |
1346
+ Then the HTTP status code of responses on each endpoint should be "200, 200, 200, 200" respectively
1347
+ And using server "REMOTE"
1348
+ And user "Brian" should have the following federated share shared by user "Alice"
1349
+ | resource | folderToShare1 |
1350
+ | permissionsRole | Viewer |
1351
+ And user "Brian" should have the following federated share shared by user "Alice"
1352
+ | resource | folderToShare2 |
1353
+ | permissionsRole | Editor |
1354
+ And user "Brian" should have the following federated share shared by user "Alice"
1355
+ | resource | textfile1 .txt |
1356
+ | permissionsRole | Viewer |
1357
+ And user "Brian" should have the following federated share shared by user "Alice"
1358
+ | resource | textfile2 .txt |
1359
+ | permissionsRole | File Editor |
1360
+
1361
+
1362
+ Scenario : local user shares multiple resources form different spaces concurrently to a single federated user
1363
+ Given using server "LOCAL"
1364
+ And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
1365
+ And user "Alice" has created a space "new-space" with the default quota using the Graph API
1366
+ And user "Alice" has created folder "folderToShare1"
1367
+ And user "Alice" has uploaded file with content "some content" to "textfile1.txt"
1368
+ And user "Alice" has created a folder "folderToShare2" in space "new-space"
1369
+ And user "Alice" has uploaded a file inside space "new-space" with content "hello world" to "textfile2.txt"
1370
+ When user "Alice" sends the following resources share invitation concurrently to federated user using the Graph API:
1371
+ | resource | space | sharee | shareType | permissionsRole |
1372
+ | folderToShare1 | Personal | Brian | user | Viewer |
1373
+ | folderToShare2 | new -space | Brian | user | Editor |
1374
+ | textfile1 .txt | Personal | Brian | user | Viewer |
1375
+ | textfile2 .txt | new -space | Brian | user | File Editor |
1376
+ Then the HTTP status code of responses on each endpoint should be "200, 200, 200, 200" respectively
1377
+ And using server "REMOTE"
1378
+ And user "Brian" should have the following federated share shared by user "Alice"
1379
+ | resource | folderToShare1 |
1380
+ | permissionsRole | Viewer |
1381
+ And user "Brian" should have the following federated share shared by user "Alice"
1382
+ | resource | folderToShare2 |
1383
+ | permissionsRole | Editor |
1384
+ And user "Brian" should have the following federated share shared by user "Alice"
1385
+ | resource | textfile1 .txt |
1386
+ | permissionsRole | Viewer |
1387
+ And user "Brian" should have the following federated share shared by user "Alice"
1388
+ | resource | textfile2 .txt |
1389
+ | permissionsRole | File Editor |
1390
+
1391
+
1392
+ Scenario : local user shares multiple resources concurrently to multiple federated users
1393
+ Given user "Carol" has been created with default attributes
1394
+ And "Carol" has accepted invitation
1395
+ And using server "LOCAL"
1396
+ And user "Alice" has created the following folders
1397
+ | path |
1398
+ | folderToShare1 |
1399
+ | folderToShare2 |
1400
+ And user "Alice" has uploaded file with content "some content" to "textfile1.txt"
1401
+ And user "Alice" has uploaded file with content "hello world" to "textfile2.txt"
1402
+ When user "Alice" sends the following resources share invitation concurrently to federated user using the Graph API:
1403
+ | resource | space | sharee | shareType | permissionsRole |
1404
+ | folderToShare1 | Personal | Brian | user | Viewer |
1405
+ | folderToShare2 | Personal | Carol | user | Editor |
1406
+ | textfile1 .txt | Personal | Brian | user | Viewer |
1407
+ | textfile2 .txt | Personal | Carol | user | File Editor |
1408
+ Then the HTTP status code of responses on each endpoint should be "200, 200, 200, 200" respectively
1409
+ And using server "REMOTE"
1410
+ And user "Brian" should have the following federated share shared by user "Alice"
1411
+ | resource | folderToShare1 |
1412
+ | permissionsRole | Viewer |
1413
+ And user "Carol" should have the following federated share shared by user "Alice"
1414
+ | resource | folderToShare2 |
1415
+ | permissionsRole | Editor |
1416
+ And user "Brian" should have the following federated share shared by user "Alice"
1417
+ | resource | textfile1 .txt |
1418
+ | permissionsRole | Viewer |
1419
+ And user "Carol" should have the following federated share shared by user "Alice"
1420
+ | resource | textfile2 .txt |
1421
+ | permissionsRole | File Editor |
0 commit comments