Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSwoichha Adhikari <swoichhaa@gmail.com>2021-04-21 13:19:52 +0300
committerGitHub <noreply@github.com>2021-04-21 13:19:52 +0300
commit196c641dbd3a12c441723c6b801cdce7490ca51e (patch)
treef08a841b982cbdcf0db194e9524ed30ccae3b428 /test/gui/tst_sharing/test.feature
parent9fd94b753e46678ccb84c855fb81c8c3e5fc6187 (diff)
[tests-only]public link share for folder with different permissions (#8561)
Diffstat (limited to 'test/gui/tst_sharing/test.feature')
-rw-r--r--test/gui/tst_sharing/test.feature35
1 files changed, 34 insertions, 1 deletions
diff --git a/test/gui/tst_sharing/test.feature b/test/gui/tst_sharing/test.feature
index cf31667d5..a20cb4b30 100644
--- a/test/gui/tst_sharing/test.feature
+++ b/test/gui/tst_sharing/test.feature
@@ -94,4 +94,37 @@ Feature: Sharing
And the user edits the public link named "Public link" of file "simple-folder" changing following
| expireDate | 2038-07-21 |
Then the fields of the last public link share response of user "Alice" on the server should include
- | expireDate | 2038-07-21 | \ No newline at end of file
+ | expireDate | 2038-07-21 |
+
+
+ Scenario Outline: simple sharing of folder by public link with different roles
+ Given user "Alice" has been created on the server with default attributes
+ And user "Alice" has set up a client with default settings and password "1234"
+ When the user creates a new public link for folder "%client_sync_path%/simple-folder" with "<role>" using the client-UI
+ Then user "Alice" on the server should have a share with these details:
+ | field | value |
+ | share_type | public_link |
+ | uid_owner | Alice |
+ | permissions | <permissions> |
+ | path | /simple-folder |
+ | name | Public link |
+ Examples:
+ | role | permissions |
+ | Viewer | read |
+ | Editor | read, update, create, delete |
+ | Contributor | create |
+
+
+ Scenario: sharing by public link with "Uploader" role
+ Given user "Alice" has been created on the server with default attributes
+ And user "Alice" on the server has created file "simple-folder/lorem.txt"
+ And user "Alice" has set up a client with default settings and password "1234"
+ When the user creates a new public link for folder "%client_sync_path%/simple-folder" with "Uploader" using the client-UI
+ Then user "Alice" on the server should have a share with these details:
+ | field | value |
+ | share_type | public_link |
+ | uid_owner | Alice |
+ | permissions | create |
+ | path | /simple-folder |
+ | name | Public link |
+ And the public should not be able to download the file "lorem.txt" from the last created public link by "Alice" on the server