diff options
author | Swoichha Adhikari <swoichhaa@gmail.com> | 2021-04-01 10:14:50 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-01 10:14:50 +0300 |
commit | 13061590ea9895e329caafceda3bcba80f2799bb (patch) | |
tree | f8f8c45d7cebbef0f77d80d3d02fd3caeb5e81ac /test/gui/tst_sharing | |
parent | 1404c39fc4e27a4541840bf6d763493a22386dd5 (diff) |
[tests-only]added tests for public link permissions (#8519)
Diffstat (limited to 'test/gui/tst_sharing')
-rw-r--r-- | test/gui/tst_sharing/test.feature | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/test/gui/tst_sharing/test.feature b/test/gui/tst_sharing/test.feature index 35a6d2fd7..a28ca5970 100644 --- a/test/gui/tst_sharing/test.feature +++ b/test/gui/tst_sharing/test.feature @@ -87,3 +87,53 @@ Feature: Sharing And user "Alice" has updated the share permissions on the server for folder "/simple-folder" to "read" for user "Brian" When user "Brian" opens the sharing dialog of "%client_sync_path%/Shares/simple-folder" using the client-UI Then the error text "The file can not be shared because it was shared without sharing permission." should be displayed in the sharing dialog + + + Scenario: simple sharing of a file by public link without password + Given user "Alice" has been created on the server with default attributes + And user "Alice" has set up a client with these settings and password "1234": + """ + [Accounts] + 0\Folders\1\ignoreHiddenFiles=true + 0\Folders\1\localPath=%client_sync_path% + 0\Folders\1\paused=false + 0\Folders\1\targetPath=/ + 0\Folders\1\version=2 + 0\Folders\1\virtualFilesMode=off + 0\dav_user=alice + 0\display-name=Alice + 0\http_oauth=false + 0\http_user=alice + 0\url=%local_server% + 0\user=Alice + 0\version=1 + version=2 + """ + When the user creates a new public link for file "%client_sync_path%/textfile0.txt" without password using the client-UI + Then as user "Alice" the file "textfile0.txt" should have a public link on the server + And the public should be able to download the file "textfile0.txt" without password from the last created public link by "Alice" on the server + + + Scenario: simple sharing of a file by public link with password + Given user "Alice" has been created on the server with default attributes + And user "Alice" has set up a client with these settings and password "1234": + """ + [Accounts] + 0\Folders\1\ignoreHiddenFiles=true + 0\Folders\1\localPath=%client_sync_path% + 0\Folders\1\paused=false + 0\Folders\1\targetPath=/ + 0\Folders\1\version=2 + 0\Folders\1\virtualFilesMode=off + 0\dav_user=alice + 0\display-name=Alice + 0\http_oauth=false + 0\http_user=alice + 0\url=%local_server% + 0\user=Alice + 0\version=1 + version=2 + """ + When the user creates a new public link for file "%client_sync_path%/textfile0.txt" with password "pass123" using the client-UI + Then as user "Alice" the file "textfile0.txt" should have a public link on the server + And the public should be able to download the file "textfile0.txt" with password "pass123" from the last created public link by "Alice" on the server |