test: make remote.php configurable

test: build dav paths

test: fix paths

test: merge method args

test: add issue tags

test: add new expected failure file

test: merge expected-failure files before running tests
This commit is contained in:
Saw-jan
2024-10-21 16:57:58 +05:45
parent 273915506e
commit f86d137f87
100 changed files with 2484 additions and 2329 deletions
@@ -8,162 +8,126 @@ Feature: copying file using file id
And user "Alice" has been created with default attributes and without skeleton files
Scenario Outline: copy a file into a folder in personal space
Scenario: copy a file into a folder in personal space
Given user "Alice" has created folder "/folder"
And user "Alice" has uploaded file with content "some data" to "/textfile.txt"
And we save it into "FILEID"
When user "Alice" copies a file "/textfile.txt" into "/folder" inside space "Personal" using file-id path "<dav-path>"
When user "Alice" copies a file "/textfile.txt" into "/folder" inside space "Personal" using file-id "<<FILEID>>"
Then the HTTP status code should be "201"
And for user "Alice" folder "/" of the space "Personal" should contain these files:
| textfile.txt |
And for user "Alice" folder "folder" of the space "Personal" should contain these files:
| textfile.txt |
Examples:
| dav-path |
| /remote.php/dav/spaces/<<FILEID>> |
| /dav/spaces/<<FILEID>> |
Scenario Outline: copy a file into a sub-folder in personal space
Scenario: copy a file into a sub-folder in personal space
Given user "Alice" has created folder "/folder"
And user "Alice" has created folder "folder/sub-folder"
And user "Alice" has uploaded file with content "some data" to "/textfile.txt"
And we save it into "FILEID"
When user "Alice" copies a file "/textfile.txt" into "/folder/sub-folder" inside space "Personal" using file-id path "<dav-path>"
When user "Alice" copies a file "/textfile.txt" into "/folder/sub-folder" inside space "Personal" using file-id "<<FILEID>>"
Then the HTTP status code should be "201"
And for user "Alice" folder "/" of the space "Personal" should contain these files:
| textfile.txt |
And for user "Alice" folder "folder/sub-folder" of the space "Personal" should contain these files:
| textfile.txt |
Examples:
| dav-path |
| /remote.php/dav/spaces/<<FILEID>> |
| /dav/spaces/<<FILEID>> |
Scenario Outline: copy a file from a folder into root of personal space
Scenario: copy a file from a folder into root of personal space
Given user "Alice" has created folder "/folder"
And user "Alice" has uploaded file with content "some data" to "folder/textfile.txt"
And we save it into "FILEID"
When user "Alice" copies a file "folder/textfile.txt" into "/" inside space "Personal" using file-id path "<dav-path>"
When user "Alice" copies a file "folder/textfile.txt" into "/" inside space "Personal" using file-id "<<FILEID>>"
Then the HTTP status code should be "201"
And for user "Alice" folder "/" of the space "Personal" should contain these files:
| textfile.txt |
And for user "Alice" folder "folder" of the space "Personal" should contain these files:
| textfile.txt |
Examples:
| dav-path |
| /remote.php/dav/spaces/<<FILEID>> |
| /dav/spaces/<<FILEID>> |
Scenario Outline: copy a file from sub-folder into root of personal space
Scenario: copy a file from sub-folder into root of personal space
Given user "Alice" has created folder "/folder"
And user "Alice" has created folder "folder/sub-folder"
And user "Alice" has uploaded file with content "some data" to "folder/sub-folder/textfile.txt"
And we save it into "FILEID"
When user "Alice" copies a file "folder/sub-folder/textfile.txt" into "/" inside space "Personal" using file-id path "<dav-path>"
When user "Alice" copies a file "folder/sub-folder/textfile.txt" into "/" inside space "Personal" using file-id "<<FILEID>>"
Then the HTTP status code should be "201"
And for user "Alice" folder "/" of the space "Personal" should contain these files:
| textfile.txt |
And for user "Alice" folder "folder/sub-folder" of the space "Personal" should contain these files:
| textfile.txt |
Examples:
| dav-path |
| /remote.php/dav/spaces/<<FILEID>> |
| /dav/spaces/<<FILEID>> |
Scenario Outline: copy a file into a folder in project space
Scenario: copy a file into a folder in project space
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "project-space" with the default quota using the Graph API
And user "Alice" has created a folder "/folder" in space "project-space"
And user "Alice" has uploaded a file inside space "project-space" with content "some data" to "textfile.txt"
And we save it into "FILEID"
When user "Alice" copies a file "/textfile.txt" into "/folder" inside space "project-space" using file-id path "<dav-path>"
When user "Alice" copies a file "/textfile.txt" into "/folder" inside space "project-space" using file-id "<<FILEID>>"
Then the HTTP status code should be "201"
And for user "Alice" folder "/" of the space "project-space" should contain these files:
| textfile.txt |
And for user "Alice" folder "folder" of the space "project-space" should contain these files:
| textfile.txt |
Examples:
| dav-path |
| /remote.php/dav/spaces/<<FILEID>> |
| /dav/spaces/<<FILEID>> |
Scenario Outline: copy a file into a sub-folder in project space
Scenario: copy a file into a sub-folder in project space
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "project-space" with the default quota using the Graph API
And user "Alice" has created a folder "folder/sub-folder" in space "project-space"
And user "Alice" has uploaded a file inside space "project-space" with content "some data" to "textfile.txt"
And we save it into "FILEID"
When user "Alice" copies a file "/textfile.txt" into "/folder/sub-folder" inside space "project-space" using file-id path "<dav-path>"
When user "Alice" copies a file "/textfile.txt" into "/folder/sub-folder" inside space "project-space" using file-id "<<FILEID>>"
Then the HTTP status code should be "201"
And for user "Alice" folder "/" of the space "project-space" should contain these files:
| textfile.txt |
And for user "Alice" folder "folder/sub-folder" of the space "project-space" should contain these files:
| textfile.txt |
Examples:
| dav-path |
| /remote.php/dav/spaces/<<FILEID>> |
| /dav/spaces/<<FILEID>> |
Scenario Outline: copy a file from a folder into root of project space
Scenario: copy a file from a folder into root of project space
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "project-space" with the default quota using the Graph API
And user "Alice" has created a folder "folder" in space "project-space"
And user "Alice" has uploaded a file inside space "project-space" with content "some data" to "folder/textfile.txt"
And we save it into "FILEID"
When user "Alice" copies a file "folder/textfile.txt" into "/" inside space "project-space" using file-id path "<dav-path>"
When user "Alice" copies a file "folder/textfile.txt" into "/" inside space "project-space" using file-id "<<FILEID>>"
Then the HTTP status code should be "201"
And for user "Alice" folder "/" of the space "project-space" should contain these files:
| textfile.txt |
And for user "Alice" folder "folder" of the space "project-space" should contain these files:
| textfile.txt |
Examples:
| dav-path |
| /remote.php/dav/spaces/<<FILEID>> |
| /dav/spaces/<<FILEID>> |
Scenario Outline: copy a file from sub-folder into root of project space
Scenario: copy a file from sub-folder into root of project space
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "project-space" with the default quota using the Graph API
And user "Alice" has created a folder "folder/sub-folder" in space "project-space"
And user "Alice" has uploaded a file inside space "project-space" with content "some data" to "folder/sub-folder/textfile.txt"
And we save it into "FILEID"
When user "Alice" copies a file "folder/sub-folder/textfile.txt" into "/" inside space "project-space" using file-id path "<dav-path>"
When user "Alice" copies a file "folder/sub-folder/textfile.txt" into "/" inside space "project-space" using file-id "<<FILEID>>"
Then the HTTP status code should be "201"
And for user "Alice" folder "/" of the space "project-space" should contain these files:
| textfile.txt |
And for user "Alice" folder "folder/sub-folder" of the space "project-space" should contain these files:
| textfile.txt |
Examples:
| dav-path |
| /remote.php/dav/spaces/<<FILEID>> |
| /dav/spaces/<<FILEID>> |
Scenario Outline: copy a file from personal to project space
Scenario: copy a file from personal to project space
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "project-space" with the default quota using the Graph API
And user "Alice" has uploaded file with content "some data" to "textfile.txt"
And we save it into "FILEID"
When user "Alice" copies a file "/textfile.txt" into "/" inside space "project-space" using file-id path "<dav-path>"
When user "Alice" copies a file "/textfile.txt" into "/" inside space "project-space" using file-id "<<FILEID>>"
Then the HTTP status code should be "201"
And for user "Alice" folder "/" of the space "project-space" should contain these files:
| textfile.txt |
And for user "Alice" folder "/" of the space "Personal" should contain these files:
| textfile.txt |
Examples:
| dav-path |
| /remote.php/dav/spaces/<<FILEID>> |
| /dav/spaces/<<FILEID>> |
Scenario Outline: copy a file from sub-folder to root folder inside Shares space
Scenario: copy a file from sub-folder to root folder inside Shares space
Given user "Brian" has been created with default attributes and without skeleton files
And user "Alice" has created folder "/folder"
And user "Alice" has created folder "folder/sub-folder"
@@ -176,7 +140,7 @@ Feature: copying file using file id
| shareType | user |
| permissionsRole | Editor |
And user "Brian" has a share "folder" synced
When user "Brian" copies a file "Shares/folder/sub-folder/test.txt" into "Shares/folder" inside space "Shares" using file-id path "<dav-path>"
When user "Brian" copies a file "Shares/folder/sub-folder/test.txt" into "Shares/folder" inside space "Shares" using file-id "<<FILEID>>"
Then the HTTP status code should be "201"
And for user "Brian" folder "folder" of the space "Shares" should contain these files:
| test.txt |
@@ -186,13 +150,9 @@ Feature: copying file using file id
| test.txt |
And for user "Alice" folder "folder/sub-folder" of the space "Personal" should contain these files:
| test.txt |
Examples:
| dav-path |
| /remote.php/dav/spaces/<<FILEID>> |
| /dav/spaces/<<FILEID>> |
Scenario Outline: copy a file from personal to share space
Scenario: copy a file from personal to share space
Given user "Brian" has been created with default attributes and without skeleton files
And user "Alice" has created folder "/folder"
And user "Alice" has sent the following resource share invitation:
@@ -205,7 +165,7 @@ Feature: copying file using file id
And user "Brian" has uploaded file with content "some data" to "/test.txt"
And we save it into "FILEID"
And user "Brian" has a share "folder" synced
When user "Brian" copies a file "/test.txt" into "Shares/folder" inside space "Shares" using file-id path "<dav-path>"
When user "Brian" copies a file "/test.txt" into "Shares/folder" inside space "Shares" using file-id "<<FILEID>>"
Then the HTTP status code should be "201"
And for user "Brian" folder "folder" of the space "Shares" should contain these files:
| test.txt |
@@ -213,10 +173,6 @@ Feature: copying file using file id
| test.txt |
And for user "Alice" folder "folder" of the space "Personal" should contain these files:
| test.txt |
Examples:
| dav-path |
| /remote.php/dav/spaces/<<FILEID>> |
| /dav/spaces/<<FILEID>> |
Scenario Outline: copy a file from share to personal space
@@ -231,7 +187,7 @@ Feature: copying file using file id
| shareType | user |
| permissionsRole | <permission-role> |
And user "Brian" has a share "folder" synced
When user "Brian" copies a file "/test.txt" into "/" inside space "Personal" using file-id path "<dav-path>"
When user "Brian" copies a file "/test.txt" into "/" inside space "Personal" using file-id "<<FILEID>>"
Then the HTTP status code should be "201"
And for user "Brian" folder "folder" of the space "Shares" should contain these files:
| test.txt |
@@ -240,16 +196,13 @@ Feature: copying file using file id
And for user "Alice" folder "folder" of the space "Personal" should contain these files:
| test.txt |
Examples:
| permission-role | dav-path |
| Editor | /remote.php/dav/spaces/<<FILEID>> |
| Viewer | /remote.php/dav/spaces/<<FILEID>> |
| Uploader | /remote.php/dav/spaces/<<FILEID>> |
| Editor | /dav/spaces/<<FILEID>> |
| Viewer | /dav/spaces/<<FILEID>> |
| Uploader | /dav/spaces/<<FILEID>> |
| permission-role |
| Editor |
| Viewer |
| Uploader |
Scenario Outline: sharee tries to copy a file from shares space with secure viewer to personal space
Scenario: sharee tries to copy a file from shares space with secure viewer to personal space
Given user "Brian" has been created with default attributes and without skeleton files
And user "Alice" has created folder "/folder"
And user "Alice" has uploaded file with content "some data" to "/folder/test.txt"
@@ -261,16 +214,12 @@ Feature: copying file using file id
| shareType | user |
| permissionsRole | Secure viewer |
And user "Brian" has a share "folder" synced
When user "Brian" copies a file "/test.txt" into "/" inside space "Personal" using file-id path "<dav-path>"
When user "Brian" copies a file "/test.txt" into "/" inside space "Personal" using file-id "<<FILEID>>"
Then the HTTP status code should be "403"
And for user "Brian" folder "folder" of the space "Shares" should contain these files:
| test.txt |
And for user "Brian" folder "/" of the space "Personal" should not contain these files:
| test.txt |
Examples:
| dav-path |
| /remote.php/dav/spaces/<<FILEID>> |
| /dav/spaces/<<FILEID>> |
Scenario Outline: sharee copies a file from shares to project space
@@ -292,7 +241,7 @@ Feature: copying file using file id
| sharee | Brian |
| shareType | user |
| permissionsRole | <space-role> |
When user "Brian" copies a file "Shares/folder/test.txt" into "/" inside space "project-space" using file-id path "<dav-path>"
When user "Brian" copies a file "Shares/folder/test.txt" into "/" inside space "project-space" using file-id "<<FILEID>>"
Then the HTTP status code should be "201"
And for user "Brian" folder "folder" of the space "Shares" should contain these files:
| test.txt |
@@ -301,19 +250,13 @@ Feature: copying file using file id
And for user "Alice" folder "/" of the space "project-space" should contain these files:
| test.txt |
Examples:
| permission-role | space-role | dav-path |
| Viewer | Manager | /remote.php/dav/spaces/<<FILEID>> |
| Viewer | Space Editor | /remote.php/dav/spaces/<<FILEID>> |
| Editor | Manager | /remote.php/dav/spaces/<<FILEID>> |
| Editor | Space Editor | /remote.php/dav/spaces/<<FILEID>> |
| Uploader | Manager | /remote.php/dav/spaces/<<FILEID>> |
| Uploader | Space Editor | /remote.php/dav/spaces/<<FILEID>> |
| Viewer | Manager | /dav/spaces/<<FILEID>> |
| Viewer | Space Editor | /dav/spaces/<<FILEID>> |
| Editor | Manager | /dav/spaces/<<FILEID>> |
| Editor | Space Editor | /dav/spaces/<<FILEID>> |
| Uploader | Manager | /dav/spaces/<<FILEID>> |
| Uploader | Space Editor | /dav/spaces/<<FILEID>> |
| permission-role | space-role |
| Viewer | Manager |
| Viewer | Space Editor |
| Editor | Manager |
| Editor | Space Editor |
| Uploader | Manager |
| Uploader | Space Editor |
Scenario Outline: sharee tries to copy a file from shares to project space
@@ -335,7 +278,7 @@ Feature: copying file using file id
| sharee | Brian |
| shareType | user |
| permissionsRole | <space-role> |
When user "Brian" copies a file "Shares/folder/test.txt" into "/" inside space "project-space" using file-id path "<dav-path>"
When user "Brian" copies a file "Shares/folder/test.txt" into "/" inside space "project-space" using file-id "<<FILEID>>"
Then the HTTP status code should be "403"
And for user "Brian" folder "folder" of the space "Shares" should contain these files:
| test.txt |
@@ -344,19 +287,13 @@ Feature: copying file using file id
And for user "Alice" folder "/" of the space "project-space" should not contain these files:
| test.txt |
Examples:
| permission-role | space-role | dav-path |
| Secure viewer | Manager | /remote.php/dav/spaces/<<FILEID>> |
| Secure viewer | Space Viewer | /remote.php/dav/spaces/<<FILEID>> |
| Secure viewer | Space Editor | /remote.php/dav/spaces/<<FILEID>> |
| Editor | Space Viewer | /remote.php/dav/spaces/<<FILEID>> |
| Viewer | Space Viewer | /remote.php/dav/spaces/<<FILEID>> |
| Uploader | Space Viewer | /remote.php/dav/spaces/<<FILEID>> |
| Secure viewer | Manager | /dav/spaces/<<FILEID>> |
| Secure viewer | Space Viewer | /dav/spaces/<<FILEID>> |
| Secure viewer | Space Editor | /dav/spaces/<<FILEID>> |
| Editor | Space Viewer | /dav/spaces/<<FILEID>> |
| Viewer | Space Viewer | /dav/spaces/<<FILEID>> |
| Uploader | Space Viewer | /dav/spaces/<<FILEID>> |
| permission-role | space-role |
| Secure viewer | Manager |
| Secure viewer | Space Viewer |
| Secure viewer | Space Editor |
| Editor | Space Viewer |
| Viewer | Space Viewer |
| Uploader | Space Viewer |
Scenario Outline: sharee copies a file between shares spaces
@@ -379,7 +316,7 @@ Feature: copying file using file id
| shareType | user |
| permissionsRole | <to-share-role> |
And user "Brian" has a share "share2" synced
When user "Brian" copies a file "Shares/share1/test.txt" into "share2" inside space "Shares" using file-id path "<dav-path>"
When user "Brian" copies a file "Shares/share1/test.txt" into "share2" inside space "Shares" using file-id "<<FILEID>>"
Then the HTTP status code should be "201"
And for user "Brian" folder "share1" of the space "Shares" should contain these files:
| test.txt |
@@ -390,19 +327,13 @@ Feature: copying file using file id
And for user "Alice" folder "share2" of the space "Personal" should contain these files:
| test.txt |
Examples:
| from-share-role | to-share-role | dav-path |
| Viewer | Editor | /remote.php/dav/spaces/<<FILEID>> |
| Viewer | Uploader | /remote.php/dav/spaces/<<FILEID>> |
| Editor | Editor | /remote.php/dav/spaces/<<FILEID>> |
| Editor | Uploader | /remote.php/dav/spaces/<<FILEID>> |
| Uploader | Editor | /remote.php/dav/spaces/<<FILEID>> |
| Uploader | Uploader | /remote.php/dav/spaces/<<FILEID>> |
| Viewer | Editor | /dav/spaces/<<FILEID>> |
| Viewer | Uploader | /dav/spaces/<<FILEID>> |
| Editor | Editor | /dav/spaces/<<FILEID>> |
| Editor | Uploader | /dav/spaces/<<FILEID>> |
| Uploader | Editor | /dav/spaces/<<FILEID>> |
| Uploader | Uploader | /dav/spaces/<<FILEID>> |
| from-share-role | to-share-role |
| Viewer | Editor |
| Viewer | Uploader |
| Editor | Editor |
| Editor | Uploader |
| Uploader | Editor |
| Uploader | Uploader |
Scenario Outline: sharee tries to copy a file between shares space
@@ -425,7 +356,7 @@ Feature: copying file using file id
| shareType | user |
| permissionsRole | <to-share-role> |
And user "Brian" has a share "share2" synced
When user "Brian" copies a file "Shares/share1/test.txt" into "share2" inside space "Shares" using file-id path "<dav-path>"
When user "Brian" copies a file "Shares/share1/test.txt" into "share2" inside space "Shares" using file-id "<<FILEID>>"
Then the HTTP status code should be "403"
And for user "Brian" folder "share1" of the space "Shares" should contain these files:
| test.txt |
@@ -436,27 +367,17 @@ Feature: copying file using file id
And for user "Alice" folder "share2" of the space "Personal" should not contain these files:
| test.txt |
Examples:
| from-share-role | to-share-role | dav-path |
| Secure viewer | Viewer | /remote.php/dav/spaces/<<FILEID>> |
| Secure viewer | Editor | /remote.php/dav/spaces/<<FILEID>> |
| Secure viewer | Uploader | /remote.php/dav/spaces/<<FILEID>> |
| Secure viewer | Secure viewer | /remote.php/dav/spaces/<<FILEID>> |
| Viewer | Viewer | /remote.php/dav/spaces/<<FILEID>> |
| Editor | Viewer | /remote.php/dav/spaces/<<FILEID>> |
| Uploader | Viewer | /remote.php/dav/spaces/<<FILEID>> |
| Viewer | Secure viewer | /remote.php/dav/spaces/<<FILEID>> |
| Editor | Secure viewer | /remote.php/dav/spaces/<<FILEID>> |
| Uploader | Secure viewer | /remote.php/dav/spaces/<<FILEID>> |
| Secure viewer | Viewer | /dav/spaces/<<FILEID>> |
| Secure viewer | Editor | /dav/spaces/<<FILEID>> |
| Secure viewer | Uploader | /dav/spaces/<<FILEID>> |
| Secure viewer | Secure viewer | /dav/spaces/<<FILEID>> |
| Viewer | Viewer | /dav/spaces/<<FILEID>> |
| Editor | Viewer | /dav/spaces/<<FILEID>> |
| Uploader | Viewer | /dav/spaces/<<FILEID>> |
| Viewer | Secure viewer | /dav/spaces/<<FILEID>> |
| Editor | Secure viewer | /dav/spaces/<<FILEID>> |
| Uploader | Secure viewer | /dav/spaces/<<FILEID>> |
| from-share-role | to-share-role |
| Secure viewer | Viewer |
| Secure viewer | Editor |
| Secure viewer | Uploader |
| Secure viewer | Secure viewer |
| Viewer | Viewer |
| Editor | Viewer |
| Uploader | Viewer |
| Viewer | Secure viewer |
| Editor | Secure viewer |
| Uploader | Secure viewer |
Scenario Outline: copy a file from project to personal space
@@ -470,20 +391,17 @@ Feature: copying file using file id
| sharee | Brian |
| shareType | user |
| permissionsRole | <space-role> |
When user "Brian" copies a file "/textfile.txt" into "/" inside space "Personal" using file-id path "<dav-path>"
When user "Brian" copies a file "/textfile.txt" into "/" inside space "Personal" using file-id "<<FILEID>>"
Then the HTTP status code should be "201"
And for user "Brian" folder "/" of the space "project-space" should contain these files:
| textfile.txt |
And for user "Brian" folder "/" of the space "Personal" should contain these files:
| textfile.txt |
Examples:
| space-role | dav-path |
| Manager | /remote.php/dav/spaces/<<FILEID>> |
| Space Editor | /remote.php/dav/spaces/<<FILEID>> |
| Space Viewer | /remote.php/dav/spaces/<<FILEID>> |
| Manager | /dav/spaces/<<FILEID>> |
| Space Editor | /dav/spaces/<<FILEID>> |
| Space Viewer | /dav/spaces/<<FILEID>> |
| space-role |
| Manager |
| Space Editor |
| Space Viewer |
Scenario Outline: copy a file between two project spaces
@@ -503,7 +421,7 @@ Feature: copying file using file id
| sharee | Brian |
| shareType | user |
| permissionsRole | <to-space-role> |
When user "Brian" copies a file "textfile.txt" into "/" inside space "second-project-space" using file-id path "<dav-path>"
When user "Brian" copies a file "textfile.txt" into "/" inside space "second-project-space" using file-id "<<FILEID>>"
Then the HTTP status code should be "201"
And for user "Brian" the space "second-project-space" should contain these entries:
| textfile.txt |
@@ -512,19 +430,13 @@ Feature: copying file using file id
And for user "Alice" the space "second-project-space" should contain these entries:
| textfile.txt |
Examples:
| from-space-role | to-space-role | dav-path |
| Manager | Manager | /remote.php/dav/spaces/<<FILEID>> |
| Manager | Space Editor | /remote.php/dav/spaces/<<FILEID>> |
| Space Editor | Manager | /remote.php/dav/spaces/<<FILEID>> |
| Space Editor | Space Editor | /remote.php/dav/spaces/<<FILEID>> |
| Space Viewer | Manager | /remote.php/dav/spaces/<<FILEID>> |
| Space Viewer | Space Editor | /remote.php/dav/spaces/<<FILEID>> |
| Manager | Manager | /dav/spaces/<<FILEID>> |
| Manager | Space Editor | /dav/spaces/<<FILEID>> |
| Space Editor | Manager | /dav/spaces/<<FILEID>> |
| Space Editor | Space Editor | /dav/spaces/<<FILEID>> |
| Space Viewer | Manager | /dav/spaces/<<FILEID>> |
| Space Viewer | Space Editor | /dav/spaces/<<FILEID>> |
| from-space-role | to-space-role |
| Manager | Manager |
| Manager | Space Editor |
| Space Editor | Manager |
| Space Editor | Space Editor |
| Space Viewer | Manager |
| Space Viewer | Space Editor |
Scenario Outline: try to copy a file from a project to another project space with read permission
@@ -544,7 +456,7 @@ Feature: copying file using file id
| sharee | Brian |
| shareType | user |
| permissionsRole | <to-space-role> |
When user "Brian" copies a file "textfile.txt" into "/" inside space "second-project-space" using file-id path "<dav-path>"
When user "Brian" copies a file "textfile.txt" into "/" inside space "second-project-space" using file-id "<<FILEID>>"
Then the HTTP status code should be "403"
And for user "Brian" the space "second-project-space" should not contain these entries:
| textfile.txt |
@@ -553,13 +465,10 @@ Feature: copying file using file id
But for user "Alice" the space "second-project-space" should not contain these entries:
| textfile.txt |
Examples:
| from-space-role | to-space-role | dav-path |
| Manager | Space Viewer | /remote.php/dav/spaces/<<FILEID>> |
| Space Editor | Space Viewer | /remote.php/dav/spaces/<<FILEID>> |
| Space Viewer | Space Viewer | /remote.php/dav/spaces/<<FILEID>> |
| Manager | Space Viewer | /dav/spaces/<<FILEID>> |
| Space Editor | Space Viewer | /dav/spaces/<<FILEID>> |
| Space Viewer | Space Viewer | /dav/spaces/<<FILEID>> |
| from-space-role | to-space-role |
| Manager | Space Viewer |
| Space Editor | Space Viewer |
| Space Viewer | Space Viewer |
Scenario Outline: copy a file from project to shares space
@@ -581,7 +490,7 @@ Feature: copying file using file id
| shareType | user |
| permissionsRole | <permissions> |
And user "Brian" has a share "testshare" synced
When user "Brian" copies a file "textfile.txt" into "testshare" inside space "Shares" using file-id path "<dav-path>"
When user "Brian" copies a file "textfile.txt" into "testshare" inside space "Shares" using file-id "<<FILEID>>"
Then the HTTP status code should be "201"
And for user "Brian" folder "/" of the space "project-space" should contain these files:
| textfile.txt |
@@ -590,19 +499,13 @@ Feature: copying file using file id
And for user "Alice" folder "testshare" of the space "Personal" should contain these files:
| textfile.txt |
Examples:
| space-role | permissions | dav-path |
| Manager | Editor | /remote.php/dav/spaces/<<FILEID>> |
| Manager | Uploader | /remote.php/dav/spaces/<<FILEID>> |
| Space Editor | Editor | /remote.php/dav/spaces/<<FILEID>> |
| Space Editor | Uploader | /remote.php/dav/spaces/<<FILEID>> |
| Space Viewer | Editor | /remote.php/dav/spaces/<<FILEID>> |
| Space Viewer | Uploader | /remote.php/dav/spaces/<<FILEID>> |
| Manager | Editor | /dav/spaces/<<FILEID>> |
| Manager | Uploader | /dav/spaces/<<FILEID>> |
| Space Editor | Editor | /dav/spaces/<<FILEID>> |
| Space Editor | Uploader | /dav/spaces/<<FILEID>> |
| Space Viewer | Editor | /dav/spaces/<<FILEID>> |
| Space Viewer | Uploader | /dav/spaces/<<FILEID>> |
| space-role | permissions |
| Manager | Editor |
| Manager | Uploader |
| Space Editor | Editor |
| Space Editor | Uploader |
| Space Viewer | Editor |
| Space Viewer | Uploader |
Scenario Outline: try to copy a file from project to shares space with read permission
@@ -624,7 +527,7 @@ Feature: copying file using file id
| shareType | user |
| permissionsRole | <permissions> |
And user "Brian" has a share "testshare" synced
When user "Brian" copies a file "textfile.txt" into "testshare" inside space "Shares" using file-id path "<dav-path>"
When user "Brian" copies a file "textfile.txt" into "testshare" inside space "Shares" using file-id "<<FILEID>>"
Then the HTTP status code should be "403"
And for user "Brian" folder "/" of the space "project-space" should contain these files:
| textfile.txt |
@@ -633,16 +536,10 @@ Feature: copying file using file id
And for user "Alice" folder "testshare" of the space "Personal" should not contain these files:
| textfile.txt |
Examples:
| space-role | permissions | dav-path |
| Manager | Viewer | /remote.php/dav/spaces/<<FILEID>> |
| Manager | Secure viewer | /remote.php/dav/spaces/<<FILEID>> |
| Space Editor | Viewer | /remote.php/dav/spaces/<<FILEID>> |
| Space Editor | Secure viewer | /remote.php/dav/spaces/<<FILEID>> |
| Space Viewer | Viewer | /remote.php/dav/spaces/<<FILEID>> |
| Space Viewer | Secure viewer | /remote.php/dav/spaces/<<FILEID>> |
| Manager | Viewer | /dav/spaces/<<FILEID>> |
| Manager | Secure viewer | /dav/spaces/<<FILEID>> |
| Space Editor | Viewer | /dav/spaces/<<FILEID>> |
| Space Editor | Secure viewer | /dav/spaces/<<FILEID>> |
| Space Viewer | Viewer | /dav/spaces/<<FILEID>> |
| Space Viewer | Secure viewer | /dav/spaces/<<FILEID>> |
| space-role | permissions |
| Manager | Viewer |
| Manager | Secure viewer |
| Space Editor | Viewer |
| Space Editor | Secure viewer |
| Space Viewer | Viewer |
| Space Viewer | Secure viewer |