123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597 |
- # SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
- # SPDX-FileCopyrightText: 2016 ownCloud, Inc.
- # SPDX-License-Identifier: AGPL-3.0-only
- Feature: transfer-ownership
- Scenario: transferring ownership of a file
- Given user "user0" exists
- And user "user1" exists
- And User "user0" uploads file "data/textfile.txt" to "/somefile.txt"
- When transferring ownership from "user0" to "user1"
- And the command was successful
- And As an "user1"
- And using received transfer folder of "user1" as dav path
- Then Downloaded content when downloading file "/somefile.txt" with range "bytes=0-6" should be "This is"
- And using old dav path
- And as "user0" the file "/somefile.txt" does not exist
- And using received transfer folder of "user1" as dav path
- And as "user1" the file "/somefile.txt" exists
- Scenario: transferring ownership of a folder
- Given user "user0" exists
- And user "user1" exists
- And User "user0" created a folder "/test"
- And User "user0" uploads file "data/textfile.txt" to "/test/somefile.txt"
- When transferring ownership from "user0" to "user1"
- And the command was successful
- And As an "user1"
- And using received transfer folder of "user1" as dav path
- Then Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
- And using old dav path
- And as "user0" the folder "/test" does not exist
- And using received transfer folder of "user1" as dav path
- And as "user1" the folder "/test" exists
- Scenario: transferring ownership from user with risky display name
- Given user "user0" with displayname "user0 \"risky\"? ヂspḷay 'na|\/|e':.#" exists
- And user "user1" exists
- And User "user0" created a folder "/test"
- And User "user0" uploads file "data/textfile.txt" to "/test/somefile.txt"
- When transferring ownership from "user0" to "user1"
- And the command was successful
- And As an "user1"
- And using received transfer folder of "user1" as dav path
- Then Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
- And transfer folder name contains "Transferred from user0 -risky- ヂspḷay -na|-|e- on"
- And using old dav path
- And as "user0" the folder "/test" does not exist
- And using received transfer folder of "user1" as dav path
- And as "user1" the folder "/test" exists
- Scenario: transferring ownership of file shares
- Given user "user0" exists
- And user "user1" exists
- And user "user2" exists
- And User "user0" uploads file "data/textfile.txt" to "/somefile.txt"
- And file "/somefile.txt" of user "user0" is shared with user "user2" with permissions 19
- And user "user2" accepts last share
- When transferring ownership from "user0" to "user1"
- And the command was successful
- And As an "user2"
- Then Downloaded content when downloading file "/somefile.txt" with range "bytes=0-6" should be "This is"
- And using old dav path
- And as "user0" the file "/somefile.txt" does not exist
- And using received transfer folder of "user1" as dav path
- And as "user1" the file "/somefile.txt" exists
- And As an "user1"
- And Getting info of last share
- And the OCS status code should be "100"
- And Share fields of last share match with
- | uid_owner | user1 |
- | uid_file_owner | user1 |
- | share_with | user2 |
- Scenario: transferring ownership of folder shared with third user
- Given user "user0" exists
- And user "user1" exists
- And user "user2" exists
- And User "user0" created a folder "/test"
- And User "user0" uploads file "data/textfile.txt" to "/test/somefile.txt"
- And folder "/test" of user "user0" is shared with user "user2" with permissions 31
- And user "user2" accepts last share
- When transferring ownership from "user0" to "user1"
- And the command was successful
- And As an "user2"
- Then Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
- And using old dav path
- And as "user0" the folder "/test" does not exist
- And using received transfer folder of "user1" as dav path
- And as "user1" the folder "/test" exists
- And As an "user1"
- And Getting info of last share
- And the OCS status code should be "100"
- And Share fields of last share match with
- | uid_owner | user1 |
- | uid_file_owner | user1 |
- | share_with | user2 |
- Scenario: transferring ownership of folder shared with transfer recipient
- Given user "user0" exists
- And user "user1" exists
- And User "user0" created a folder "/test"
- And User "user0" uploads file "data/textfile.txt" to "/test/somefile.txt"
- And folder "/test" of user "user0" is shared with user "user1" with permissions 31
- And user "user1" accepts last share
- When transferring ownership from "user0" to "user1"
- And the command was successful
- And As an "user1"
- Then as "user1" the folder "/test" does not exist
- And using received transfer folder of "user1" as dav path
- And Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
- And using old dav path
- And as "user0" the folder "/test" does not exist
- And using received transfer folder of "user1" as dav path
- And as "user1" the folder "/test" exists
- And Getting info of last share
- And the OCS status code should be "404"
- Scenario: transferring ownership of folder doubly shared with third user
- Given group "group1" exists
- And user "user0" exists
- And user "user1" exists
- And user "user2" exists
- And user "user2" belongs to group "group1"
- And User "user0" created a folder "/test"
- And User "user0" uploads file "data/textfile.txt" to "/test/somefile.txt"
- And folder "/test" of user "user0" is shared with group "group1" with permissions 31
- And user "user2" accepts last share
- And folder "/test" of user "user0" is shared with user "user2" with permissions 31
- And user "user2" accepts last share
- When transferring ownership from "user0" to "user1"
- And the command was successful
- And As an "user2"
- Then Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
- And using old dav path
- And as "user0" the folder "/test" does not exist
- And using received transfer folder of "user1" as dav path
- And as "user1" the folder "/test" exists
- And As an "user1"
- And Getting info of last share
- And the OCS status code should be "100"
- And Share fields of last share match with
- | uid_owner | user1 |
- | uid_file_owner | user1 |
- | share_with | user2 |
- Scenario: transferring ownership of file shares to user with the same id as the group
- Given user "user0" exists
- And user "test" exists
- And user "user2" exists
- And group "test" exists
- And user "user2" belongs to group "test"
- And User "user0" uploads file "data/textfile.txt" to "/somefile.txt"
- And file "/somefile.txt" of user "user0" is shared with group "test"
- And user "user2" accepts last share
- When transferring ownership from "user0" to "test"
- And the command was successful
- And As an "user2"
- Then Downloaded content when downloading file "/somefile.txt" with range "bytes=0-6" should be "This is"
- And using old dav path
- And as "user0" the file "/somefile.txt" does not exist
- And using received transfer folder of "user1" as dav path
- And as "test" the file "/somefile.txt" exists
- And As an "test"
- And Getting info of last share
- And the OCS status code should be "100"
- And Share fields of last share match with
- | uid_owner | test |
- | uid_file_owner | test |
- | share_with | test |
- Scenario: transferring ownership of folder reshared with another user
- Given user "user0" exists
- And user "user1" exists
- And user "user2" exists
- And user "user3" exists
- And User "user3" created a folder "/test"
- And User "user3" uploads file "data/textfile.txt" to "/test/somefile.txt"
- And folder "/test" of user "user3" is shared with user "user0" with permissions 31
- And user "user0" accepts last share
- And folder "/test" of user "user0" is shared with user "user2" with permissions 31
- And user "user2" accepts last share
- When transferring ownership from "user0" to "user1"
- And the command was successful
- And As an "user2"
- Then Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
- And using old dav path
- And as "user0" the folder "/test" exists
- And using received transfer folder of "user1" as dav path
- And as "user1" the folder "/test" does not exist
- And As an "user0"
- And Getting info of last share
- And the OCS status code should be "100"
- And Share fields of last share match with
- | uid_owner | user0 |
- | uid_file_owner | user3 |
- | share_with | user2 |
- Scenario: transferring ownership of folder reshared with group to a user in the group
- Given user "user0" exists
- And user "user1" exists
- And user "user2" exists
- And user "user3" exists
- And group "group1" exists
- And user "user1" belongs to group "group1"
- And User "user3" created a folder "/test"
- And User "user3" uploads file "data/textfile.txt" to "/test/somefile.txt"
- And folder "/test" of user "user3" is shared with user "user0" with permissions 31
- And user "user0" accepts last share
- And folder "/test" of user "user0" is shared with group "group1" with permissions 31
- And user "user1" accepts last share
- When transferring ownership from "user0" to "user1"
- And the command was successful
- And As an "user1"
- Then Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
- And using old dav path
- And as "user0" the folder "/test" exists
- And using received transfer folder of "user1" as dav path
- And as "user1" the folder "/test" does not exist
- And As an "user1"
- And Getting info of last share
- And the OCS status code should be "100"
- And Share fields of last share match with
- | uid_owner | user1 |
- | uid_file_owner | user3 |
- | share_with | group1 |
- Scenario: transferring ownership of folder reshared with group to a user not in the group
- Given user "user0" exists
- And user "user1" exists
- And user "user2" exists
- And user "user3" exists
- And group "group1" exists
- And user "user2" belongs to group "group1"
- And User "user3" created a folder "/test"
- And User "user3" uploads file "data/textfile.txt" to "/test/somefile.txt"
- And folder "/test" of user "user3" is shared with user "user0" with permissions 31
- And user "user0" accepts last share
- And folder "/test" of user "user0" is shared with group "group1" with permissions 31
- And user "user2" accepts last share
- When transferring ownership from "user0" to "user1"
- And the command was successful
- And As an "user2"
- Then Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
- And using old dav path
- And as "user0" the folder "/test" exists
- And using received transfer folder of "user1" as dav path
- And as "user1" the folder "/test" does not exist
- And As an "user0"
- And Getting info of last share
- And the OCS status code should be "100"
- And Share fields of last share match with
- | uid_owner | user0 |
- | uid_file_owner | user3 |
- | share_with | group1 |
- Scenario: transferring ownership does not transfer received shares
- Given user "user0" exists
- And user "user1" exists
- And user "user2" exists
- And User "user2" created a folder "/test"
- And folder "/test" of user "user2" is shared with user "user0" with permissions 31
- And user "user0" accepts last share
- When transferring ownership from "user0" to "user1"
- And the command was successful
- And As an "user1"
- And using received transfer folder of "user1" as dav path
- Then as "user1" the folder "/test" does not exist
- And using old dav path
- And as "user0" the folder "/test" exists
- And As an "user2"
- And Getting info of last share
- And the OCS status code should be "100"
- And Share fields of last share match with
- | uid_owner | user2 |
- | uid_file_owner | user2 |
- | share_with | user0 |
- @local_storage
- Scenario: transferring ownership does not transfer external storage
- Given user "user0" exists
- And user "user1" exists
- When transferring ownership from "user0" to "user1"
- And the command was successful
- And As an "user1"
- And using received transfer folder of "user1" as dav path
- Then as "user1" the folder "/local_storage" does not exist
- Scenario: transferring ownership does not fail with shared trashed files
- Given user "user0" exists
- And user "user1" exists
- And user "user2" exists
- And User "user0" created a folder "/sub"
- And User "user0" created a folder "/sub/test"
- And folder "/sub/test" of user "user0" is shared with user "user2" with permissions 31
- And user "user2" accepts last share
- And User "user0" deletes folder "/sub"
- When transferring ownership from "user0" to "user1"
- Then the command was successful
- Scenario: transferring ownership fails with invalid source user
- Given user "user0" exists
- When transferring ownership from "invalid_user" to "user0"
- Then the command output contains the text "Unknown source user"
- And the command failed with exit code 1
- Scenario: transferring ownership fails with invalid target user
- Given user "user0" exists
- When transferring ownership from "user0" to "invalid_user"
- Then the command output contains the text "Unknown destination user invalid_user"
- And the command failed with exit code 1
- Scenario: transferring ownership of a file
- Given user "user0" exists
- And user "user1" exists
- And User "user0" uploads file "data/textfile.txt" to "/somefile.txt"
- When transferring ownership of path "somefile.txt" from "user0" to "user1"
- And the command was successful
- And As an "user1"
- And using received transfer folder of "user1" as dav path
- Then Downloaded content when downloading file "/somefile.txt" with range "bytes=0-6" should be "This is"
- And using old dav path
- And as "user0" the file "/somefile.txt" does not exist
- And using received transfer folder of "user1" as dav path
- And as "user1" the file "/somefile.txt" exists
- Scenario: transferring ownership of a folder
- Given user "user0" exists
- And user "user1" exists
- And User "user0" created a folder "/test"
- And User "user0" uploads file "data/textfile.txt" to "/test/somefile.txt"
- When transferring ownership of path "test" from "user0" to "user1"
- And the command was successful
- And As an "user1"
- And using received transfer folder of "user1" as dav path
- Then Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
- And using old dav path
- And as "user0" the folder "/test" does not exist
- And using received transfer folder of "user1" as dav path
- And as "user1" the folder "/test" exists
- Scenario: transferring ownership from user with risky display name
- Given user "user0" with displayname "user0 \"risky\"? ヂspḷay 'na|\/|e':.#" exists
- And user "user1" exists
- And User "user0" created a folder "/test"
- And User "user0" uploads file "data/textfile.txt" to "/test/somefile.txt"
- When transferring ownership of path "test" from "user0" to "user1"
- And the command was successful
- And As an "user1"
- And using received transfer folder of "user1" as dav path
- Then Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
- And transfer folder name contains "Transferred from user0 -risky- ヂspḷay -na|-|e- on"
- And using old dav path
- And as "user0" the folder "/test" does not exist
- And using received transfer folder of "user1" as dav path
- And as "user1" the folder "/test" exists
- Scenario: transferring ownership of path does not affect other files
- Given user "user0" exists
- And user "user1" exists
- And User "user0" created a folder "/test"
- And User "user0" uploads file "data/textfile.txt" to "/test/somefile.txt"
- And User "user0" created a folder "/test2"
- And User "user0" uploads file "data/textfile.txt" to "/test2/somefile.txt"
- When transferring ownership of path "test" from "user0" to "user1"
- And the command was successful
- And As an "user1"
- And using received transfer folder of "user1" as dav path
- Then Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
- And using old dav path
- And as "user0" the folder "/test" does not exist
- And as "user0" the folder "/test2" exists
- And as "user0" the file "/test2/somefile.txt" exists
- And using received transfer folder of "user1" as dav path
- And as "user1" the folder "/test" exists
- And as "user1" the folder "/test2" does not exist
- Scenario: transferring ownership of path does not affect other shares
- Given user "user0" exists
- And user "user1" exists
- And User "user0" created a folder "/test"
- And User "user0" uploads file "data/textfile.txt" to "/test/somefile.txt"
- And User "user0" created a folder "/test2"
- And User "user0" uploads file "data/textfile.txt" to "/test2/sharedfile.txt"
- And file "/test2/sharedfile.txt" of user "user0" is shared with user "user1" with permissions 19
- And user "user1" accepts last share
- When transferring ownership of path "test" from "user0" to "user1"
- And the command was successful
- And As an "user1"
- And using received transfer folder of "user1" as dav path
- Then Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
- And using old dav path
- And as "user0" the folder "/test" does not exist
- And as "user0" the folder "/test2" exists
- And as "user0" the file "/test2/sharedfile.txt" exists
- And using received transfer folder of "user1" as dav path
- And as "user1" the folder "/test" exists
- And as "user1" the folder "/test2" does not exist
- And using old dav path
- And as "user1" the file "/sharedfile.txt" exists
- And As an "user1"
- And Getting info of last share
- And the OCS status code should be "100"
- And Share fields of last share match with
- | uid_owner | user0 |
- | uid_file_owner | user0 |
- | share_with | user1 |
- Scenario: transferring ownership of file shares
- Given user "user0" exists
- And user "user1" exists
- And user "user2" exists
- And User "user0" created a folder "/test"
- And User "user0" uploads file "data/textfile.txt" to "/test/somefile.txt"
- And file "/test/somefile.txt" of user "user0" is shared with user "user2" with permissions 19
- And user "user2" accepts last share
- When transferring ownership of path "test" from "user0" to "user1"
- And the command was successful
- And As an "user2"
- Then Downloaded content when downloading file "/somefile.txt" with range "bytes=0-6" should be "This is"
- And using old dav path
- And as "user0" the folder "/test" does not exist
- And using received transfer folder of "user1" as dav path
- And as "user1" the folder "/test" exists
- And As an "user1"
- And Getting info of last share
- And the OCS status code should be "100"
- And Share fields of last share match with
- | uid_owner | user1 |
- | uid_file_owner | user1 |
- | share_with | user2 |
- Scenario: transferring ownership of folder shared with third user
- Given user "user0" exists
- And user "user1" exists
- And user "user2" exists
- And User "user0" created a folder "/test"
- And User "user0" uploads file "data/textfile.txt" to "/test/somefile.txt"
- And folder "/test" of user "user0" is shared with user "user2" with permissions 31
- And user "user2" accepts last share
- When transferring ownership of path "test" from "user0" to "user1"
- And the command was successful
- And As an "user2"
- Then Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
- And using old dav path
- And as "user0" the folder "/test" does not exist
- And using received transfer folder of "user1" as dav path
- And as "user1" the folder "/test" exists
- And As an "user1"
- And Getting info of last share
- And the OCS status code should be "100"
- And Share fields of last share match with
- | uid_owner | user1 |
- | uid_file_owner | user1 |
- | share_with | user2 |
- Scenario: transferring ownership of folder shared with transfer recipient
- Given user "user0" exists
- And user "user1" exists
- And User "user0" created a folder "/test"
- And User "user0" uploads file "data/textfile.txt" to "/test/somefile.txt"
- And folder "/test" of user "user0" is shared with user "user1" with permissions 31
- And user "user1" accepts last share
- When transferring ownership of path "test" from "user0" to "user1"
- And the command was successful
- And As an "user1"
- Then as "user1" the folder "/test" does not exist
- And using received transfer folder of "user1" as dav path
- And Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
- And using old dav path
- And as "user0" the folder "/test" does not exist
- And using received transfer folder of "user1" as dav path
- And as "user1" the folder "/test" exists
- And Getting info of last share
- And the OCS status code should be "404"
- Scenario: transferring ownership of folder doubly shared with third user
- Given group "group1" exists
- And user "user0" exists
- And user "user1" exists
- And user "user2" exists
- And user "user2" belongs to group "group1"
- And User "user0" created a folder "/test"
- And User "user0" uploads file "data/textfile.txt" to "/test/somefile.txt"
- And folder "/test" of user "user0" is shared with group "group1" with permissions 31
- And user "user2" accepts last share
- And folder "/test" of user "user0" is shared with user "user2" with permissions 31
- And user "user2" accepts last share
- When transferring ownership of path "test" from "user0" to "user1"
- And the command was successful
- And As an "user2"
- Then Downloaded content when downloading file "/test/somefile.txt" with range "bytes=0-6" should be "This is"
- And using old dav path
- And as "user0" the folder "/test" does not exist
- And using received transfer folder of "user1" as dav path
- And as "user1" the folder "/test" exists
- And As an "user1"
- And Getting info of last share
- And the OCS status code should be "100"
- And Share fields of last share match with
- | uid_owner | user1 |
- | uid_file_owner | user1 |
- | share_with | user2 |
- Scenario: transferring ownership of path fails for reshares
- Given user "user0" exists
- And user "user1" exists
- And user "user2" exists
- And user "user3" exists
- And User "user3" created a folder "/test"
- And User "user3" uploads file "data/textfile.txt" to "/test/somefile.txt"
- And folder "/test" of user "user3" is shared with user "user0" with permissions 31
- And user "user0" accepts last share
- And folder "/test" of user "user0" is shared with user "user2" with permissions 31
- And user "user2" accepts last share
- When transferring ownership of path "test" from "user0" to "user1"
- Then the command failed with exit code 1
- And the command output contains the text "Could not transfer files."
- Scenario: transferring ownership does not transfer received shares
- Given user "user0" exists
- And user "user1" exists
- And user "user2" exists
- And User "user2" created a folder "/test"
- And User "user0" created a folder "/sub"
- And folder "/test" of user "user2" is shared with user "user0" with permissions 31
- And user "user0" accepts last share
- And User "user0" moved folder "/test" to "/sub/test"
- When transferring ownership of path "sub" from "user0" to "user1"
- And the command was successful
- And As an "user1"
- And using received transfer folder of "user1" as dav path
- Then as "user1" the folder "/sub" exists
- And as "user1" the folder "/sub/test" does not exist
- And using old dav path
- And as "user0" the folder "/sub" does not exist
- And Getting info of last share
- And the OCS status code should be "404"
- Scenario: transferring ownership transfers received shares into subdir when requested
- Given user "user0" exists
- And user "user1" exists
- And user "user2" exists
- And User "user2" created a folder "/transfer-share"
- And User "user2" created a folder "/do-not-transfer"
- And User "user0" created a folder "/sub"
- And folder "/transfer-share" of user "user2" is shared with user "user0" with permissions 31
- And user "user0" accepts last share
- And User "user0" moved folder "/transfer-share" to "/sub/transfer-share"
- And folder "/do-not-transfer" of user "user2" is shared with user "user0" with permissions 31
- And user "user0" accepts last share
- When transferring ownership of path "sub" from "user0" to "user1" with received shares
- And the command was successful
- And As an "user1"
- And using received transfer folder of "user1" as dav path
- Then as "user1" the folder "/sub" exists
- And as "user1" the folder "/do-not-transfer" does not exist
- And as "user1" the folder "/sub/do-not-transfer" does not exist
- And as "user1" the folder "/sub/transfer-share" exists
- And using old dav path
- And as "user1" the folder "/transfer-share" does not exist
- And as "user1" the folder "/do-not-transfer" does not exist
- And using old dav path
- And as "user0" the folder "/sub" does not exist
- And as "user0" the folder "/do-not-transfer" exists
- And Getting info of last share
- And the OCS status code should be "404"
- Scenario: transferring ownership does not transfer external storage
- Given user "user0" exists
- And user "user1" exists
- And User "user0" created a folder "/sub"
- When transferring ownership of path "sub" from "user0" to "user1"
- And the command was successful
- And As an "user1"
- And using received transfer folder of "user1" as dav path
- Then as "user1" the folder "/local_storage" does not exist
- Scenario: transferring ownership fails with invalid source user
- Given user "user0" exists
- And User "user0" created a folder "/sub"
- When transferring ownership of path "sub" from "invalid_user" to "user0"
- Then the command output contains the text "Unknown source user"
- And the command failed with exit code 1
- Scenario: transferring ownership fails with invalid target user
- Given user "user0" exists
- And User "user0" created a folder "/sub"
- When transferring ownership of path "sub" from "user0" to "invalid_user"
- Then the command output contains the text "Unknown destination user invalid_user"
- And the command failed with exit code 1
- Scenario: transferring ownership fails with invalid path
- Given user "user0" exists
- And user "user1" exists
- When transferring ownership of path "test" from "user0" to "user1"
- Then the command output contains the text "Unknown path provided: test"
- And the command failed with exit code 1
|