Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scenarios for transferring folders without files #30601

Merged
merged 1 commit into from
Feb 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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