2023-10-03 16:40:58 +05:45
Feature: moving/renaming file using file id
As a user
I want to be able to move or rename files using file id
So that I can manage my file system
Background:
Given using spaces DAV path
2024-11-29 09:39:21 +05:45
And user " Alice " has been created with default attributes
2023-10-03 16:40:58 +05:45
2024-09-17 17:11:20 +05:45
Scenario: move a file into a folder inside personal space
2023-10-03 16:40:58 +05:45
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 "
2024-11-13 15:54:16 +05:45
When user " Alice " moves file with id " <<FILEID> > " as " /textfile.txt " into folder " /folder " inside space " Personal "
2023-10-03 16:40:58 +05:45
Then the HTTP status code should be " 201 "
And for user " Alice " folder " folder " of the space " Personal " should contain these files:
| textfile.txt |
But for user " Alice " the space " Personal " should not contain these entries:
| textfile.txt |
2024-09-17 17:11:20 +05:45
Scenario: move a file into a sub-folder inside personal space
2023-10-03 16:40:58 +05:45
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 "
2024-11-13 15:54:16 +05:45
When user " Alice " moves file with id " <<FILEID> > " as " /textfile.txt " into folder " /folder/sub-folder " inside space " Personal "
2023-10-03 16:40:58 +05:45
Then the HTTP status code should be " 201 "
And for user " Alice " folder " folder/sub-folder/ " of the space " Personal " should contain these files:
| textfile.txt |
But for user " Alice " the space " Personal " should not contain these entries:
| textfile.txt |
2024-09-17 17:11:20 +05:45
Scenario: move a file from folder to root inside personal space
2023-10-03 16:40:58 +05:45
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 "
2024-11-13 15:54:16 +05:45
When user " Alice " moves file with id " <<FILEID> > " as " textfile.txt " into folder " / " inside space " Personal "
2023-10-03 16:40:58 +05:45
Then the HTTP status code should be " 201 "
And for user " Alice " the space " Personal " should contain these entries:
| textfile.txt |
But for user " Alice " folder " folder " of the space " Personal " should not contain these files:
| textfile.txt |
2024-09-17 17:11:20 +05:45
Scenario: move a file from sub-folder to root inside personal space
2023-10-03 16:40:58 +05:45
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 "
2024-11-13 15:54:16 +05:45
When user " Alice " moves file with id " <<FILEID> > " as " textfile.txt " into folder " / " inside space " Personal "
2023-10-03 16:40:58 +05:45
Then the HTTP status code should be " 201 "
And for user " Alice " the space " Personal " should contain these entries:
| textfile.txt |
But for user " Alice " folder " folder/sub-folder " of the space " Personal " should not contain these files:
| textfile.txt |
2023-10-09 09:15:23 +05:45
2026-08-14 10:50:35 +02:00
Scenario: move a file into same folder with same name
2024-01-09 16:33:04 +05:45
And user " Alice " has uploaded file with content " some data " to " textfile.txt "
And we save it into " FILEID "
2024-11-13 15:54:16 +05:45
When user " Alice " moves file with id " <<FILEID> > " as " textfile.txt " into folder " / " inside space " Personal "
2026-08-14 10:50:35 +02:00
Then the HTTP status code should be " 204 "
2024-01-09 16:33:04 +05:45
And as " Alice " file " textfile.txt " should not exist in the trashbin of the space " Personal "
And for user " Alice " the content of the file " textfile.txt " of the space " Personal " should be " some data "
2023-10-09 09:15:23 +05:45
2024-01-04 18:00:04 +05:45
Scenario Outline: move a file from personal to share space
2024-11-29 09:39:21 +05:45
Given user " Brian " has been created with default attributes
2024-01-04 18:00:04 +05:45
And user " Alice " has created folder " /folder "
2024-05-09 14:23:32 +05:45
And user " Alice " has sent the following resource share invitation:
| resource | folder |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | <permissions> |
2024-07-25 18:09:28 +05:45
And user " Brian " has a share " folder " synced
2024-01-04 18:00:04 +05:45
And user " Brian " has uploaded file with content " some data " to " /test.txt "
And we save it into " FILEID "
2024-11-13 15:54:16 +05:45
When user " Brian " moves file with id " <<FILEID> > " as " test.txt " into folder " folder " inside space " Shares "
2024-01-26 20:56:39 +05:45
Then the HTTP status code should be " 502 "
2024-01-26 21:19:11 +05:45
And the value of the item " /d:error/s:message " in the response about user " Brian " should be " cross storage moves are not supported, use copy and delete "
2024-01-04 18:00:04 +05:45
And for user " Brian " folder " / " of the space " Personal " should contain these files:
| test.txt |
But for user " Alice " folder " folder " of the space " Personal " should not contain these files:
| test.txt |
Examples:
2024-09-17 17:11:20 +05:45
| permissions |
| Editor |
| Viewer |
2024-01-04 18:00:04 +05:45
@issue-7618
Scenario Outline: move a file from personal to project space
2024-11-29 09:39:21 +05:45
Given user " Brian " has been created with default attributes
2024-01-04 18:00:04 +05:45
And 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 " Brian " has uploaded a file inside space " Personal " with content " some data " to " textfile.txt "
And we save it into " FILEID "
2024-05-09 14:23:32 +05:45
And user " Alice " has sent the following space share invitation:
| space | project-space |
| sharee | Brian |
| shareType | user |
| permissionsRole | <space-role> |
2024-11-13 15:54:16 +05:45
When user " Brian " moves file with id " <<FILEID> > " as " textfile.txt " into folder " / " inside space " project-space "
2024-01-04 18:00:04 +05:45
Then the HTTP status code should be " <http-status-code> "
And for user " Brian " folder " / " of the space " Personal " should contain these files:
| textfile.txt |
But for user " Brian " folder " / " of the space " project-space " should not contain these files:
| textfile.txt |
Examples:
2024-09-17 17:11:20 +05:45
| space-role | http-status-code |
| Manager | 502 |
| Space Editor | 502 |
| Space Viewer | 403 |
2024-01-04 18:00:04 +05:45
@issue-7618
2024-09-17 17:11:20 +05:45
Scenario: move a file to different name from personal space to project space
2023-11-21 16:45:04 +05:45
Given the administrator has assigned the role " Space Admin " to user " Alice " using the Graph API
2023-10-30 17:57:42 +05:45
And user " Alice " has created a space " project-space " with the default quota using the Graph API
2024-01-04 18:00:04 +05:45
And user " Alice " has uploaded a file inside space " Personal " with content " some data " to " textfile.txt "
And we save it into " FILEID "
2024-11-13 15:54:16 +05:45
When user " Alice " renames file with id " <<FILEID> > " to " renamed.txt " inside space " project-space "
2024-01-30 16:53:07 +05:45
Then the HTTP status code should be " 502 "
2024-01-04 18:00:04 +05:45
And the value of the item " /d:error/s:message " in the response about user " Alice " should be " move:error: not supported: cannot move across spaces "
And for user " Alice " folder " / " of the space " Personal " should contain these files:
| textfile.txt |
But for user " Alice " folder " / " of the space " project-space " should not contain these files:
| renamed.txt |
Scenario Outline: move a file into a folder inside project space (manager/editor)
Given the administrator has assigned the role " Space Admin " to user " Alice " using the Graph API
2024-11-29 09:39:21 +05:45
And user " Brian " has been created with default attributes
2024-01-04 18:00:04 +05:45
And user " Alice " has created a space " project-space " with the default quota using the Graph API
2023-10-09 09:15:23 +05:45
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 "
2024-05-09 14:23:32 +05:45
And user " Alice " has sent the following space share invitation:
| space | project-space |
| sharee | Brian |
| shareType | user |
| permissionsRole | <space-role> |
2024-11-13 15:54:16 +05:45
When user " Brian " moves file with id " <<FILEID> > " as " /textfile.txt " into folder " /folder " inside space " project-space "
2023-10-09 09:15:23 +05:45
Then the HTTP status code should be " 201 "
And for user " Alice " folder " folder " of the space " project-space " should contain these files:
| textfile.txt |
But for user " Alice " the space " project-space " should not contain these entries:
| textfile.txt |
2024-01-04 18:00:04 +05:45
Examples:
2024-09-17 17:11:20 +05:45
| space-role |
| Manager |
| Space Editor |
2024-01-04 18:00:04 +05:45
2026-08-14 10:50:35 +02:00
Scenario Outline: move a file within a project space into a folder with same name
2024-01-09 16:33:04 +05:45
Given the administrator has assigned the role " Space Admin " to user " Alice " using the Graph API
2024-11-29 09:39:21 +05:45
And user " Brian " has been created with default attributes
2024-01-09 16:33:04 +05:45
And user " Alice " has created a space " project-space " with the default quota using the Graph API
And user " Alice " has uploaded a file inside space " project-space " with content " some data " to " textfile.txt "
And we save it into " FILEID "
2024-05-09 14:23:32 +05:45
And user " Alice " has sent the following space share invitation:
| space | project-space |
| sharee | Brian |
| shareType | user |
| permissionsRole | <space-role> |
2024-11-13 15:54:16 +05:45
When user " Brian " moves file with id " <<FILEID> > " as " textfile.txt " into folder " / " inside space " project-space "
2026-08-14 10:50:35 +02:00
Then the HTTP status code should be " <http-status-code> "
2024-01-09 16:33:04 +05:45
And as " Alice " file " textfile.txt " should not exist in the trashbin of the space " project-space "
And for user " Brian " the content of the file " textfile.txt " of the space " project-space " should be " some data "
Examples:
2026-08-14 10:50:35 +02:00
| space-role | http-status-code |
| Manager | 204 |
| Space Viewer | 403 |
2024-01-09 16:33:04 +05:45
2024-01-04 18:00:04 +05:45
2024-09-17 17:11:20 +05:45
Scenario: try to move a file into a folder inside project space (viewer)
2024-01-04 18:00:04 +05:45
Given the administrator has assigned the role " Space Admin " to user " Alice " using the Graph API
2024-11-29 09:39:21 +05:45
And user " Brian " has been created with default attributes
2024-01-04 18:00:04 +05:45
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 "
2024-05-09 14:23:32 +05:45
And user " Alice " has sent the following space share invitation:
| space | project-space |
| sharee | Brian |
| shareType | user |
| permissionsRole | Space Viewer |
2024-11-13 15:54:16 +05:45
When user " Brian " moves file with id " <<FILEID> > " as " /textfile.txt " into folder " /folder " inside space " project-space "
2024-01-04 18:00:04 +05:45
Then the HTTP status code should be " 403 "
And for user " Alice " the space " project-space " should contain these entries:
| textfile.txt |
But for user " Alice " folder " folder " of the space " project-space " should not contain these files:
| textfile.txt |
2023-10-09 09:15:23 +05:45
2024-09-17 17:11:20 +05:45
Scenario: move a file into a sub-folder inside project space
2023-11-21 16:45:04 +05:45
Given the administrator has assigned the role " Space Admin " to user " Alice " using the Graph API
2023-10-30 17:57:42 +05:45
And user " Alice " has created a space " project-space " with the default quota using the Graph API
2023-10-09 09:15:23 +05:45
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 "
2024-11-13 15:54:16 +05:45
When user " Alice " moves file with id " <<FILEID> > " as " /textfile.txt " into folder " /folder/sub-folder " inside space " project-space "
2023-10-09 09:15:23 +05:45
Then the HTTP status code should be " 201 "
And for user " Alice " folder " folder/sub-folder/ " of the space " project-space " should contain these files:
| textfile.txt |
But for user " Alice " the space " Personal " should not contain these entries:
| textfile.txt |
2024-09-17 17:11:20 +05:45
Scenario: move a file from folder to root inside project space
2023-11-21 16:45:04 +05:45
Given the administrator has assigned the role " Space Admin " to user " Alice " using the Graph API
2023-10-30 17:57:42 +05:45
And user " Alice " has created a space " project-space " with the default quota using the Graph API
2023-10-09 09:15:23 +05:45
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 "
2024-11-13 15:54:16 +05:45
When user " Alice " moves file with id " <<FILEID> > " as " textfile.txt " into folder " / " inside space " project-space "
2023-10-09 09:15:23 +05:45
Then the HTTP status code should be " 201 "
And for user " Alice " the space " project-space " should contain these entries:
| textfile.txt |
But for user " Alice " folder " folder " of the space " project-space " should not contain these files:
| textfile.txt |
2024-09-17 17:11:20 +05:45
Scenario: move a file from sub-folder to root inside project space
2023-11-21 16:45:04 +05:45
Given the administrator has assigned the role " Space Admin " to user " Alice " using the Graph API
2023-10-30 17:57:42 +05:45
And user " Alice " has created a space " project-space " with the default quota using the Graph API
2023-10-09 09:15:23 +05:45
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 "
2024-11-13 15:54:16 +05:45
When user " Alice " moves file with id " <<FILEID> > " as " textfile.txt " into folder " / " inside space " project-space "
2023-10-09 09:15:23 +05:45
Then the HTTP status code should be " 201 "
And for user " Alice " the space " project-space " should contain these entries:
| textfile.txt |
But for user " Alice " folder " folder/sub-folder " of the space " project-space " should not contain these files:
| textfile.txt |
2023-10-27 15:36:06 +05:45
2024-01-04 18:00:04 +05:45
@issue-8116
Scenario Outline: move a file between two project spaces
2024-11-29 09:39:21 +05:45
Given user " Brian " has been created with default attributes
2024-01-04 18:00:04 +05:45
And 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 " first project space " to " file.txt "
And we save it into " FILEID "
2024-05-09 14:23:32 +05:45
And user " Alice " has sent the following space share invitation:
| space | first-project-space |
| sharee | Brian |
| shareType | user |
| permissionsRole | <from-space-role> |
And user " Alice " has sent the following space share invitation:
| space | second-project-space |
| sharee | Brian |
| shareType | user |
| permissionsRole | <to-space-role> |
2024-11-13 15:54:16 +05:45
When user " Brian " moves file with id " <<FILEID> > " as " file.txt " into folder " / " inside space " second-project-space "
2024-01-04 18:00:04 +05:45
Then the HTTP status code should be " <http-status-code> "
And for user " Brian " the space " second-project-space " should not contain these entries:
| file.txt |
But for user " Brian " the space " first-project-space " should contain these entries:
| file.txt |
Examples:
2024-09-17 17:11:20 +05:45
| from-space-role | to-space-role | http-status-code |
| Manager | Manager | 502 |
| Space Editor | Manager | 502 |
| Manager | Space Editor | 502 |
| Space Editor | Space Editor | 502 |
| Manager | Space Viewer | 403 |
| Space Editor | Space Viewer | 403 |
| Space Viewer | Manager | 403 |
| Space Viewer | Space Editor | 403 |
| Space Viewer | Space Viewer | 403 |
2024-01-04 18:00:04 +05:45
@issue-8116
2024-09-17 17:11:20 +05:45
Scenario: move a file to different name between project spaces
2024-01-04 18:00:04 +05:45
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 "
2024-11-13 15:54:16 +05:45
When user " Alice " renames file with id " <<FILEID> > " to " /renamedSecondProjectSpacetextfile.txt " inside space " first-project-space "
2024-01-30 16:53:07 +05:45
Then the HTTP status code should be " 502 "
2024-01-04 18:00:04 +05:45
And the value of the item " /d:error/s:message " in the response about user " Alice " should be " move:error: not supported: cannot move across spaces "
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 |
But for user " Alice " the space " first-project-space " should not contain these entries:
| renamedSecondProjectSpacetextfile.txt |
2023-10-27 15:36:06 +05:45
2024-01-04 18:00:04 +05:45
Scenario Outline: move a file from project to shares space
2024-11-29 09:39:21 +05:45
Given user " Brian " has been created with default attributes
2024-01-04 18:00:04 +05:45
And 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 a file inside space " project-space " with content " some data " to " textfile.txt "
2023-10-27 15:36:06 +05:45
And we save it into " FILEID "
2024-05-09 14:23:32 +05:45
And user " Alice " has sent the following space share invitation:
| space | project-space |
| sharee | Brian |
| shareType | user |
| permissionsRole | <space-role> |
2024-01-04 18:00:04 +05:45
And user " Alice " has created folder " testshare "
2024-05-09 14:23:32 +05:45
And user " Alice " has sent the following resource share invitation:
| resource | testshare |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | <permissions> |
2024-07-25 18:09:28 +05:45
And user " Brian " has a share " testshare " synced
2024-11-13 15:54:16 +05:45
When user " Brian " moves file with id " <<FILEID> > " as " textfile.txt " into folder " testshare " inside space " Shares "
2024-01-26 20:56:39 +05:45
Then the HTTP status code should be " 502 "
2024-01-04 18:00:04 +05:45
And for user " Brian " folder " / " of the space " project-space " should contain these files:
| textfile.txt |
But for user " Brian " folder " testshare " of the space " Shares " should not contain these files:
| textfile.txt |
Examples:
2024-09-17 17:11:20 +05:45
| space-role | permissions |
| Manager | Editor |
| Space Editor | Editor |
| Space Viewer | Editor |
| Manager | Viewer |
| Space Editor | Viewer |
| Space Viewer | Viewer |
2024-01-04 18:00:04 +05:45
@issue-7618
Scenario Outline: move a file from project to personal space
2024-11-29 09:39:21 +05:45
Given user " Brian " has been created with default attributes
2024-01-04 18:00:04 +05:45
And 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 a file inside space " project-space " with content " some data " to " textfile.txt "
And we save it into " FILEID "
2024-05-09 14:23:32 +05:45
And user " Alice " has sent the following space share invitation:
| space | project-space |
| sharee | Brian |
| shareType | user |
| permissionsRole | <space-role> |
2024-11-13 15:54:16 +05:45
When user " Brian " moves file with id " <<FILEID> > " as " /textfile.txt " into folder " / " inside space " Personal "
2024-01-04 18:00:04 +05:45
Then the HTTP status code should be " <http-status-code> "
And for user " Brian " folder " / " of the space " project-space " should contain these files:
| textfile.txt |
But for user " Brian " folder " / " of the space " Personal " should not contain these files:
| textfile.txt |
Examples:
2024-09-17 17:11:20 +05:45
| space-role | http-status-code |
| Manager | 502 |
| Space Editor | 502 |
| Space Viewer | 403 |
2024-01-04 18:00:04 +05:45
@issue-7618
2024-09-17 17:11:20 +05:45
Scenario: move a file to different name from project space to personal space
2024-01-04 18:00:04 +05:45
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 a file inside space " project-space " with content " some data " to " textfile.txt "
And we save it into " FILEID "
2024-11-13 15:54:16 +05:45
When user " Alice " renames file with id " <<FILEID> > " to " /renamed.txt " inside space " Personal "
2024-01-30 16:53:07 +05:45
Then the HTTP status code should be " 502 "
2024-01-04 18:00:04 +05:45
And the value of the item " /d:error/s:message " in the response about user " Alice " should be " move:error: not supported: cannot move across spaces "
And for user " Alice " folder " / " of the space " project-space " should contain these files:
| textfile.txt |
But for user " Alice " folder " / " of the space " Personal " should not contain these files:
| renamed.txt |
@issue-7617
2024-09-17 17:11:20 +05:45
Scenario: move a file into a folder within a shared folder (edit permissions)
2024-11-29 09:39:21 +05:45
Given user " Brian " has been created with default attributes
2024-01-04 18:00:04 +05:45
And 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/test.txt "
And we save it into " FILEID "
2024-05-09 14:23:32 +05:45
And user " Alice " has sent the following resource share invitation:
2024-09-17 17:11:20 +05:45
| resource | folder |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Editor |
2024-07-25 18:09:28 +05:45
And user " Brian " has a share " folder " synced
2024-11-13 15:54:16 +05:45
When user " Brian " moves file with id " <<FILEID> > " as " test.txt " into folder " folder/sub-folder " inside space " Shares "
2024-01-04 18:00:04 +05:45
Then the HTTP status code should be " 201 "
2023-10-27 15:36:06 +05:45
And for user " Brian " folder " folder/sub-folder " of the space " Shares " should contain these files:
| test.txt |
And for user " Alice " folder " folder/sub-folder " of the space " Personal " should contain these files:
| test.txt |
2024-01-04 18:00:04 +05:45
But for user " Brian " folder " folder " of the space " Shares " should not contain these files:
| test.txt |
2023-10-27 15:36:06 +05:45
And for user " Alice " folder " folder " of the space " Personal " should not contain these files:
| test.txt |
2023-10-03 16:40:58 +05:45
2026-08-14 10:50:35 +02:00
Scenario: sharee moves a file into same shared folder with same name
2024-11-29 09:39:21 +05:45
Given user " Brian " has been created with default attributes
2024-01-09 16:33:04 +05:45
And user " Alice " has created folder " folder "
And user " Alice " has uploaded file with content " some data " to " folder/test.txt "
And we save it into " FILEID "
2024-05-09 14:23:32 +05:45
And user " Alice " has sent the following resource share invitation:
2024-09-17 17:11:20 +05:45
| resource | folder |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Editor |
2024-06-27 12:28:26 +02:00
And user " Brian " has a share " /folder " synced
2024-11-13 15:54:16 +05:45
When user " Brian " moves file with id " <<FILEID> > " as " test.txt " into folder " folder " inside space " Shares "
2026-08-14 10:50:35 +02:00
Then the HTTP status code should be " 204 "
2024-01-09 16:33:04 +05:45
And as " Alice " file " test.txt " should not exist in the trashbin of the space " Personal "
And for user " Brian " the content of the file " folder/test.txt " of the space " Shares " should be " some data "
And for user " Alice " the content of the file " folder/test.txt " of the space " Personal " should be " some data "
2023-10-03 16:40:58 +05:45
2024-09-17 17:11:20 +05:45
Scenario: try to move a file into a folder within a shared folder (read permissions)
2024-11-29 09:39:21 +05:45
Given user " Brian " has been created with default attributes
2024-01-04 18:00:04 +05:45
And 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/test.txt "
2023-11-23 15:21:26 +05:45
And we save it into " FILEID "
2024-05-09 14:23:32 +05:45
And user " Alice " has sent the following resource share invitation:
| resource | folder |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Viewer |
2024-07-25 18:09:28 +05:45
And user " Brian " has a share " folder " synced
2024-11-13 15:54:16 +05:45
When user " Brian " moves file with id " <<FILEID> > " as " test.txt " into folder " folder/sub-folder " inside space " Shares "
2024-01-26 20:56:39 +05:45
Then the HTTP status code should be " 502 "
2024-01-04 18:00:04 +05:45
And for user " Brian " folder " folder/sub-folder " of the space " Shares " should not contain these files:
2023-11-23 15:21:26 +05:45
| test.txt |
2024-01-04 18:00:04 +05:45
And for user " Alice " folder " folder/sub-folder " of the space " Personal " should not contain these files:
| test.txt |
But for user " Brian " folder " folder " of the space " Shares " should contain these files:
| test.txt |
And for user " Alice " folder " folder " of the space " Personal " should contain these files:
2023-11-23 15:21:26 +05:45
| test.txt |
2024-01-04 18:00:04 +05:45
Scenario Outline: move a file from one shared folder to another shared folder
2024-11-29 09:39:21 +05:45
Given user " Brian " has been created with default attributes
2024-01-04 18:00:04 +05:45
And user " Alice " has created folder " testshare1 "
And user " Alice " has created folder " testshare2 "
And user " Alice " has uploaded file with content " some data " to " testshare1/textfile.txt "
And we save it into " FILEID "
2024-05-09 14:23:32 +05:45
And user " Alice " has sent the following resource share invitation:
| resource | testshare1 |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | <from-permissions> |
2024-07-25 18:09:28 +05:45
And user " Brian " has a share " testshare1 " synced
2024-05-09 14:23:32 +05:45
And user " Alice " has sent the following resource share invitation:
| resource | testshare2 |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | <to-permissions> |
2024-07-25 18:09:28 +05:45
And user " Brian " has a share " testshare2 " synced
2024-11-13 15:54:16 +05:45
When user " Brian " moves file with id " <<FILEID> > " as " textfile.txt " into folder " testshare2 " inside space " Shares "
2024-01-26 20:56:39 +05:45
Then the HTTP status code should be " 502 "
2024-01-04 18:00:04 +05:45
And for user " Brian " folder " testshare1 " of the space " Shares " should contain these files:
| textfile.txt |
But for user " Brian " folder " testshare2 " of the space " Shares " should not contain these files:
| textfile.txt |
Examples:
2024-09-17 17:11:20 +05:45
| from-permissions | to-permissions |
| Editor | Editor |
| Editor | Viewer |
| Viewer | Editor |
| Viewer | Viewer |
2024-01-04 18:00:04 +05:45
@issue-8124
2023-11-23 15:21:26 +05:45
Scenario Outline: move a file from share to personal space
2024-11-29 09:39:21 +05:45
Given user " Brian " has been created with default attributes
2023-11-23 15:21:26 +05:45
And user " Alice " has created folder " /folder "
And user " Alice " has uploaded file with content " some data " to " /folder/test.txt "
And we save it into " FILEID "
2024-05-09 14:23:32 +05:45
And user " Alice " has sent the following resource share invitation:
| resource | folder |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | <permissions> |
2024-07-25 18:09:28 +05:45
And user " Brian " has a share " folder " synced
2024-11-13 15:54:16 +05:45
When user " Brian " moves file with id " <<FILEID> > " as " test.txt " into folder " / " inside space " Personal "
2024-01-04 18:00:04 +05:45
Then the HTTP status code should be " <http-status-code> "
2023-11-23 15:21:26 +05:45
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:
2024-09-17 17:11:20 +05:45
| permissions | http-status-code |
| Editor | 502 |
| Viewer | 403 |
2024-01-04 18:00:04 +05:45
@issue-8125
Scenario Outline: move a file from shares to project space
2024-11-29 09:39:21 +05:45
Given user " Brian " has been created with default attributes
2024-01-04 18:00:04 +05:45
And 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
2024-05-09 14:23:32 +05:45
And user " Alice " has sent the following space share invitation:
| space | project-space |
| sharee | Brian |
| shareType | user |
| permissionsRole | <space-role> |
2024-01-04 18:00:04 +05:45
And user " Alice " has created folder " testshare "
And user " Alice " has uploaded file with content " some data " to " testshare/textfile.txt "
2023-11-24 17:17:52 +05:45
And we save it into " FILEID "
2024-05-09 14:23:32 +05:45
And user " Alice " has sent the following resource share invitation:
| resource | testshare |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | <permissions> |
2024-07-25 18:09:28 +05:45
And user " Brian " has a share " testshare " synced
2024-11-13 15:54:16 +05:45
When user " Brian " moves file with id " <<FILEID> > " as " textfile.txt " into folder " / " inside space " project-space "
2024-01-04 18:00:04 +05:45
Then the HTTP status code should be " <http-status-code> "
And for user " Brian " folder " testshare " of the space " Shares " should contain these files:
| textfile.txt |
But for user " Brian " folder " / " of the space " project-space " should not contain these files:
| textfile.txt |
2023-11-24 17:17:52 +05:45
Examples:
2024-09-17 17:11:20 +05:45
| space-role | permissions | http-status-code |
| Manager | Editor | 502 |
| Space Editor | Editor | 502 |
| Space Viewer | Editor | 403 |
| Manager | Viewer | 403 |
| Space Editor | Viewer | 403 |
| Space Viewer | Viewer | 403 |
Scenario: rename a root file inside personal space
2023-10-03 16:40:58 +05:45
Given user " Alice " has uploaded file with content " some data " to " textfile.txt "
And we save it into " FILEID "
2024-11-13 15:54:16 +05:45
When user " Alice " renames file with id " <<FILEID> > " to " renamed.txt " inside space " Personal "
2023-10-03 16:40:58 +05:45
Then the HTTP status code should be " 201 "
And for user " Alice " the space " Personal " should contain these entries:
| renamed.txt |
But for user " Alice " the space " Personal " should not contain these entries:
| textfile.txt |
2024-09-17 17:11:20 +05:45
Scenario: rename a file and move into a folder inside personal space
2023-10-03 16:40:58 +05:45
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 "
2024-11-13 15:54:16 +05:45
When user " Alice " renames file with id " <<FILEID> > " to " /folder/renamed.txt " inside space " Personal "
2023-10-03 16:40:58 +05:45
Then the HTTP status code should be " 201 "
And for user " Alice " folder " folder " of the space " Personal " should contain these files:
| renamed.txt |
But for user " Alice " the space " Personal " should not contain these entries:
| textfile.txt |
2024-09-17 17:11:20 +05:45
Scenario: rename a file and move into a sub-folder inside personal space
2023-10-03 16:40:58 +05:45
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 "
2024-11-13 15:54:16 +05:45
When user " Alice " renames file with id " <<FILEID> > " to " /folder/sub-folder/renamed.txt " inside space " Personal "
2023-10-03 16:40:58 +05:45
Then the HTTP status code should be " 201 "
And for user " Alice " folder " folder/sub-folder " of the space " Personal " should contain these files:
| renamed.txt |
But for user " Alice " the space " Personal " should not contain these entries:
| textfile.txt |
2024-09-17 17:11:20 +05:45
Scenario: rename a file and move from a folder to root inside personal space
2023-10-03 16:40:58 +05:45
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 "
2024-11-13 15:54:16 +05:45
When user " Alice " renames file with id " <<FILEID> > " to " /renamed.txt " inside space " Personal "
2023-10-03 16:40:58 +05:45
Then the HTTP status code should be " 201 "
And for user " Alice " the space " Personal " should contain these entries:
| renamed.txt |
But for user " Alice " folder " folder " of the space " Personal " should not contain these files:
| renamed.txt |
2024-09-17 17:11:20 +05:45
Scenario: rename a file and move from sub-folder to root inside personal space
2023-10-03 16:40:58 +05:45
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 "
2024-11-13 15:54:16 +05:45
When user " Alice " renames file with id " <<FILEID> > " to " /renamed.txt " inside space " Personal "
2023-10-03 16:40:58 +05:45
Then the HTTP status code should be " 201 "
2023-11-21 16:45:04 +05:45
And for user " Alice " the space " Personal " should contain these files:
2023-10-03 16:40:58 +05:45
| renamed.txt |
But for user " Alice " folder " folder/sub-folder " of the space " Personal " should not contain these files:
| textfile.txt |
2023-11-21 16:45:04 +05:45
2024-01-04 18:00:04 +05:45
@issue-7617
2024-09-17 17:11:20 +05:45
Scenario: move a file to a different name into a sub-folder inside share space (editor permissions)
2024-11-29 09:39:21 +05:45
Given user " Brian " has been created with default attributes
2024-01-04 18:00:04 +05:45
And 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/test.txt "
2023-11-21 16:45:04 +05:45
And we save it into " FILEID "
2024-05-09 14:23:32 +05:45
And user " Alice " has sent the following resource share invitation:
| resource | folder |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Editor |
2024-07-25 18:09:28 +05:45
And user " Brian " has a share " folder " synced
2024-11-13 15:54:16 +05:45
When user " Brian " renames file with id " <<FILEID> > " to " folder/sub-folder/renamed.txt " inside space " Shares "
2024-01-04 18:00:04 +05:45
Then the HTTP status code should be " 201 "
And for user " Brian " folder " folder/sub-folder " of the space " Shares " should contain these files:
2023-11-21 16:45:04 +05:45
| renamed.txt |
2024-01-04 18:00:04 +05:45
But for user " Brian " folder " folder " of the space " Shares " should not contain these files:
| test.txt |
2023-11-21 16:45:04 +05:45
2024-09-17 17:11:20 +05:45
Scenario: move a file to a different name into a sub-folder inside share space (read permissions)
2024-11-29 09:39:21 +05:45
Given user " Brian " has been created with default attributes
2024-01-04 18:00:04 +05:45
And 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/test.txt "
2023-11-21 16:45:04 +05:45
And we save it into " FILEID "
2024-05-09 14:23:32 +05:45
And user " Alice " has sent the following resource share invitation:
| resource | folder |
| space | Personal |
| sharee | Brian |
| shareType | user |
| permissionsRole | Viewer |
2024-07-25 18:09:28 +05:45
And user " Brian " has a share " folder " synced
2024-11-13 15:54:16 +05:45
When user " Brian " renames file with id " <<FILEID> > " to " folder/sub-folder/renamed.txt " inside space " Shares "
2024-01-26 20:56:39 +05:45
Then the HTTP status code should be " 502 "
2024-01-04 18:00:04 +05:45
And for user " Brian " folder " folder " of the space " Shares " should contain these files:
| test.txt |
But for user " Brian " folder " folder/sub-folder " of the space " Shares " should not contain these files:
2023-11-21 16:45:04 +05:45
| renamed.txt |
2024-02-15 21:26:17 +05:45
@issue-6739
Scenario Outline: try to move personal file to other spaces using its id as the destination
Given the administrator has assigned the role " Space Admin " to user " Alice " using the Graph API
And user " Alice " has created a space " myspace " with the default quota using the Graph API
And user " Alice " has uploaded file with content " some data " to " textfile.txt "
2024-09-17 17:11:20 +05:45
When user " Alice " tries to move file " textfile.txt " of space " Personal " to space " <space-name> " using its id in destination path
2024-02-19 15:07:17 +05:45
Then the HTTP status code should be " <http-status-code> "
2024-02-15 21:26:17 +05:45
And for user " Alice " the space " Personal " should contain these entries:
| textfile.txt |
Examples:
2024-09-17 17:11:20 +05:45
| space-name | http-status-code |
| Personal | 409 |
| myspace | 400 |
| Shares | 404 |
2024-02-15 21:26:17 +05:45
@issue-6739
Scenario Outline: try to move project file to other spaces using its id as the destination
Given the administrator has assigned the role " Space Admin " to user " Alice " using the Graph API
And user " Alice " has created a space " myspace " with the default quota using the Graph API
And user " Alice " has uploaded a file inside space " myspace " with content " some data " to " textfile.txt "
2024-09-17 17:11:20 +05:45
When user " Alice " tries to move file " textfile.txt " of space " myspace " to space " <space-name> " using its id in destination path
2024-02-19 15:07:17 +05:45
Then the HTTP status code should be " <http-status-code> "
2024-02-15 21:26:17 +05:45
And for user " Alice " the space " myspace " should contain these entries:
| textfile.txt |
Examples:
2024-09-17 17:11:20 +05:45
| space-name | http-status-code |
| Personal | 400 |
| myspace | 409 |
| Shares | 404 |
2024-02-15 21:26:17 +05:45
@issue-6739
2024-09-17 17:11:20 +05:45
Scenario: move a file to folder using its id as the destination (Personal space)
2024-02-15 21:26:17 +05:45
Given user " Alice " has uploaded file with content " some data " to " textfile.txt "
And user " Alice " has created folder " docs "
2024-09-17 17:11:20 +05:45
When user " Alice " moves file " textfile.txt " of space " Personal " to folder " docs " using its id in destination path
2024-02-15 21:26:17 +05:45
Then the HTTP status code should be " 204 "
And the content of file " docs " for user " Alice " should be " some data "
And as " Alice " file " textfile.txt " should not exist
And as " Alice " folder " docs " should not exist
And as " Alice " folder " docs " should exist in the trashbin of the space " Personal "
@issue-6739
2024-09-17 17:11:20 +05:45
Scenario: move a file to folder using its id as the destination (Project space)
2024-02-15 21:26:17 +05:45
Given the administrator has assigned the role " Space Admin " to user " Alice " using the Graph API
And user " Alice " has created a space " myspace " with the default quota using the Graph API
And user " Alice " has uploaded a file inside space " myspace " with content " some data " to " textfile.txt "
And user " Alice " has created a folder " docs " in space " myspace "
2024-09-17 17:11:20 +05:45
When user " Alice " moves file " textfile.txt " of space " myspace " to folder " docs " using its id in destination path
2024-02-15 21:26:17 +05:45
Then the HTTP status code should be " 204 "
And for user " Alice " the content of the file " docs " of the space " myspace " should be " some data "
And as " Alice " folder " docs " should exist in the trashbin of the space " myspace "
And for user " Alice " folder " / " of the space " myspace " should not contain these files:
| textfile.txt |