Skip to content

Commit

Permalink
Update expected to failure for copy overwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
SagarGi committed Aug 18, 2022
1 parent 1fcfcfb commit b668aca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ The expected failures in this file are from features in the owncloud/ocis repo.
### [Changing personal drive quota on another user as admin is not possible](https://github.com/owncloud/ocis/issues/4325)
- [apiSpaces/changeSpaces.feature:221](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiSpaces/changeSpaces.feature#L221)

### [copy to overwrite (file and folder) from Personal to Shares Jail behaves differently](https://github.com/owncloud/ocis/issues/4393)
- [apiSpaces/copySpaces.feature:489](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiSpaces/copySpaces.feature#L489)
- [apiSpaces/copySpaces.feature:506](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiSpaces/copySpaces.feature#L506)

18 changes: 5 additions & 13 deletions tests/acceptance/features/apiSpaces/copySpaces.feature
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ Feature: copy file
| 31 |
| 17 |

@files_sharing-app-required @issue-ocis-reva-11

Scenario: Copying a file to a folder with no permissions
Given using spaces DAV path
And user "Brian" has created folder "/testshare"
Expand Down Expand Up @@ -494,16 +494,14 @@ Feature: copy file
And user "Brian" has shared folder "BRIAN-Folder" with user "Alice"
And user "Alice" has accepted share "/BRIAN-Folder" offered by user "Brian"
When user "Alice" copies file "/textfile1.txt" from space "Personal" to "/BRIAN-Folder" inside space "Shares Jail" using the WebDAV API
#response code is 500
Then the HTTP status code should be "204"
And the content of file "/BRIAN-Folder" inside space "Shares Jail" for user "Alice" should be "ownCloud test text file 1"
And for user "Alice" folder "BRIAN-FOLDER" of the space "Shares Jail" should not contain these files:
And for user "Alice" folder "BRIAN-Folder" of the space "Shares Jail" should not contain these files:
| /sample-folder |
And as "Alice" file "/textfile1.txt" should exist
And user "Alice" should not have any received shares


@issue-ocis-1239
Scenario: copy a folder over the top of an existing file received as a user share
Given using spaces DAV path
And user "Alice" has created folder "/FOLDER"
Expand All @@ -512,15 +510,13 @@ Feature: copy file
And user "Brian" has shared file "/sharedfile1.txt" with user "Alice"
And user "Alice" has accepted share "/sharedfile1.txt" offered by user "Brian"
When user "Alice" copies folder "/FOLDER" from space "Personal" to "/sharedfile1.txt" inside space "Shares Jail" using the WebDAV API
#response code is 403
Then the HTTP status code should be "204"
And as "Alice" folder "/FOLDER/sample-folder" should exist
And for user "Alice" folder "sharedfile1.txt" of the space "Shares Jail" should contain these files:
| /sample-folder |
And user "Alice" should not have any received shares


@issue-ocis-1239
Scenario: copy a folder into another folder at different level which is received as a user share
Given using spaces DAV path
And user "Brian" has created folder "BRIAN-FOLDER"
Expand All @@ -539,7 +535,7 @@ Feature: copy file
And the response when user "Alice" gets the info of the last share should include
| file_target | /Shares/BRIAN-FOLDER |

@issue-ocis-1239

Scenario: copy a file into a folder at different level received as a user share
Given using spaces DAV path
And user "Brian" has created folder "BRIAN-FOLDER"
Expand All @@ -562,7 +558,6 @@ Feature: copy file
| file_target | /Shares/BRIAN-FOLDER |


@issue-ocis-1239
Scenario: copy a file into a file at different level received as a user share
Given using spaces DAV path
And user "Brian" has created folder "BRIAN-FOLDER"
Expand All @@ -584,7 +579,6 @@ Feature: copy file
| file_target | /Shares/BRIAN-FOLDER |


@issue-ocis-1239
Scenario: copy a folder into a file at different level received as a user share
Given using spaces DAV path
And user "Alice" has created folder "FOLDER"
Expand All @@ -608,7 +602,6 @@ Feature: copy file
| file_target | /Shares/BRIAN-FOLDER |


@issue-ocis-1239
Scenario: copy a folder into another folder at different level which is received as a group share
Given using spaces DAV path
And group "grp1" has been created
Expand All @@ -631,7 +624,6 @@ Feature: copy file
| file_target | /Shares/BRIAN-FOLDER |


@issue-ocis-1239
Scenario: copy a file into a folder at different level received as a group share
Given using spaces DAV path
And group "grp1" has been created
Expand All @@ -656,7 +648,7 @@ Feature: copy file
And the response when user "Alice" gets the info of the last share should include
| file_target | /Shares/BRIAN-FOLDER |

@issue-ocis-1239

Scenario: copy a file into a file at different level received as a group share
Given using spaces DAV path
And group "grp1" has been created
Expand All @@ -681,7 +673,7 @@ Feature: copy file
And the response when user "Alice" gets the info of the last share should include
| file_target | /Shares/BRIAN-FOLDER |

@issue-ocis-1239
Scenario: copy a folder into a file at different level received as a group share
Given using spaces DAV path
And group "grp1" has been created
Expand Down

0 comments on commit b668aca

Please sign in to comment.