Skip to content

Commit

Permalink
Merge pull request #30601 from owncloud/transfer-ownership-folder
Browse files Browse the repository at this point in the history
Add scenarios for transferring folders without files
  • Loading branch information
individual-it authored Feb 26, 2018
2 parents 3819265 + dd747a2 commit afb23e0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/integration/features/bootstrap/WebDav.php
Original file line number Diff line number Diff line change
Expand Up @@ -1281,6 +1281,7 @@ public function checkFavoritedElementsPaginated($user, $folder, $expectedElement

/**
* @When /^user "([^"]*)" deletes everything from folder "([^"]*)" using the API$/
* @Given /^user "([^"]*)" has deleted everything from folder "([^"]*)"$/
* @param string $user
* @param string $folder
*/
Expand Down
25 changes: 24 additions & 1 deletion tests/integration/features/transfer-ownership.feature
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ Feature: transfer-ownership
And the command should have failed with exit code 1

@no_default_encryption
Scenario: transferring ownership of a folder
Scenario: transferring ownership of only a single folder containing a file
Given user "user0" has been created
And user "user1" has been created
And user "user0" has created a folder "/test"
Expand All @@ -141,6 +141,29 @@ Feature: transfer-ownership
And using received transfer folder of "user1" as dav path
And the downloaded content when downloading file "/test/somefile.txt" for user "user1" with range "bytes=0-6" should be "This is"

@no_default_encryption
Scenario: transferring ownership of only a single folder containing an empty folder
Given user "user0" has been created
And user "user1" has been created
And user "user0" has created a folder "/test"
And user "user0" has created a folder "/test/subfolder"
When the administrator transfers ownership of path "test" from "user0" to "user1" using the occ command
Then the command should have been successful
And using received transfer folder of "user1" as dav path
And as "user1" the folder "/test" should exist
And as "user1" the folder "/test/subfolder" should exist

@no_default_encryption
Scenario: transferring ownership of an account containing only an empty folder
Given user "user0" has been created
And user "user1" has been created
And user "user0" has deleted everything from folder "/"
And user "user0" has created a folder "/test"
When the administrator transfers ownership from "user0" to "user1" using the occ command
Then the command should have been successful
And using received transfer folder of "user1" as dav path
And as "user1" the folder "/test" should exist

@no_default_encryption
Scenario: transferring ownership of file shares
Given user "user0" has been created
Expand Down

0 comments on commit afb23e0

Please sign in to comment.