diff --git a/tests/acceptance/features/apiSpacesDavOperation/copyByFileId.feature b/tests/acceptance/features/apiSpacesDavOperation/copyByFileId.feature index b0d1aed3ee..c9e8788be2 100644 --- a/tests/acceptance/features/apiSpacesDavOperation/copyByFileId.feature +++ b/tests/acceptance/features/apiSpacesDavOperation/copyByFileId.feature @@ -75,8 +75,7 @@ Feature: copying file using file id Scenario Outline: copy a file into a folder in project space - Given using spaces DAV path - And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API + 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 GraphApi 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" @@ -94,8 +93,7 @@ Feature: copying file using file id Scenario Outline: copy a file into a sub-folder in project space - Given using spaces DAV path - And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API + 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 GraphApi 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" @@ -113,8 +111,7 @@ Feature: copying file using file id Scenario Outline: copy a file from a folder into root of project space - Given using spaces DAV path - And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API + 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 GraphApi 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" @@ -132,8 +129,7 @@ Feature: copying file using file id Scenario Outline: copy a file from sub-folder into root of project space - Given using spaces DAV path - And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API + 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 GraphApi 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" @@ -148,3 +144,37 @@ Feature: copying file using file id | dav-path | | /remote.php/dav/spaces/<> | | /dav/spaces/<> | + + + Scenario Outline: 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 GraphApi + 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 "" + 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/<> | + | /dav/spaces/<> | + + + Scenario Outline: copy a file from project to personal 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 GraphApi + 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 "/" inside space "Personal" using file-id path "" + 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/<> | + | /dav/spaces/<> |