2022-07-22 10:14:24 +05:45
Feature: move (rename) file
As a user
I want to be able to move and rename files
So that I can manage my file system
Background:
2024-11-29 09:39:21 +05:45
Given these users have been created with default attributes:
2022-07-22 10:14:24 +05:45
| username |
| Alice |
| Brian |
2022-09-14 13:38:15 +05:45
And using spaces DAV path
2022-07-22 10:14:24 +05:45
2022-11-01 15:13:14 +05:45
2024-05-08 09:45:36 +05:45
Scenario Outline: moving a file within same space project with role Manager and editor
2023-06-15 15:56:48 +02:00
Given the administrator has assigned the role " Space Admin " to user " Brian " using the Graph API
2023-10-30 17:57:42 +05:45
And user " Brian " has created a space " Project " with the default quota using the Graph API
2022-07-22 10:14:24 +05:45
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 "
2024-05-08 14:22:52 +05:45
And user " Brian " has sent the following space share invitation:
2024-05-08 09:45:36 +05:45
| space | Project |
| sharee | Alice |
| shareType | user |
| permissionsRole | <space-role> |
2022-07-22 10:14:24 +05:45
When user " Alice " moves file " insideSpace.txt " to " newfolder/insideSpace.txt " in space " Project " using the WebDAV API
Then the HTTP status code should be " 201 "
2023-10-03 09:26:31 +05:45
And for user " Alice " folder " newfolder " of the space " Project " should contain these entries:
| insideSpace.txt |
But for user " Alice " the space " Project " should not contain these entries:
2022-08-30 16:50:34 +05:45
| insideSpace.txt |
2022-07-22 10:14:24 +05:45
Examples:
2024-05-08 09:45:36 +05:45
| space-role |
| Manager |
| Space Editor |
2022-07-22 10:14:24 +05:45
2023-04-17 17:05:12 +05:45
Scenario: moving a file within same space project with role viewer
2023-06-15 15:56:48 +02:00
Given the administrator has assigned the role " Space Admin " to user " Brian " using the Graph API
2023-10-30 17:57:42 +05:45
And user " Brian " has created a space " Project " with the default quota using the Graph API
2022-07-22 10:14:24 +05:45
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 "
2024-05-08 14:22:52 +05:45
And user " Brian " has sent the following space share invitation:
2024-05-08 09:45:36 +05:45
| space | Project |
| sharee | Alice |
| shareType | user |
| permissionsRole | Space Viewer |
2022-07-22 10:14:24 +05:45
When user " Alice " moves file " insideSpace.txt " to " newfolder/insideSpace.txt " in space " Project " using the WebDAV API
Then the HTTP status code should be " 403 "
2023-10-03 09:26:31 +05:45
And for user " Alice " folder " newfolder " of the space " Project " should not contain these entries:
| insideSpace.txt |
But for user " Alice " the space " Project " should contain these entries:
2022-08-30 16:50:34 +05:45
| insideSpace.txt |
2022-07-22 10:14:24 +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 " 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 "
2024-05-08 14:22:52 +05:45
And user " Brian " has sent the following space share invitation:
2024-05-08 09:45:36 +05:45
| space | Project |
| sharee | Alice |
| shareType | user |
| permissionsRole | <space-role> |
2024-01-09 16:33:04 +05:45
When user " Alice " moves file " insideSpace.txt " from space " Project " to " insideSpace.txt " inside space " Project " using the WebDAV API
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 " Brian " file " insideSpace.txt " should not exist in the trashbin of the space " Project "
And for user " Alice " the content of the file " insideSpace.txt " of the space " Project " should be " some content "
Examples:
2026-08-14 10:50:35 +02:00
| space-role | http-status-code |
| Manager | 204 |
| Space Editor | 204 |
| Space Viewer | 403 |
2024-01-09 16:33:04 +05:45
2024-01-04 18:00:04 +05:45
@issue-8116
2023-04-17 17:05:12 +05:45
Scenario Outline: user moves a file from a space project with different a role to a space project with different role
2023-06-15 15:56:48 +02:00
Given the administrator has assigned the role " Space Admin " to user " Brian " using the Graph API
2023-10-30 17:57:42 +05:45
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
2022-07-22 10:14:24 +05:45
And user " Brian " has uploaded a file inside space " Project1 " with content " Project1 content " to " project1.txt "
2024-05-08 14:22:52 +05:45
And user " Brian " has sent the following space share invitation:
2024-05-08 09:45:36 +05:45
| space | Project1 |
| sharee | Alice |
| shareType | user |
| permissionsRole | <to-space-role> |
2024-05-08 14:22:52 +05:45
And user " Brian " has sent the following space share invitation:
2024-05-08 09:45:36 +05:45
| space | Project2 |
| sharee | Alice |
| shareType | user |
| permissionsRole | <from-space-role> |
2022-07-22 10:14:24 +05:45
When user " Alice " moves file " project1.txt " from space " Project1 " to " project1.txt " inside space " Project2 " using the WebDAV API
2024-01-04 18:00:04 +05:45
Then the HTTP status code should be " <http-status-code> "
2022-07-22 10:14:24 +05:45
And for user " Alice " the space " Project1 " should contain these entries:
2022-08-30 16:50:34 +05:45
| project1.txt |
2022-07-22 10:14:24 +05:45
And for user " Alice " the space " Project2 " should not contain these entries:
2022-08-30 16:50:34 +05:45
| project1.txt |
2022-07-22 10:14:24 +05:45
Examples:
2024-03-21 09:14:50 +05:45
| from-space-role | to-space-role | http-status-code |
2024-05-08 09:45:36 +05:45
| 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 |
2022-07-22 10:14:24 +05:45
2024-01-04 18:00:04 +05:45
@issue-7618
2023-04-17 17:05:12 +05:45
Scenario Outline: user moves a file from a space project with different role to a space personal
2023-06-15 15:56:48 +02:00
Given the administrator has assigned the role " Space Admin " to user " Brian " using the Graph API
2023-10-30 17:57:42 +05:45
And user " Brian " has created a space " Project " with the default quota using the Graph API
2022-07-22 10:14:24 +05:45
And user " Brian " has uploaded a file inside space " Project " with content " Project content " to " project.txt "
2024-05-08 14:22:52 +05:45
And user " Brian " has sent the following space share invitation:
2024-05-08 09:45:36 +05:45
| space | Project |
| sharee | Alice |
| shareType | user |
| permissionsRole | <space-role> |
2022-07-22 10:14:24 +05:45
When user " Alice " moves file " project.txt " from space " Project " to " project.txt " inside space " Personal " using the WebDAV API
2024-01-04 18:00:04 +05:45
Then the HTTP status code should be " <http-status-code> "
2022-07-22 10:14:24 +05:45
And for user " Alice " the space " Project " should contain these entries:
2022-08-30 16:50:34 +05:45
| project.txt |
2022-07-22 10:14:24 +05:45
And for user " Alice " the space " Personal " should not contain these entries:
2022-08-30 16:50:34 +05:45
| project.txt |
2022-07-22 10:14:24 +05:45
Examples:
2024-05-08 09:45:36 +05:45
| space-role | http-status-code |
| Manager | 502 |
| Space Editor | 502 |
| Space Viewer | 403 |
2022-07-22 10:14:24 +05:45
2023-04-17 17:05:12 +05:45
Scenario Outline: user moves a file from space project with different role to space Shares with different role (permission)
2023-06-15 15:56:48 +02:00
Given the administrator has assigned the role " Space Admin " to user " Brian " using the Graph API
2023-10-30 17:57:42 +05:45
And user " Brian " has created a space " Project " with the default quota using the Graph API
2022-07-22 10:14:24 +05:45
And user " Brian " has created folder " /testshare "
And user " Brian " has uploaded a file inside space " Project " with content " Project content " to " project.txt "
2024-05-08 14:22:52 +05:45
And user " Brian " has sent the following space share invitation:
2024-05-08 09:45:36 +05:45
| space | Project |
| sharee | Alice |
| shareType | user |
| permissionsRole | <space-role> |
2024-05-08 14:22:52 +05:45
And user " Brian " has sent the following resource share invitation:
2024-05-08 09:45:36 +05:45
| resource | testshare |
| space | Personal |
| sharee | Alice |
| shareType | user |
| permissionsRole | <permissions-role> |
2024-07-25 18:09:28 +05:45
And user " Alice " has a share " testshare " synced
2022-10-20 20:49:57 +02:00
When user " Alice " moves file " project.txt " from space " Project " to " /testshare/project.txt " inside space " Shares " using the WebDAV API
2024-01-26 20:56:39 +05:45
Then the HTTP status code should be " 502 "
2022-07-22 10:14:24 +05:45
And for user " Alice " the space " Project " should contain these entries:
2022-08-30 16:50:34 +05:45
| project.txt |
2023-10-03 09:26:31 +05:45
But for user " Alice " folder " testshare " of the space " Shares " should not contain these entries:
| project.txt |
2022-07-22 10:14:24 +05:45
Examples:
2024-05-08 09:45:36 +05:45
| space-role | permissions-role |
| Manager | Editor |
| Space Editor | Editor |
| Space Viewer | Editor |
| Manager | Uploader |
| Space Editor | Uploader |
| Space Viewer | Uploader |
| Manager | Viewer |
| Space Editor | Viewer |
| Space Viewer | Viewer |
2022-07-22 10:14:24 +05:45
2024-01-04 18:00:04 +05:45
@issue-7618
2023-04-17 17:05:12 +05:45
Scenario Outline: user moves a file from space personal to space project with different role
2023-06-15 15:56:48 +02:00
Given the administrator has assigned the role " Space Admin " to user " Brian " using the Graph API
2023-10-30 17:57:42 +05:45
And user " Brian " has created a space " Project " with the default quota using the Graph API
2024-05-08 14:22:52 +05:45
And user " Brian " has sent the following space share invitation:
2024-05-08 09:45:36 +05:45
| space | Project |
| sharee | Alice |
| shareType | user |
| permissionsRole | <space-role> |
2022-07-22 10:14:24 +05:45
And user " Alice " has uploaded file with content " personal space content " to " /personal.txt "
When user " Alice " moves file " personal.txt " from space " Personal " to " personal.txt " inside space " Project " using the WebDAV API
2024-01-04 18:00:04 +05:45
Then the HTTP status code should be " <http-status-code> "
2022-07-22 10:14:24 +05:45
And for user " Alice " the space " Personal " should contain these entries:
2022-08-30 16:50:34 +05:45
| personal.txt |
2022-07-22 10:14:24 +05:45
And for user " Alice " the space " Project " should not contain these entries:
2022-08-30 16:50:34 +05:45
| personal.txt |
2022-07-22 10:14:24 +05:45
Examples:
2024-05-08 09:45:36 +05:45
| space-role | http-status-code |
| Manager | 502 |
| Space Editor | 502 |
| Space Viewer | 403 |
2022-07-22 10:14:24 +05:45
2023-04-17 17:05:12 +05:45
Scenario Outline: user moves a file from space personal to space Shares with different role (permission)
2022-07-22 10:14:24 +05:45
Given user " Brian " has created folder " /testshare "
2024-05-08 14:22:52 +05:45
And user " Brian " has sent the following resource share invitation:
2024-05-08 09:45:36 +05:45
| resource | testshare |
| space | Personal |
| sharee | Alice |
| shareType | user |
| permissionsRole | <permissions-role> |
2024-07-25 18:09:28 +05:45
And user " Alice " has a share " testshare " synced
2022-07-22 10:14:24 +05:45
And user " Alice " has uploaded file with content " personal content " to " personal.txt "
2022-10-20 20:49:57 +02:00
When user " Alice " moves file " personal.txt " from space " Personal " to " /testshare/personal.txt " inside space " Shares " using the WebDAV API
2024-01-26 20:56:39 +05:45
Then the HTTP status code should be " 502 "
2022-07-22 10:14:24 +05:45
And for user " Alice " the space " Personal " should contain these entries:
2022-08-30 16:50:34 +05:45
| personal.txt |
2023-10-03 09:26:31 +05:45
But for user " Alice " folder " testshare " of the space " Shares " should not contain these entries:
2024-08-05 10:05:52 +05:45
| personal.txt |
2022-07-22 10:14:24 +05:45
Examples:
2024-05-08 09:45:36 +05:45
| permissions-role |
| Editor |
| Uploader |
| Viewer |
2022-07-22 10:14:24 +05:45
2023-04-17 17:05:12 +05:45
Scenario Outline: user moves a file from space Shares with different role (permissions) to space personal
2022-07-22 10:14:24 +05:45
Given user " Brian " has created folder " /testshare "
And user " Brian " has uploaded file with content " testshare content " to " /testshare/testshare.txt "
2024-05-08 14:22:52 +05:45
And user " Brian " has sent the following resource share invitation:
2024-05-08 09:45:36 +05:45
| resource | testshare |
| space | Personal |
| sharee | Alice |
| shareType | user |
| permissionsRole | <permissions-role> |
2024-07-25 18:09:28 +05:45
And user " Alice " has a share " testshare " synced
2022-10-20 20:49:57 +02:00
When user " Alice " moves file " /testshare/testshare.txt " from space " Shares " to " testshare.txt " inside space " Personal " using the WebDAV API
2024-01-26 20:56:39 +05:45
Then the HTTP status code should be " 502 "
2022-07-22 10:14:24 +05:45
And for user " Alice " the space " Personal " should not contain these entries:
| testshare.txt |
2022-10-20 20:49:57 +02:00
And for user " Alice " folder " testshare " of the space " Shares " should contain these entries:
2022-08-02 17:25:39 +05:45
| testshare.txt |
2022-07-22 10:14:24 +05:45
Examples:
2024-05-08 09:45:36 +05:45
| permissions-role |
| Editor |
| Uploader |
| Viewer |
2022-07-22 10:14:24 +05:45
2023-04-17 17:05:12 +05:45
Scenario Outline: user moves a file from space Shares with different role (permissions) to space project with different role
2023-06-15 15:56:48 +02:00
Given the administrator has assigned the role " Space Admin " to user " Brian " using the Graph API
2023-10-30 17:57:42 +05:45
And user " Brian " has created a space " Project " with the default quota using the Graph API
2024-05-08 14:22:52 +05:45
And user " Brian " has sent the following space share invitation:
2024-05-08 09:45:36 +05:45
| space | Project |
| sharee | Alice |
| shareType | user |
| permissionsRole | <space-role> |
2022-07-22 10:14:24 +05:45
And user " Brian " has created folder " /testshare "
And user " Brian " has uploaded file with content " testshare content " to " /testshare/testshare.txt "
2024-05-08 14:22:52 +05:45
And user " Brian " has sent the following resource share invitation:
2024-05-08 09:45:36 +05:45
| resource | testshare |
| space | Personal |
| sharee | Alice |
| shareType | user |
| permissionsRole | <permissions-role> |
2024-07-25 18:09:28 +05:45
And user " Alice " has a share " testshare " synced
2022-10-20 20:49:57 +02:00
When user " Alice " moves file " /testshare/testshare.txt " from space " Shares " to " testshare.txt " inside space " Project " using the WebDAV API
2024-01-26 20:56:39 +05:45
Then the HTTP status code should be " 502 "
2022-07-22 10:14:24 +05:45
And for user " Alice " the space " Project " should not contain these entries:
| /testshare.txt |
2022-10-20 20:49:57 +02:00
And for user " Alice " folder " testshare " of the space " Shares " should contain these entries:
2022-08-02 17:25:39 +05:45
| testshare.txt |
2022-07-22 10:14:24 +05:45
Examples:
2024-05-08 09:45:36 +05:45
| space-role | permissions-role |
| Manager | Editor |
| Space Editor | Editor |
| Space Viewer | Editor |
| Manager | Uploader |
| Space Editor | Uploader |
| Space Viewer | Uploader |
| Manager | Viewer |
| Space Editor | Viewer |
| Space Viewer | Viewer |
2022-07-22 10:14:24 +05:45
2024-01-03 16:54:59 +05:45
Scenario Outline: user moves a file from space Shares to another space Shares with different role (permissions)
2022-07-22 10:14:24 +05:45
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 "
2024-05-08 14:22:52 +05:45
And user " Brian " has sent the following resource share invitation:
2024-05-08 09:45:36 +05:45
| resource | testshare1 |
| space | Personal |
| sharee | Alice |
| shareType | user |
| permissionsRole | <from-permissions-role> |
2024-07-25 18:09:28 +05:45
And user " Alice " has a share " testshare1 " synced
2024-05-08 14:22:52 +05:45
And user " Brian " has sent the following resource share invitation:
2024-05-08 09:45:36 +05:45
| resource | testshare2 |
| space | Personal |
| sharee | Alice |
| shareType | user |
| permissionsRole | <to-permissions-role> |
2024-07-25 18:09:28 +05:45
And user " Alice " has a share " testshare2 " synced
2022-10-20 20:49:57 +02:00
When user " Alice " moves file " /testshare1/testshare1.txt " from space " Shares " to " /testshare2/testshare1.txt " inside space " Shares " using the WebDAV API
2024-01-26 20:56:39 +05:45
Then the HTTP status code should be " 502 "
2023-11-09 15:26:16 +01:00
And for user " Alice " folder " testshare1 " of the space " Shares " should contain these entries:
2023-10-03 09:26:31 +05:45
| testshare1.txt |
2023-11-09 15:26:16 +01:00
But for user " Alice " folder " testshare2 " of the space " Shares " should not contain these entries:
2023-10-03 09:26:31 +05:45
| testshare1.txt |
2024-01-03 16:54:59 +05:45
Examples:
2024-05-08 09:45:36 +05:45
| from-permissions-role | to-permissions-role |
| Editor | Editor |
| Editor | Uploader |
| Editor | Viewer |
| Uploader | Editor |
| Uploader | Uploader |
| Uploader | Viewer |
| Viewer | Editor |
| Viewer | Uploader |
| Viewer | Viewer |
2022-08-30 16:50:34 +05:45
2024-01-03 16:54:59 +05:45
Scenario Outline: moving a file out of a shared folder as a sharer
2022-08-30 16:50:34 +05:45
Given user " Brian " has created folder " /testshare "
And user " Brian " has uploaded file with content " test data " to " /testshare/testfile.txt "
2024-05-08 14:22:52 +05:45
And user " Brian " has sent the following resource share invitation:
2024-05-08 09:45:36 +05:45
| resource | testshare |
| space | Personal |
| sharee | Alice |
| shareType | user |
| permissionsRole | <permissions-role> |
2024-07-25 18:09:28 +05:45
And user " Alice " has a share " testshare " synced
2022-08-30 16:50:34 +05:45
When user " Brian " moves file " /testshare/testfile.txt " from space " Personal " to " /testfile.txt " inside space " Personal " using the WebDAV API
Then the HTTP status code should be " 201 "
And the content of file " /testfile.txt " for user " Brian " should be " test data "
2022-10-20 20:49:57 +02:00
And for user " Alice " folder " testshare " of the space " Shares " should not contain these entries:
2022-08-30 16:50:34 +05:45
| testfile.txt |
2023-10-03 09:26:31 +05:45
And for user " Brian " folder " testshare " of the space " Personal " should not contain these entries:
| testfile.txt |
2024-01-03 16:54:59 +05:45
Examples:
2024-05-08 09:45:36 +05:45
| permissions-role |
| Editor |
| Uploader |
| Viewer |
2022-08-30 16:50:34 +05:45
2024-01-03 16:54:59 +05:45
Scenario Outline: moving a folder out of a shared folder as a sharer
2022-08-30 16:50:34 +05:45
Given user " Brian " has created the following folders
| path |
| /testshare |
| /testshare/testsubfolder |
And user " Brian " has uploaded file with content " test data " to " /testshare/testsubfolder/testfile.txt "
2024-05-08 14:22:52 +05:45
And user " Brian " has sent the following resource share invitation:
2024-05-08 09:45:36 +05:45
| resource | testshare |
| space | Personal |
| sharee | Alice |
| shareType | user |
| permissionsRole | <permissions-role> |
2024-07-25 18:09:28 +05:45
And user " Alice " has a share " testshare " synced
2022-08-30 16:50:34 +05:45
When user " Brian " moves folder " /testshare/testsubfolder " from space " Personal " to " /testsubfolder " inside space " Personal " using the WebDAV API
Then the HTTP status code should be " 201 "
And the content of file " /testsubfolder/testfile.txt " for user " Brian " should be " test data "
2022-10-20 20:49:57 +02:00
And for user " Alice " folder " testshare " of the space " Shares " should not contain these entries:
2022-08-30 16:50:34 +05:45
| testsubfolder |
2023-10-03 09:26:31 +05:45
And for user " Brian " folder " testshare " of the space " Personal " should not contain these entries:
| testsubfolder |
2024-01-03 16:54:59 +05:45
Examples:
2024-05-08 09:45:36 +05:45
| permissions-role |
| Editor |
| Uploader |
| Viewer |
2022-10-13 20:23:08 +02:00
2023-06-05 15:31:14 +02:00
2024-05-08 09:45:36 +05:45
Scenario Outline: sharee moves a file within a Shares space (Editor/Uploader permissions)
2024-01-03 16:54:59 +05:45
Given user " Brian " has created folder " testshare "
2024-06-10 11:49:27 +05:45
And user " Brian " has created folder " testshare/child "
2024-01-03 16:54:59 +05:45
And user " Brian " has uploaded file with content " test file content " to " /testshare/testfile.txt "
2024-05-08 14:22:52 +05:45
And user " Brian " has sent the following resource share invitation:
2024-05-08 09:45:36 +05:45
| resource | testshare |
| space | Personal |
| sharee | Alice |
| shareType | user |
| permissionsRole | <permissions-role> |
2024-07-25 18:09:28 +05:45
And user " Alice " has a share " testshare " synced
2024-01-03 16:54:59 +05:45
When user " Alice " moves file " testshare/testfile.txt " from space " Shares " to " testshare/child/testfile.txt " inside space " Shares " using the WebDAV API
Then the HTTP status code should be " 201 "
And for user " Alice " the content of the file " testshare/child/testfile.txt " of the space " Shares " should be " test file content "
And for user " Alice " folder " testshare " of the space " Shares " should not contain these entries:
| testfile.txt |
Examples:
2024-05-08 09:45:36 +05:45
| permissions-role |
| Editor |
| Uploader |
2024-01-03 16:54:59 +05:45
2024-05-08 09:45:36 +05:45
Scenario: sharee moves a file within a Shares space (viewer permissions)
2024-01-03 16:54:59 +05:45
Given user " Brian " has created folder " testshare "
2024-06-10 11:49:27 +05:45
And user " Brian " has created folder " testshare/child "
2024-01-03 16:54:59 +05:45
And user " Brian " has uploaded file with content " test file content " to " /testshare/testfile.txt "
2024-05-08 14:22:52 +05:45
And user " Brian " has sent the following resource share invitation:
2024-05-08 09:45:36 +05:45
| resource | testshare |
| space | Personal |
| sharee | Alice |
| shareType | user |
| permissionsRole | Viewer |
2024-07-25 18:09:28 +05:45
And user " Alice " has a share " testshare " synced
2024-01-03 16:54:59 +05:45
When user " Alice " moves file " testshare/testfile.txt " from space " Shares " to " testshare/child/testfile.txt " inside space " Shares " using the WebDAV API
Then the HTTP status code should be " 403 "
And for user " Alice " folder " testshare/child " of the space " Shares " should not contain these entries:
| testfile.txt |
But for user " Alice " folder " testshare " of the space " Shares " should contain these entries:
| testfile.txt |
2026-08-14 10:50:35 +02:00
Scenario Outline: sharee moves a file into same shared folder with same name
2024-01-09 16:33:04 +05:45
Given user " Brian " has created folder " testshare "
And user " Brian " has uploaded file with content " test file content " to " testshare/testfile.txt "
2024-05-08 14:22:52 +05:45
And user " Brian " has sent the following resource share invitation:
2024-05-08 09:45:36 +05:45
| resource | testshare |
| space | Personal |
| sharee | Alice |
| shareType | user |
| permissionsRole | <permissions-role> |
2024-07-25 18:09:28 +05:45
And user " Alice " has a share " testshare " synced
2024-01-09 16:33:04 +05:45
When user " Alice " moves file " testshare/testfile.txt " from space " Shares " to " testshare/testfile.txt " inside space " Shares " using the WebDAV API
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 " Brian " file " testfile.txt " should not exist in the trashbin of the space " Personal "
And for user " Alice " the content of the file " testshare/testfile.txt " of the space " Shares " should be " test file content "
And for user " Brian " the content of the file " testshare/testfile.txt " of the space " Personal " should be " test file content "
Examples:
2026-08-14 10:50:35 +02:00
| permissions-role | http-status-code |
| Editor | 204 |
| Uploader | 403 |
| Viewer | 403 |
2024-01-09 16:33:04 +05:45
2024-01-03 16:54:59 +05:45
Scenario: overwrite a file while moving in project space
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 created a folder " folder " in space " Project "
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 "
2024-05-08 14:22:52 +05:45
And user " Brian " has sent the following space share invitation:
2024-05-08 09:45:36 +05:45
| space | Project |
| sharee | Alice |
| shareType | user |
| permissionsRole | Space Editor |
2024-01-03 16:54:59 +05:45
When user " Alice " overwrites file " testfile.txt " from space " Project " to " folder/testfile.txt " inside space " Project " while moving using the WebDAV API
2022-10-13 20:23:08 +02:00
Then the HTTP status code should be " 204 "
2024-01-03 16:54:59 +05:45
And for user " Alice " the content of the file " folder/testfile.txt " of the space " Project " should be " root file v2 "
And for user " Alice " the space " Project " should not contain these entries:
| testfile.txt |
When user " Brian " downloads version of the file " folder/testfile.txt " with the index " 1 " of the space " Project " using the WebDAV API
2022-10-13 20:23:08 +02:00
Then the HTTP status code should be " 200 "
2024-03-21 09:14:50 +05:45
And the downloaded content should be " root file v1 "