diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-11-15 09:57:44 +0100 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2022-11-15 09:57:44 +0100 |
commit | 486d8bc9866aa712c7fc3f0dd8ac9b3ac5df0aa1 (patch) | |
tree | 4e08c9bc53d604aa319521cc31457fa778946064 /build | |
parent | baf74f0aa1b8947272b10532a3c3a1cff16b6085 (diff) | |
download | nextcloud-server-486d8bc9866aa712c7fc3f0dd8ac9b3ac5df0aa1.tar.gz nextcloud-server-486d8bc9866aa712c7fc3f0dd8ac9b3ac5df0aa1.zip |
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>
Diffstat (limited to 'build')
-rw-r--r-- | build/integration/features/bootstrap/SharingContext.php | 2 | ||||
-rw-r--r-- | build/integration/sharing_features/sharing-v1-part3.feature | 14 |
2 files changed, 16 insertions, 0 deletions
diff --git a/build/integration/features/bootstrap/SharingContext.php b/build/integration/features/bootstrap/SharingContext.php index 7080fd0a1a0..f187e89f08f 100644 --- a/build/integration/features/bootstrap/SharingContext.php +++ b/build/integration/features/bootstrap/SharingContext.php @@ -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']); } } diff --git a/build/integration/sharing_features/sharing-v1-part3.feature b/build/integration/sharing_features/sharing-v1-part3.feature index 621aa95b364..1331d5b2ba6 100644 --- a/build/integration/sharing_features/sharing-v1-part3.feature +++ b/build/integration/sharing_features/sharing-v1-part3.feature @@ -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 |