Skip to content

Commit

Permalink
Test resharing
Browse files Browse the repository at this point in the history
  • Loading branch information
VicDeo committed Dec 3, 2018
1 parent 0201b47 commit c71a8d7
Showing 1 changed file with 59 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,64 @@ Feature: Federation Sharing - sharing with users on other cloud storages
Then file "lorem (2).txt" should not be listed on the webUI
And file "lorem (2).txt" should not be listed in the files page on the webUI

Scenario: test sharing folder to a remote server and resharing it back to the local
Given using server "LOCAL"
And these users have been created:
| username |
| user2 |
When the user shares folder "simple-folder" with remote user "user1@%remote_server_without_scheme%" using the webUI
And using server "REMOTE"
And user "user1" re-logs in to "%remote_server%" using the webUI
And the user accepts the offered remote shares using the webUI
And user "user1" from server "REMOTE" has shared "/simple-folder (2)" with user "user2" from server "LOCAL"
And using server "LOCAL"
And user "user2" re-logs in to "%local_server%" using the webUI
And the user accepts the offered remote shares using the webUI
Then as "user2" folder "/simple-folder (2)" should exist
And as "user2" file "/simple-folder (2)/lorem.txt" should exist

Scenario: test resharing folder as readonly and set it as readonly by resharer
Given using server "LOCAL"
And these users have been created:
| username |
| user2 |
When the user shares folder "simple-folder" with remote user "user1@%remote_server_without_scheme%" using the webUI
And using server "REMOTE"
And user "user1" re-logs in to "%remote_server%" using the webUI
And the user accepts the offered remote shares using the webUI
And user "user1" from server "REMOTE" has shared "/simple-folder (2)" with user "user2" from server "LOCAL"
And the user sets the sharing permissions of "user2@%local_server%/ (federated)" for "simple-folder (2)" using the webUI to
| edit | no |
And using server "LOCAL"
And user "user2" re-logs in to "%local_server%" using the webUI
And the user accepts the offered remote shares using the webUI
Then as "user2" folder "/simple-folder (2)" should exist
And as "user2" file "/simple-folder (2)/lorem.txt" should exist
And the user opens folder "simple-folder (2)" using the webUI
And it should not be possible to delete file "lorem.txt" using the webUI

Scenario: test resharing folder and set it as readonly by owner
Given using server "LOCAL"
And these users have been created:
| username |
| user2 |
When the user shares folder "simple-folder" with remote user "user1@%remote_server_without_scheme%" using the webUI
And using server "REMOTE"
And user "user1" re-logs in to "%remote_server%" using the webUI
And the user accepts the offered remote shares using the webUI
And user "user1" from server "REMOTE" has shared "/simple-folder (2)" with user "user2" from server "LOCAL"
And using server "LOCAL"
And user "user1" re-logs in to "%local_server%" using the webUI
And the user opens the share dialog for folder "simple-folder"
And the user sets the sharing permissions of "user2@%local_server% (federated)" for "simple-folder" using the webUI to
| edit | no |
And user "user2" re-logs in to "%local_server%" using the webUI
And the user accepts the offered remote shares using the webUI
Then as "user2" folder "/simple-folder (2)" should exist
And as "user2" file "/simple-folder (2)/lorem.txt" should exist
And the user opens folder "simple-folder (2)" using the webUI
And it should not be possible to delete file "lorem.txt" using the webUI

@skip @issue-32732
Scenario: test sharing long file names with federation share
When user "user1" moves file "/lorem.txt" to "/averylongfilenamefortestingthatfileswithlongfilenamescannotbeshared.txt" using the WebDAV API
Expand All @@ -192,4 +250,4 @@ Feature: Federation Sharing - sharing with users on other cloud storages
And user "user1" re-logs in to "%remote_server%" using the webUI
And the user accepts the offered remote shares using the webUI
And using server "REMOTE"
Then as "user1" file "/averylongfilenamefortestingthatfileswithlongfilenamescannotbeshared.txt" should exist
Then as "user1" file "/averylongfilenamefortestingthatfileswithlongfilenamescannotbeshared.txt" should exist

0 comments on commit c71a8d7

Please sign in to comment.