@@ -1297,3 +1297,117 @@ 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 : 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 a federated share "textfile2.txt" shared by user "Alice" from space "Personal"
1328
+
1329
+
1330
+ Scenario : user shares multiple resources concurrently to a single federated user (Project Space)
1331
+ Given using server "LOCAL"
1332
+ And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
1333
+ And user "Alice" has created a space "new-space" with the default quota using the Graph API
1334
+ And user "Alice" has created a folder "folderToShare1" in space "new-space"
1335
+ And user "Alice" has created a folder "folderToShare2" in space "new-space"
1336
+ And user "Alice" has uploaded a file inside space "new-space" with content "some content" to "textfile1.txt"
1337
+ And user "Alice" has uploaded a file inside space "new-space" with content "hello world" to "textfile2.txt"
1338
+ When user "Alice" sends the following resources share invitation concurrently to federated user using the Graph API:
1339
+ | resource | space | sharee | shareType | permissionsRole |
1340
+ | folderToShare1 | new -space | Brian | user | Viewer |
1341
+ | folderToShare2 | new -space | Brian | user | Editor |
1342
+ | textfile1 .txt | new -space | Brian | user | Viewer |
1343
+ | textfile2 .txt | new -space | Brian | user | File Editor |
1344
+ Then the HTTP status code of responses on each endpoint should be "200, 200, 200, 200" respectively
1345
+ And using server "REMOTE"
1346
+ And user "Brian" should have the following federated share shared by user "Alice"
1347
+ | resource | folderToShare1 |
1348
+ | permissionsRole | Viewer |
1349
+ And user "Brian" should have the following federated share shared by user "Alice"
1350
+ | resource | folderToShare2 |
1351
+ | permissionsRole | Editor |
1352
+ And user "Brian" should have the following federated share shared by user "Alice"
1353
+ | resource | textfile1 .txt |
1354
+ | permissionsRole | Viewer |
1355
+ And user "Brian" should have a federated share "textfile2.txt" shared by user "Alice" from space "new-space"
1356
+
1357
+
1358
+ Scenario : user shares multiple resources concurrently to a single federated user
1359
+ Given using server "LOCAL"
1360
+ And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
1361
+ And user "Alice" has created a space "new-space" with the default quota using the Graph API
1362
+ And user "Alice" has created folder "folderToShare1"
1363
+ And user "Alice" has uploaded file with content "some content" to "textfile1.txt"
1364
+ And user "Alice" has created a folder "folderToShare2" in space "new-space"
1365
+ And user "Alice" has uploaded a file inside space "new-space" with content "hello world" to "textfile2.txt"
1366
+ When user "Alice" sends the following resources share invitation concurrently to federated user using the Graph API:
1367
+ | resource | space | sharee | shareType | permissionsRole |
1368
+ | folderToShare1 | Personal | Brian | user | Viewer |
1369
+ | folderToShare2 | new -space | Brian | user | Editor |
1370
+ | textfile1 .txt | Personal | Brian | user | Viewer |
1371
+ | textfile2 .txt | new -space | Brian | user | File Editor |
1372
+ Then the HTTP status code of responses on each endpoint should be "200, 200, 200, 200" respectively
1373
+ And using server "REMOTE"
1374
+ And user "Brian" should have the following federated share shared by user "Alice"
1375
+ | resource | folderToShare1 |
1376
+ | permissionsRole | Viewer |
1377
+ And user "Brian" should have the following federated share shared by user "Alice"
1378
+ | resource | folderToShare2 |
1379
+ | permissionsRole | Editor |
1380
+ And user "Brian" should have the following federated share shared by user "Alice"
1381
+ | resource | textfile1 .txt |
1382
+ | permissionsRole | Viewer |
1383
+ And user "Brian" should have a federated share "textfile2.txt" shared by user "Alice" from space "new-space"
1384
+
1385
+
1386
+ Scenario : user shares multiple resources concurrently to multiple federated users
1387
+ Given user "Carol" has been created with default attributes
1388
+ And "Carol" has accepted invitation
1389
+ And using server "LOCAL"
1390
+ And user "Alice" has created the following folders
1391
+ | path |
1392
+ | folderToShare1 |
1393
+ | folderToShare2 |
1394
+ And user "Alice" has uploaded file with content "some content" to "textfile1.txt"
1395
+ And user "Alice" has uploaded file with content "hello world" to "textfile2.txt"
1396
+ When user "Alice" sends the following resources share invitation concurrently to federated user using the Graph API:
1397
+ | resource | space | sharee | shareType | permissionsRole |
1398
+ | folderToShare1 | Personal | Brian | user | Viewer |
1399
+ | folderToShare2 | Personal | Carol | user | Editor |
1400
+ | textfile1 .txt | Personal | Brian | user | Viewer |
1401
+ | textfile2 .txt | Personal | Carol | user | File Editor |
1402
+ Then the HTTP status code of responses on each endpoint should be "200, 200, 200, 200" respectively
1403
+ And using server "REMOTE"
1404
+ And user "Brian" should have the following federated share shared by user "Alice"
1405
+ | resource | folderToShare1 |
1406
+ | permissionsRole | Viewer |
1407
+ And user "Carol" should have the following federated share shared by user "Alice"
1408
+ | resource | folderToShare2 |
1409
+ | permissionsRole | Editor |
1410
+ And user "Brian" should have the following federated share shared by user "Alice"
1411
+ | resource | textfile1 .txt |
1412
+ | permissionsRole | Viewer |
1413
+ And user "Carol" should have a federated share "textfile2.txt" shared by user "Alice" from space "Personal"
0 commit comments