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

API test for moveReceivedShare #31545

Merged
Merged
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
31 changes: 28 additions & 3 deletions tests/acceptance/features/apiSharing-v1/moveReceivedShare.feature
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,34 @@ Feature: sharing
And user "user1" has been added to group "group"
And user "user2" has been added to group "group"
And user "user0" has created a folder "/TMP"
When user "user0" shares file "TMP" with group "group" using the API
When user "user0" shares folder "TMP" with group "group" using the API
And user "user1" creates a folder "/myFOLDER" using the API
And user "user1" moves file "/TMP" to "/myFOLDER/myTMP" using the API
And user "user1" moves folder "/TMP" to "/myFOLDER/myTMP" using the API
And the administrator deletes user "user2" using the API
Then user "user1" should see the following elements
| /myFOLDER/myTMP/ |
| /myFOLDER/myTMP/ |

Scenario: keep user shared file name same after one of recipient has renamed the file
Given user "user0" has been created
And user "user1" has been created
And user "user2" has been created
And user "user0" has uploaded file with content "foo" to "/sharefile.txt"
And user "user0" has shared file "/sharefile.txt" with user "user1"
And user "user0" has shared file "/sharefile.txt" with user "user2"
When user "user2" moves file "/sharefile.txt" to "/renamedsharefile.txt" using the API
Then as "user2" the file "/renamedsharefile.txt" should exist
And as "user0" the file "/sharefile.txt" should exist
And as "user1" the file "/sharefile.txt" should exist

Scenario: keep user shared file directory same in respect to respective user if one of the recipient has moved the file
Given user "user0" has been created
And user "user1" has been created
And user "user2" has been created
And user "user0" has uploaded file with content "foo" to "/sharefile.txt"
And user "user0" has shared file "/sharefile.txt" with user "user1"
And user "user0" has shared file "/sharefile.txt" with user "user2"
And user "user2" has created a folder "newfolder"
When user "user2" moves file "/sharefile.txt" to "/newfolder/sharefile.txt" using the API
Then as "user2" the file "/newfolder/sharefile.txt" should exist
And as "user0" the file "/sharefile.txt" should exist
And as "user1" the file "/sharefile.txt" should exist