Skip to content

Commit

Permalink
Merge pull request #40294 from owncloud/removeSpacesForMoveSharesRelated
Browse files Browse the repository at this point in the history
[tests-only][full-ci] Remove space related tests with /shares for move suite
  • Loading branch information
phil-davis authored Aug 22, 2022
2 parents 809a465 + 247f5fa commit 639bc55
Showing 1 changed file with 55 additions and 53 deletions.
108 changes: 55 additions & 53 deletions tests/acceptance/features/apiWebdavMove2/moveShareOnOcis.feature
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,8 @@ Feature: move (rename) file
| new | Alice | /Shares/testshare |
| new | Brian | /testshare |

@personalSpace
Examples:
| dav_version | mover | destination_folder |
| spaces | Alice | /Shares/testshare |
| spaces | Brian | /testshare |


Scenario Outline: Moving a file out of a shared folder as the sharee and as the sharer
Scenario Outline: Moving a file out of a shared folder as the sharer
Given using <dav_version> DAV path
And user "Brian" has been created with default attributes and without skeleton files
And user "Brian" has created folder "/testshare"
Expand All @@ -50,23 +44,36 @@ Feature: move (rename) file
| permissions | change |
| shareWith | Alice |
And user "Alice" has accepted share "/testshare" offered by user "Brian"
When user "<mover>" moves file "<source_folder>/testfile.txt" to "/testfile.txt" using the WebDAV API
When user "Brian" moves file "/testshare/testfile.txt" to "/testfile.txt" using the WebDAV API
Then the HTTP status code should be "201"
And the content of file "/testfile.txt" for user "<mover>" should be "test data"
And as "Alice" file "/Shares/testfile.txt" should not exist
And the content of file "/testfile.txt" for user "Brian" should be "test data"
And as "Alice" file "/Shares/testshare/testfile.txt" should not exist
And as "Brian" file "/testshare/testfile.txt" should not exist
Examples:
| dav_version | mover | source_folder |
| old | Alice | /Shares/testshare |
| old | Brian | /testshare |
| new | Alice | /Shares/testshare |
| new | Brian | /testshare |
| dav_version |
| old |
| new |


@personalSpace
Scenario Outline: Can not move a file out of a shared folder as the sharee
Given using <dav_version> DAV path
And user "Brian" has been created with default attributes and without skeleton files
And user "Brian" has created folder "/testshare"
And user "Brian" has uploaded file with content "test data" to "/testshare/testfile.txt"
And user "Brian" has created a share with settings
| path | testshare |
| shareType | user |
| permissions | change |
| shareWith | Alice |
And user "Alice" has accepted share "/testshare" offered by user "Brian"
When user "Alice" moves file "/Shares/testshare/testfile.txt" to "/testfile.txt" using the WebDAV API
Then the HTTP status code should be "502"
And as "Alice" file "/Shares/testshare/testfile.txt" should exist
And as "Brian" file "/testshare/testfile.txt" should exist
Examples:
| dav_version | mover | source_folder |
| spaces | Alice | /Shares/testshare |
| spaces | Brian | /testshare |
| dav_version |
| old |
| new |


Scenario Outline: Moving a folder into a shared folder as the sharee and as the sharer
Expand All @@ -93,14 +100,8 @@ Feature: move (rename) file
| new | Alice | /Shares/testshare |
| new | Brian | /testshare |

@personalSpace
Examples:
| dav_version | mover | destination_folder |
| spaces | Alice | /Shares/testshare |
| spaces | Brian | /testshare |


Scenario Outline: Moving a folder out of a shared folder as the sharee and as the sharer
Scenario Outline: Moving a folder out of a shared folder as the sharer
Given using <dav_version> DAV path
And user "Brian" has been created with default attributes and without skeleton files
And user "Brian" has created the following folders
Expand All @@ -114,23 +115,39 @@ Feature: move (rename) file
| permissions | change |
| shareWith | Alice |
And user "Alice" has accepted share "/testshare" offered by user "Brian"
When user "<mover>" moves folder "<source_folder>/testsubfolder" to "/testsubfolder" using the WebDAV API
When user "Brian" moves folder "/testshare/testsubfolder" to "/testsubfolder" using the WebDAV API
Then the HTTP status code should be "201"
And the content of file "/testsubfolder/testfile.txt" for user "<mover>" should be "test data"
And as "Alice" folder "<source_folder>/testsubfolder" should not exist
And the content of file "/testsubfolder/testfile.txt" for user "Brian" should be "test data"
And as "Alice" folder "/testshare/testsubfolder" should not exist
And as "Brian" folder "/testshare/testsubfolder" should not exist
Examples:
| dav_version | mover | source_folder |
| old | Alice | /Shares/testshare |
| old | Brian | /testshare |
| new | Alice | /Shares/testshare |
| new | Brian | /testshare |
| dav_version |
| old |
| new |

@personalSpace

Scenario Outline: Moving a folder out of a shared folder as the sharee
Given using <dav_version> DAV path
And user "Brian" has been created with default attributes and without skeleton files
And 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"
And user "Brian" has created a share with settings
| path | testshare |
| shareType | user |
| permissions | change |
| shareWith | Alice |
And user "Alice" has accepted share "/testshare" offered by user "Brian"
When user "Alice" moves folder "/Shares/testshare/testsubfolder" to "/testsubfolder" using the WebDAV API
Then the HTTP status code should be "502"
And as "Alice" folder "/Shares/testshare/testsubfolder" should exist
And as "Brian" folder "/testshare/testsubfolder" should exist
Examples:
| dav_version | mover | source_folder |
| spaces | Alice | /Shares/testshare |
| spaces | Brian | /testshare |
| dav_version |
| old |
| new |


Scenario Outline: Moving a file to a shared folder with no permissions
Expand All @@ -152,11 +169,6 @@ Feature: move (rename) file
| old |
| new |

@personalSpace
Examples:
| dav_version |
| spaces |


Scenario Outline: Moving a file to overwrite a file in a shared folder with no permissions
Given using <dav_version> DAV path
Expand All @@ -179,11 +191,6 @@ Feature: move (rename) file
| old |
| new |

@personalSpace
Examples:
| dav_version |
| spaces |


Scenario Outline: Checking file id after a move between received shares
Given using <dav_version> DAV path
Expand Down Expand Up @@ -213,8 +220,3 @@ Feature: move (rename) file
| dav_version |
| old |
| new |

@skipOnOcV10 @personalSpace
Examples:
| dav_version |
| spaces |

0 comments on commit 639bc55

Please sign in to comment.