aboutsummaryrefslogtreecommitdiffstats
path: root/build/integration/filesdrop_features/filesdrop.feature
diff options
context:
space:
mode:
authorskjnldsv <skjnldsv@protonmail.com>2024-07-18 20:59:50 +0200
committerskjnldsv <skjnldsv@protonmail.com>2024-07-19 07:35:51 +0200
commit725736a754c81ccee17ba394de4da38f5bfa0e68 (patch)
tree3efb98cd93f84f15ed868f2b65c4338083994888 /build/integration/filesdrop_features/filesdrop.feature
parent481551eebf08f55e4477b8afb5c3c15b94f6ce39 (diff)
downloadnextcloud-server-725736a754c81ccee17ba394de4da38f5bfa0e68.tar.gz
nextcloud-server-725736a754c81ccee17ba394de4da38f5bfa0e68.zip
chore(integration): add file request tests
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Diffstat (limited to 'build/integration/filesdrop_features/filesdrop.feature')
-rw-r--r--build/integration/filesdrop_features/filesdrop.feature31
1 files changed, 31 insertions, 0 deletions
diff --git a/build/integration/filesdrop_features/filesdrop.feature b/build/integration/filesdrop_features/filesdrop.feature
index 211f780fb1c..2c9156dea02 100644
--- a/build/integration/filesdrop_features/filesdrop.feature
+++ b/build/integration/filesdrop_features/filesdrop.feature
@@ -59,3 +59,34 @@ Feature: FilesDrop
| permissions | 4 |
When Creating folder "folder" in drop
Then the HTTP status code should be "405"
+
+ Scenario: Files request drop
+ Given user "user0" exists
+ And As an "user0"
+ And user "user0" created a folder "/drop"
+ And as "user0" creating a share with
+ | path | drop |
+ | shareType | 4 |
+ | permissions | 4 |
+ | attributes | [{"scope":"fileRequest","key":"enabled","value":true}] |
+ | shareWith | |
+ When Dropping file "/folder/a.txt" with "abc" as "Alice"
+ And Downloading file "/drop/Alice/a.txt"
+ Then Downloaded content should be "abc"
+
+ Scenario: Put file same file multiple times via files drop
+ Given user "user0" exists
+ And As an "user0"
+ And user "user0" created a folder "/drop"
+ And as "user0" creating a share with
+ | path | drop |
+ | shareType | 4 |
+ | permissions | 4 |
+ | attributes | [{"scope":"fileRequest","key":"enabled","value":true}] |
+ | shareWith | |
+ When Dropping file "/folder/a.txt" with "abc" as "Mallory"
+ And Dropping file "/folder/a.txt" with "def" as "Mallory"
+ And Downloading file "/drop/Mallory/a.txt"
+ Then Downloaded content should be "abc"
+ And Downloading file "/drop/Mallory/a (2).txt"
+ Then Downloaded content should be "def"