From 725736a754c81ccee17ba394de4da38f5bfa0e68 Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Thu, 18 Jul 2024 20:59:50 +0200 Subject: chore(integration): add file request tests Signed-off-by: skjnldsv --- .../filesdrop_features/filesdrop.feature | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'build/integration/filesdrop_features/filesdrop.feature') 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" -- cgit v1.2.3