mirror of
https://github.com/nextcloud/server.git
synced 2026-04-27 09:08:22 -04:00
Add test for received share in share_folder
Add integration test for receiving a share in a configured "share_folder". Signed-off-by: Vincent Petry <vincent@nextcloud.com>
This commit is contained in:
parent
baf74f0aa1
commit
486d8bc986
2 changed files with 16 additions and 0 deletions
|
|
@ -46,5 +46,7 @@ class SharingContext implements Context, SnippetAcceptingContext {
|
|||
$this->deleteServerConfig('core', 'shareapi_default_expire_date');
|
||||
$this->deleteServerConfig('core', 'shareapi_expire_after_n_days');
|
||||
$this->deleteServerConfig('core', 'link_defaultExpDays');
|
||||
|
||||
$this->runOcc(['config:system:delete', 'share_folder']);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -514,6 +514,20 @@ Feature: sharing
|
|||
Then as "user1" the file "/shared/shared_file.txt" exists
|
||||
And as "user0" the file "/shared/shared_file.txt" exists
|
||||
|
||||
Scenario: receiving shares into a configured share_folder
|
||||
Given As an "admin"
|
||||
And invoking occ with "config:system:set share_folder --value received_shares"
|
||||
And user "user0" exists
|
||||
And user "user1" exists
|
||||
And user "user0" created a folder "/shared_folder"
|
||||
And User "user0" moved file "/textfile0.txt" to "/shared_file.txt"
|
||||
When folder "/shared_folder" of user "user0" is shared with user "user1"
|
||||
And user "user1" accepts last share
|
||||
Then as "user1" the file "/received_shares/shared_folder" exists
|
||||
When file "/shared_file.txt" of user "user0" is shared with user "user1"
|
||||
And user "user1" accepts last share
|
||||
Then as "user1" the file "/received_shares/shared_file.txt" exists
|
||||
|
||||
Scenario: Owner of subshares is adjusted after moving into received share
|
||||
Given As an "admin"
|
||||
And user "user0" exists
|
||||
|
|
|
|||
Loading…
Reference in a new issue