[tests-only] separate different SharingNG share steps (#9097)
* separate When steps using root and permissions endpoints test: separate resource sharing GIven step from space share test: share space via root endpoint in Given steps test: use existing step test: fix more steps * test: separate resource and space link share creation test: fix php code style
This commit is contained in:
@@ -17,13 +17,13 @@ Feature: change shared resource
|
||||
And user "Alice" has created folder "/PARENT"
|
||||
And user "Brian" has created folder "/PARENT"
|
||||
And user "Alice" has moved file "textfile0.txt" to "PARENT/from_alice.txt" in space "Personal"
|
||||
And user "Alice" has sent the following share invitation:
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | PARENT |
|
||||
| space | Personal |
|
||||
| sharee | Carol |
|
||||
| shareType | user |
|
||||
| permissionsRole | Editor |
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | PARENT |
|
||||
| space | Personal |
|
||||
| sharee | Carol |
|
||||
@@ -41,7 +41,7 @@ Feature: change shared resource
|
||||
Given the administrator has assigned the role "<user-role>" to user "Brian" using the Graph API
|
||||
And user "Alice" has uploaded file with content "old content version 1" to "/textfile1.txt"
|
||||
And user "Alice" has uploaded file with content "old content version 2" to "/textfile1.txt"
|
||||
And user "Alice" has sent the following share invitation:
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | textfile1.txt |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
|
||||
@@ -11,7 +11,7 @@ Feature: checksums
|
||||
@issue-1291
|
||||
Scenario: sharing a file with checksum should return the checksum in the propfind using new DAV path
|
||||
Given user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/myChecksumFile.txt" with checksum "MD5:d70b40f177b14b470d1756a3c12b963a"
|
||||
And user "Alice" has sent the following share invitation:
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | myChecksumFile.txt |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
@@ -24,7 +24,7 @@ Feature: checksums
|
||||
@issue-1291
|
||||
Scenario: modifying a shared file should return correct checksum in the propfind using new DAV path
|
||||
Given user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/myChecksumFile.txt" with checksum "MD5:d70b40f177b14b470d1756a3c12b963a"
|
||||
And user "Alice" has sent the following share invitation:
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | myChecksumFile.txt |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
|
||||
@@ -16,7 +16,7 @@ Feature: copy file
|
||||
And user "Alice" has created a space "Project" with the default quota using the Graph API
|
||||
And user "Alice" has created a folder "/newfolder" in space "Project"
|
||||
And user "Alice" has uploaded a file inside space "Project" with content "some content" to "/insideSpace.txt"
|
||||
And user "Alice" has sent the following share invitation:
|
||||
And user "Alice" has sent the following space share invitation:
|
||||
| space | Project |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
@@ -37,7 +37,7 @@ Feature: copy file
|
||||
And user "Alice" has created a space "Project" with the default quota using the Graph API
|
||||
And user "Alice" has created a folder "/newfolder" in space "Project"
|
||||
And user "Alice" has uploaded a file inside space "Project" with content "some content" to "insideSpace.txt"
|
||||
And user "Alice" has sent the following share invitation:
|
||||
And user "Alice" has sent the following space share invitation:
|
||||
| space | Project |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
@@ -53,12 +53,12 @@ Feature: copy file
|
||||
And user "Brian" has created a space "Project1" with the default quota using the Graph API
|
||||
And user "Brian" has created a space "Project2" with the default quota using the Graph API
|
||||
And user "Brian" has uploaded a file inside space "Project1" with content "Project1 content" to "/project1.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following space share invitation:
|
||||
| space | Project2 |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
| permissionsRole | <to-space-role> |
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following space share invitation:
|
||||
| space | Project1 |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
@@ -81,12 +81,12 @@ Feature: copy file
|
||||
And user "Brian" has created a space "Project1" with the default quota using the Graph API
|
||||
And user "Brian" has created a space "Project2" with the default quota using the Graph API
|
||||
And user "Brian" has uploaded a file inside space "Project1" with content "Project1 content" to "/project1.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following space share invitation:
|
||||
| space | Project2 |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
| permissionsRole | Space Viewer |
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following space share invitation:
|
||||
| space | Project1 |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
@@ -105,7 +105,7 @@ Feature: copy file
|
||||
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
|
||||
And user "Brian" has created a space "Project" with the default quota using the Graph API
|
||||
And user "Brian" has uploaded a file inside space "Project" with content "Project content" to "/project.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following space share invitation:
|
||||
| space | Project |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
@@ -127,12 +127,12 @@ Feature: copy file
|
||||
And user "Brian" has created a space "Project" with the default quota using the Graph API
|
||||
And user "Brian" has created folder "/testshare"
|
||||
And user "Brian" has uploaded a file inside space "Project" with content "Project content" to "/project.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following space share invitation:
|
||||
| space | Project |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
| permissionsRole | <space-role> |
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | testshare |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
@@ -155,7 +155,7 @@ Feature: copy file
|
||||
And user "Brian" has created a space "Project" with the default quota using the Graph API
|
||||
And user "Brian" has created folder "/testshare"
|
||||
And user "Brian" has uploaded a file inside space "Project" with content "Project content" to "/project.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following space share invitation:
|
||||
| space | Project |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
@@ -175,7 +175,7 @@ Feature: copy file
|
||||
Scenario Outline: user copies a file from personal space to project space with different role
|
||||
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
|
||||
And user "Brian" has created a space "Project" with the default quota using the Graph API
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following space share invitation:
|
||||
| space | Project |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
@@ -195,7 +195,7 @@ Feature: copy file
|
||||
Scenario: user copies a file from personal space to project space with role viewer
|
||||
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
|
||||
And user "Brian" has created a space "Project" with the default quota using the Graph API
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following space share invitation:
|
||||
| space | Project |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
@@ -209,7 +209,7 @@ Feature: copy file
|
||||
|
||||
Scenario: user copies a file from personal space to share space with role editor
|
||||
Given user "Brian" has created folder "/testshare"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | testshare |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
@@ -225,7 +225,7 @@ Feature: copy file
|
||||
|
||||
Scenario: user copies a file from personal space to share space with role viewer
|
||||
Given user "Brian" has created folder "/testshare"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | testshare |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
@@ -242,7 +242,7 @@ Feature: copy file
|
||||
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
|
||||
And user "Brian" has created folder "/testshare"
|
||||
And user "Brian" has uploaded file with content "testshare content" to "/testshare/testshare.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | testshare |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
@@ -262,14 +262,14 @@ Feature: copy file
|
||||
Scenario Outline: user copies a file from share space with different role to project space with different role
|
||||
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
|
||||
And user "Brian" has created a space "Project" with the default quota using the Graph API
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following space share invitation:
|
||||
| space | Project |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
| permissionsRole | <space-role> |
|
||||
And user "Brian" has created folder "/testshare"
|
||||
And user "Brian" has uploaded file with content "testshare content" to "/testshare/testshare.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | testshare |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
@@ -291,14 +291,14 @@ Feature: copy file
|
||||
Scenario Outline: user copies a file from share space with different role to project space with role viewer
|
||||
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
|
||||
And user "Brian" has created a space "Project" with the default quota using the Graph API
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following space share invitation:
|
||||
| space | Project |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
| permissionsRole | Space Viewer |
|
||||
And user "Brian" has created folder "/testshare"
|
||||
And user "Brian" has uploaded file with content "testshare content" to "/testshare/testshare.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | testshare |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
@@ -318,13 +318,13 @@ Feature: copy file
|
||||
Given user "Brian" has created folder "/testshare1"
|
||||
And user "Brian" has created folder "/testshare2"
|
||||
And user "Brian" has uploaded file with content "testshare1 content" to "/testshare1/testshare1.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | testshare1 |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
| permissionsRole | <permissions-role> |
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | testshare2 |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
@@ -348,13 +348,13 @@ Feature: copy file
|
||||
Given user "Brian" has created folder "/testshare1"
|
||||
And user "Brian" has created folder "/testshare2"
|
||||
And user "Brian" has uploaded file with content "testshare1 content" to "/testshare1/testshare1.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | testshare1 |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
| permissionsRole | <permissions-role> |
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | testshare2 |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
@@ -378,7 +378,7 @@ Feature: copy file
|
||||
And user "Alice" has created a folder "/folder1" in space "Project"
|
||||
And user "Alice" has created a folder "/folder2" in space "Project"
|
||||
And user "Alice" has uploaded a file inside space "Project" with content "some content" to "/folder2/demo.txt"
|
||||
And user "Alice" has sent the following share invitation:
|
||||
And user "Alice" has sent the following space share invitation:
|
||||
| space | Project |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
@@ -400,12 +400,12 @@ Feature: copy file
|
||||
And user "Brian" has created a space "Project2" with the default quota using the Graph API
|
||||
And user "Brian" has created a folder "/folder1" in space "Project1"
|
||||
And user "Brian" has uploaded a file inside space "Project1" with content "some content" to "/folder1/demo.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following space share invitation:
|
||||
| space | Project2 |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
| permissionsRole | <to-space-role> |
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following space share invitation:
|
||||
| space | Project1 |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
@@ -430,7 +430,7 @@ Feature: copy file
|
||||
And user "Brian" has created a space "Project" with the default quota using the Graph API
|
||||
And user "Brian" has created a folder "/folder1" in space "Project"
|
||||
And user "Brian" has uploaded a file inside space "Project" with content "some content" to "/folder1/demo.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following space share invitation:
|
||||
| space | Project |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
@@ -452,12 +452,12 @@ Feature: copy file
|
||||
And user "Brian" has created folder "/testshare"
|
||||
And user "Brian" has created a folder "/folder1" in space "Project"
|
||||
And user "Brian" has uploaded a file inside space "Project" with content "some content" to "/folder1/demo.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following space share invitation:
|
||||
| space | Project |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
| permissionsRole | <space-role> |
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | testshare |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
@@ -480,7 +480,7 @@ Feature: copy file
|
||||
Scenario Outline: user copies a folder from personal space to project space with different role
|
||||
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
|
||||
And user "Brian" has created a space "Project" with the default quota using the Graph API
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following space share invitation:
|
||||
| space | Project |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
@@ -500,7 +500,7 @@ Feature: copy file
|
||||
|
||||
Scenario Outline: user copies a folder from personal space to share space with different permissions
|
||||
Given user "Brian" has created folder "/testshare"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | testshare |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
@@ -522,7 +522,7 @@ Feature: copy file
|
||||
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
|
||||
And user "Brian" has created folder "/testshare"
|
||||
And user "Brian" has uploaded file with content "testshare content" to "/testshare/testshare.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | testshare |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
@@ -542,7 +542,7 @@ Feature: copy file
|
||||
Scenario Outline: user copies a folder from share space with different role to project space with different role
|
||||
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
|
||||
And user "Brian" has created a space "Project" with the default quota using the Graph API
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following space share invitation:
|
||||
| space | Project |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
@@ -550,7 +550,7 @@ Feature: copy file
|
||||
And user "Brian" has created folder "/testshare"
|
||||
And user "Brian" has created folder "/testshare/folder1"
|
||||
And user "Brian" has uploaded file with content "testshare content" to "/testshare/folder1/testshare.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | testshare |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
@@ -571,7 +571,7 @@ Feature: copy file
|
||||
Scenario Outline: user copies a folder from share space with different role to project space with role viewer
|
||||
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
|
||||
And user "Brian" has created a space "Project" with the default quota using the Graph API
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following space share invitation:
|
||||
| space | Project |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
@@ -579,7 +579,7 @@ Feature: copy file
|
||||
And user "Brian" has created folder "/testshare"
|
||||
And user "Brian" has created folder "/testshare/folder1"
|
||||
And user "Brian" has uploaded file with content "testshare content" to "/testshare/folder1/testshare.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | testshare |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
@@ -598,7 +598,7 @@ Feature: copy file
|
||||
Scenario: copying a file to a folder with no permissions
|
||||
Given using spaces DAV path
|
||||
And user "Brian" has created folder "/testshare"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | testshare |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
@@ -615,7 +615,7 @@ Feature: copy file
|
||||
And user "Brian" has created folder "/testshare"
|
||||
And user "Brian" has uploaded file with content "ownCloud test text file 1" to "/testshare/overwritethis.txt"
|
||||
And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | testshare |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
@@ -631,7 +631,7 @@ Feature: copy file
|
||||
And user "Alice" has uploaded file with content "ownCloud test text file 1" to "/textfile1.txt"
|
||||
And user "Brian" has created folder "/BRIAN-Folder"
|
||||
And user "Brian" has created folder "BRIAN-Folder/sample-folder"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | BRIAN-Folder |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
@@ -649,7 +649,7 @@ Feature: copy file
|
||||
And user "Alice" has created folder "/FOLDER"
|
||||
And user "Alice" has created folder "/FOLDER/sample-folder"
|
||||
And user "Brian" has uploaded file with content "file to share" to "/sharedfile1.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | sharedfile1.txt |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
@@ -669,7 +669,7 @@ Feature: copy file
|
||||
And user "Brian" has created folder "/BRIAN-FOLDER"
|
||||
And user "Brian" has created folder "/BRIAN-FOLDER/second-level-folder"
|
||||
And user "Brian" has created folder "/BRIAN-FOLDER/second-level-folder/third-level-folder"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | BRIAN-FOLDER |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
@@ -695,7 +695,7 @@ Feature: copy file
|
||||
And user "Brian" has created folder "/BRIAN-FOLDER"
|
||||
And user "Brian" has created folder "/BRIAN-FOLDER/second-level-folder"
|
||||
And user "Brian" has created folder "/BRIAN-FOLDER/second-level-folder/third-level-folder"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | BRIAN-FOLDER |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
@@ -722,7 +722,7 @@ Feature: copy file
|
||||
And using SharingNG
|
||||
And user "Brian" has created folder "/BRIAN-FOLDER"
|
||||
And user "Brian" has uploaded file with content "file at second level" to "/BRIAN-FOLDER/second-level-file.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | BRIAN-FOLDER |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
@@ -753,7 +753,7 @@ Feature: copy file
|
||||
And user "Brian" has created folder "/BRIAN-FOLDER"
|
||||
And user "Brian" has created folder "/BRIAN-FOLDER/second-level-folder"
|
||||
And user "Brian" has uploaded file with content "file at third level" to "BRIAN-FOLDER/second-level-folder/third-level-file.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | BRIAN-FOLDER |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
@@ -778,7 +778,7 @@ Feature: copy file
|
||||
And user "Brian" has created folder "/BRIAN-FOLDER"
|
||||
And user "Brian" has created folder "/BRIAN-FOLDER/second-level-folder"
|
||||
And user "Brian" has created folder "/BRIAN-FOLDER/second-level-folder/third-level-folder"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | BRIAN-FOLDER |
|
||||
| space | Personal |
|
||||
| sharee | grp1 |
|
||||
@@ -805,7 +805,7 @@ Feature: copy file
|
||||
And user "Brian" has created folder "/BRIAN-FOLDER"
|
||||
And user "Brian" has created folder "/BRIAN-FOLDER/second-level-folder"
|
||||
And user "Brian" has created folder "/BRIAN-FOLDER/second-level-folder/third-level-folder"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | BRIAN-FOLDER |
|
||||
| space | Personal |
|
||||
| sharee | grp1 |
|
||||
@@ -832,7 +832,7 @@ Feature: copy file
|
||||
And user "Brian" has been added to group "grp1"
|
||||
And user "Brian" has created folder "BRIAN-FOLDER"
|
||||
And user "Brian" has uploaded file with content "file at second level" to "/BRIAN-FOLDER/second-level-file.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | BRIAN-FOLDER |
|
||||
| space | Personal |
|
||||
| sharee | grp1 |
|
||||
@@ -862,7 +862,7 @@ Feature: copy file
|
||||
And user "Brian" has created folder "/BRIAN-FOLDER"
|
||||
And user "Brian" has created folder "/BRIAN-FOLDER/second-level-folder"
|
||||
And user "Brian" has uploaded file with content "file at third level" to "/BRIAN-FOLDER/second-level-folder/third-level-file.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | BRIAN-FOLDER |
|
||||
| space | Personal |
|
||||
| sharee | grp1 |
|
||||
@@ -922,7 +922,7 @@ Feature: copy file
|
||||
And user "Alice" has created a space "Project" with the default quota using the Graph API
|
||||
And user "Alice" has created a folder "/newfolder" in space "Project"
|
||||
And user "Alice" has uploaded a file inside space "Project" with content "some content" to "/newfolder/personal.txt"
|
||||
And user "Alice" has sent the following share invitation:
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | newfolder |
|
||||
| space | Project |
|
||||
| sharee | Brian |
|
||||
@@ -946,7 +946,7 @@ Feature: copy file
|
||||
And user "Alice" has created a folder "/newfolder" in space "Project"
|
||||
And user "Alice" has uploaded a file inside space "Project" with content "old content version 1" to "/newfolder/personal.txt"
|
||||
And user "Alice" has uploaded a file inside space "Project" with content "old content version 2" to "/newfolder/personal.txt"
|
||||
And user "Alice" has sent the following share invitation:
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | newfolder |
|
||||
| space | Project |
|
||||
| sharee | Brian |
|
||||
|
||||
@@ -14,7 +14,7 @@ Feature: check etag propagation after different file alterations
|
||||
|
||||
Scenario: copying a file inside a folder as a share receiver changes its etag for all collaborators
|
||||
Given user "Alice" has uploaded file with content "uploaded content" to "/upload/file.txt"
|
||||
And user "Alice" has sent the following share invitation:
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | upload |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
@@ -46,7 +46,7 @@ Feature: check etag propagation after different file alterations
|
||||
|
||||
Scenario: copying a file inside a folder as a sharer changes its etag for all collaborators
|
||||
Given user "Alice" has uploaded file with content "uploaded content" to "/upload/file.txt"
|
||||
And user "Alice" has sent the following share invitation:
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | upload |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
@@ -78,7 +78,7 @@ Feature: check etag propagation after different file alterations
|
||||
|
||||
Scenario: share receiver renaming a file inside a folder changes its etag for all collaborators
|
||||
Given user "Alice" has uploaded file with content "uploaded content" to "/upload/file.txt"
|
||||
And user "Alice" has sent the following share invitation:
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | upload |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
@@ -106,7 +106,7 @@ Feature: check etag propagation after different file alterations
|
||||
|
||||
Scenario: sharer renaming a file inside a folder changes its etag for all collaborators
|
||||
Given user "Alice" has uploaded file with content "uploaded content" to "/upload/file.txt"
|
||||
And user "Alice" has sent the following share invitation:
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | upload |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
@@ -135,13 +135,13 @@ Feature: check etag propagation after different file alterations
|
||||
Scenario: sharer moving a file from one folder to an other changes the etags of both folders for all collaborators
|
||||
Given user "Alice" has created folder "/dst"
|
||||
And user "Alice" has uploaded file with content "uploaded content" to "/upload/file.txt"
|
||||
And user "Alice" has sent the following share invitation:
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | upload |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Editor |
|
||||
And user "Alice" has sent the following share invitation:
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | dst |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
@@ -169,13 +169,13 @@ Feature: check etag propagation after different file alterations
|
||||
Scenario: sharer moving a folder from one folder to an other changes the etags of both folders for all collaborators
|
||||
Given user "Alice" has created folder "/dst"
|
||||
And user "Alice" has created folder "/upload/toMove"
|
||||
And user "Alice" has sent the following share invitation:
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | upload |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Editor |
|
||||
And user "Alice" has sent the following share invitation:
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | dst |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
@@ -200,7 +200,7 @@ Feature: check etag propagation after different file alterations
|
||||
|
||||
|
||||
Scenario: share receiver creating a folder inside a folder received as a share changes its etag for all collaborators
|
||||
Given user "Alice" has sent the following share invitation:
|
||||
Given user "Alice" has sent the following resource share invitation:
|
||||
| resource | upload |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
@@ -221,7 +221,7 @@ Feature: check etag propagation after different file alterations
|
||||
|
||||
|
||||
Scenario: sharer creating a folder inside a shared folder changes etag for all collaborators
|
||||
Given user "Alice" has sent the following share invitation:
|
||||
Given user "Alice" has sent the following resource share invitation:
|
||||
| resource | upload |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
@@ -242,7 +242,7 @@ Feature: check etag propagation after different file alterations
|
||||
|
||||
|
||||
Scenario: share receiver uploading a file inside a folder received as a share changes its etag for all collaborators
|
||||
Given user "Alice" has sent the following share invitation:
|
||||
Given user "Alice" has sent the following resource share invitation:
|
||||
| resource | upload |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
@@ -263,7 +263,7 @@ Feature: check etag propagation after different file alterations
|
||||
|
||||
|
||||
Scenario: sharer uploading a file inside a shared folder should update etags for all collaborators
|
||||
Given user "Alice" has sent the following share invitation:
|
||||
Given user "Alice" has sent the following resource share invitation:
|
||||
| resource | upload |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
@@ -285,7 +285,7 @@ Feature: check etag propagation after different file alterations
|
||||
|
||||
Scenario: share receiver overwriting a file inside a received shared folder should update etags for all collaborators
|
||||
Given user "Alice" has uploaded file with content "uploaded content" to "/upload/file.txt"
|
||||
And user "Alice" has sent the following share invitation:
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | upload |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
@@ -307,7 +307,7 @@ Feature: check etag propagation after different file alterations
|
||||
|
||||
Scenario: sharer overwriting a file inside a shared folder should update etags for all collaborators
|
||||
Given user "Alice" has uploaded file with content "uploaded content" to "/upload/file.txt"
|
||||
And user "Alice" has sent the following share invitation:
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | upload |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
@@ -330,7 +330,7 @@ Feature: check etag propagation after different file alterations
|
||||
Scenario: share receiver deleting (removing) a file changes the etags of all parents for all collaborators
|
||||
Given user "Alice" has created folder "/upload/sub"
|
||||
And user "Alice" has uploaded file with content "uploaded content" to "/upload/sub/file.txt"
|
||||
And user "Alice" has sent the following share invitation:
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | upload |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
@@ -361,7 +361,7 @@ Feature: check etag propagation after different file alterations
|
||||
Scenario: sharer deleting (removing) a file changes the etags of all parents for all collaborators
|
||||
Given user "Alice" has created folder "/upload/sub"
|
||||
And user "Alice" has uploaded file with content "uploaded content" to "/upload/sub/file.txt"
|
||||
And user "Alice" has sent the following share invitation:
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | upload |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
@@ -392,7 +392,7 @@ Feature: check etag propagation after different file alterations
|
||||
Scenario: share receiver deleting (removing) a folder changes the etags of all parents for all collaborators
|
||||
Given user "Alice" has created folder "/upload/sub"
|
||||
And user "Alice" has created folder "/upload/sub/toDelete"
|
||||
And user "Alice" has sent the following share invitation:
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | upload |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
@@ -423,7 +423,7 @@ Feature: check etag propagation after different file alterations
|
||||
Scenario: sharer deleting (removing) a folder changes the etags of all parents for all collaborators
|
||||
Given user "Alice" has created folder "/upload/sub"
|
||||
And user "Alice" has created folder "/upload/sub/toDelete"
|
||||
And user "Alice" has sent the following share invitation:
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | upload |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
|
||||
@@ -13,7 +13,7 @@ Feature: favorite
|
||||
|
||||
|
||||
Scenario: favorite a received share itself
|
||||
Given user "Alice" has sent the following share invitation:
|
||||
Given user "Alice" has sent the following resource share invitation:
|
||||
| resource | PARENT |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
@@ -26,7 +26,7 @@ Feature: favorite
|
||||
|
||||
Scenario: favorite a file inside of a received share
|
||||
Given user "Alice" has uploaded file with content "some data" to "/PARENT/parent.txt"
|
||||
And user "Alice" has sent the following share invitation:
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | PARENT |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
@@ -39,7 +39,7 @@ Feature: favorite
|
||||
|
||||
Scenario: favorite a folder inside of a received share
|
||||
Given user "Alice" has created folder "/PARENT/sub-folder"
|
||||
And user "Alice" has sent the following share invitation:
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | PARENT |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
@@ -52,7 +52,7 @@ Feature: favorite
|
||||
|
||||
Scenario: sharee file favorite state should not change the favorite state of sharer
|
||||
Given user "Alice" has uploaded file with content "some data" to "/PARENT/parent.txt"
|
||||
And user "Alice" has sent the following share invitation:
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | PARENT/parent.txt |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
|
||||
@@ -16,7 +16,7 @@ Feature: move (rename) file
|
||||
And user "Brian" has created a space "Project" with the default quota using the Graph API
|
||||
And user "Brian" has created a folder "newfolder" in space "Project"
|
||||
And user "Brian" has uploaded a file inside space "Project" with content "some content" to "insideSpace.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following space share invitation:
|
||||
| space | Project |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
@@ -38,7 +38,7 @@ Feature: move (rename) file
|
||||
And user "Brian" has created a space "Project" with the default quota using the Graph API
|
||||
And user "Brian" has created a folder "newfolder" in space "Project"
|
||||
And user "Brian" has uploaded a file inside space "Project" with content "some content" to "insideSpace.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following space share invitation:
|
||||
| space | Project |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
@@ -55,7 +55,7 @@ Feature: move (rename) file
|
||||
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
|
||||
And user "Brian" has created a space "Project" with the default quota using the Graph API
|
||||
And user "Brian" has uploaded a file inside space "Project" with content "some content" to "insideSpace.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following space share invitation:
|
||||
| space | Project |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
@@ -76,12 +76,12 @@ Feature: move (rename) file
|
||||
And user "Brian" has created a space "Project1" with the default quota using the Graph API
|
||||
And user "Brian" has created a space "Project2" with the default quota using the Graph API
|
||||
And user "Brian" has uploaded a file inside space "Project1" with content "Project1 content" to "project1.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following space share invitation:
|
||||
| space | Project1 |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
| permissionsRole | <to-space-role> |
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following space share invitation:
|
||||
| space | Project2 |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
@@ -109,7 +109,7 @@ Feature: move (rename) file
|
||||
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
|
||||
And user "Brian" has created a space "Project" with the default quota using the Graph API
|
||||
And user "Brian" has uploaded a file inside space "Project" with content "Project content" to "project.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following space share invitation:
|
||||
| space | Project |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
@@ -132,12 +132,12 @@ Feature: move (rename) file
|
||||
And user "Brian" has created a space "Project" with the default quota using the Graph API
|
||||
And user "Brian" has created folder "/testshare"
|
||||
And user "Brian" has uploaded a file inside space "Project" with content "Project content" to "project.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following space share invitation:
|
||||
| space | Project |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
| permissionsRole | <space-role> |
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | testshare |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
@@ -165,7 +165,7 @@ Feature: move (rename) file
|
||||
Scenario Outline: user moves a file from space personal to space project with different role
|
||||
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
|
||||
And user "Brian" has created a space "Project" with the default quota using the Graph API
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following space share invitation:
|
||||
| space | Project |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
@@ -186,7 +186,7 @@ Feature: move (rename) file
|
||||
|
||||
Scenario Outline: user moves a file from space personal to space Shares with different role (permission)
|
||||
Given user "Brian" has created folder "/testshare"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | testshare |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
@@ -209,7 +209,7 @@ Feature: move (rename) file
|
||||
Scenario Outline: user moves a file from space Shares with different role (permissions) to space personal
|
||||
Given user "Brian" has created folder "/testshare"
|
||||
And user "Brian" has uploaded file with content "testshare content" to "/testshare/testshare.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | testshare |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
@@ -231,14 +231,14 @@ Feature: move (rename) file
|
||||
Scenario Outline: user moves a file from space Shares with different role (permissions) to space project with different role
|
||||
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
|
||||
And user "Brian" has created a space "Project" with the default quota using the Graph API
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following space share invitation:
|
||||
| space | Project |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
| permissionsRole | <space-role> |
|
||||
And user "Brian" has created folder "/testshare"
|
||||
And user "Brian" has uploaded file with content "testshare content" to "/testshare/testshare.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | testshare |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
@@ -267,13 +267,13 @@ Feature: move (rename) file
|
||||
Given user "Brian" has created folder "/testshare1"
|
||||
And user "Brian" has created folder "/testshare2"
|
||||
And user "Brian" has uploaded file with content "testshare1 content" to "/testshare1/testshare1.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | testshare1 |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
| permissionsRole | <from-permissions-role> |
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | testshare2 |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
@@ -301,7 +301,7 @@ Feature: move (rename) file
|
||||
Scenario Outline: moving a file out of a shared folder as a sharer
|
||||
Given user "Brian" has created folder "/testshare"
|
||||
And user "Brian" has uploaded file with content "test data" to "/testshare/testfile.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | testshare |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
@@ -327,7 +327,7 @@ Feature: move (rename) file
|
||||
| /testshare |
|
||||
| /testshare/testsubfolder |
|
||||
And user "Brian" has uploaded file with content "test data" to "/testshare/testsubfolder/testfile.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | testshare |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
@@ -351,7 +351,7 @@ Feature: move (rename) file
|
||||
Given user "Brian" has created folder "testshare"
|
||||
Given user "Brian" has created folder "testshare/child"
|
||||
And user "Brian" has uploaded file with content "test file content" to "/testshare/testfile.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | testshare |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
@@ -372,7 +372,7 @@ Feature: move (rename) file
|
||||
Given user "Brian" has created folder "testshare"
|
||||
Given user "Brian" has created folder "testshare/child"
|
||||
And user "Brian" has uploaded file with content "test file content" to "/testshare/testfile.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | testshare |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
@@ -389,7 +389,7 @@ Feature: move (rename) file
|
||||
Scenario Outline: sharee tries to move a file into same shared folder with same name
|
||||
Given user "Brian" has created folder "testshare"
|
||||
And user "Brian" has uploaded file with content "test file content" to "testshare/testfile.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | testshare |
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
@@ -414,7 +414,7 @@ Feature: move (rename) file
|
||||
And user "Brian" has uploaded a file inside space "Project" with content "root file v1" to "testfile.txt"
|
||||
And user "Brian" has uploaded a file inside space "Project" with content "root file v2" to "testfile.txt"
|
||||
And user "Brian" has uploaded a file inside space "Project" with content "same name file" to "folder/testfile.txt"
|
||||
And user "Brian" has sent the following share invitation:
|
||||
And user "Brian" has sent the following space share invitation:
|
||||
| space | Project |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
|
||||
Reference in New Issue
Block a user