From b6444df0392c79c5c2bf8140f1c52f576ac99d65 Mon Sep 17 00:00:00 2001 From: nabim777 Date: Thu, 2 Nov 2023 13:03:38 +0545 Subject: [PATCH] add test for copy file between space in project-space --- .../copyByFileId.feature | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/acceptance/features/apiSpacesDavOperation/copyByFileId.feature b/tests/acceptance/features/apiSpacesDavOperation/copyByFileId.feature index 14fdafd4731..81b2e7600a5 100644 --- a/tests/acceptance/features/apiSpacesDavOperation/copyByFileId.feature +++ b/tests/acceptance/features/apiSpacesDavOperation/copyByFileId.feature @@ -241,3 +241,22 @@ Feature: copying file using file id | dav-path | | /remote.php/dav/spaces/<> | | /dav/spaces/<> | + + + Scenario Outline: copy a file between spaces 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 "first-project-space" with the default quota using the Graph API + And user "Alice" has created a space "second-project-space" with the default quota using the Graph API + And user "Alice" has uploaded a file inside space "first-project-space" with content "data from first project space" to "firstProjectSpacetextfile.txt" + And user "Alice" has uploaded a file inside space "second-project-space" with content "data from second project space" to "SecondProjectSpacetextfile.txt" + And we save it into "FILEID" + When user "Alice" copies a file "/SecondProjectSpacetextfile.txt" into "/" inside space "first-project-space" using file-id path "" + Then the HTTP status code should be "201" + And for user "Alice" folder "/" of the space "first-project-space" should contain these files: + | firstProjectSpacetextfile.txt | + And for user "Alice" folder "/" of the space "second-project-space" should contain these files: + | SecondProjectSpacetextfile.txt | + Examples: + | dav-path | + | /remote.php/dav/spaces/<> | + | /dav/spaces/<> |