mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-28 23:09:46 -05:00
running secure viewer role with ocis wrapper instead of running ocis with GRAPH_AVAILABLE_ROLES
This commit is contained in:
@@ -268,9 +268,10 @@ Feature: copy file
|
||||
| Editor |
|
||||
| Viewer |
|
||||
|
||||
@issue-9482
|
||||
@issue-9482 @env-config
|
||||
Scenario: user copies a file from share space with secure viewer role to personal space
|
||||
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
|
||||
And the administrator has enabled the permissions role "Secure Viewer"
|
||||
And user "Brian" has created folder "/testshare"
|
||||
And user "Brian" has uploaded file with content "testshare content" to "/testshare/testshare.txt"
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
@@ -278,7 +279,7 @@ Feature: copy file
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
| permissionsRole | Secure viewer |
|
||||
| permissionsRole | Secure Viewer |
|
||||
When user "Alice" copies file "/testshare/testshare.txt" from space "Shares" to "/testshare.txt" inside space "Personal" using the WebDAV API
|
||||
Then the HTTP status code should be "403"
|
||||
And for user "Alice" the space "Personal" should not contain these entries:
|
||||
@@ -314,9 +315,10 @@ Feature: copy file
|
||||
| Space Editor | Editor |
|
||||
| Space Editor | Viewer |
|
||||
|
||||
@issue-9482
|
||||
@issue-9482 @env-config
|
||||
Scenario Outline: user copies a file from share space with secure viewer role to project space with different role
|
||||
Given the administrator has assigned the role "Space Admin" to user "Brian" using the Graph API
|
||||
And the administrator has enabled the permissions role "Secure Viewer"
|
||||
And user "Brian" has created a space "Project" with the default quota using the Graph API
|
||||
And user "Brian" has sent the following space share invitation:
|
||||
| space | Project |
|
||||
@@ -330,7 +332,7 @@ Feature: copy file
|
||||
| space | Personal |
|
||||
| sharee | Alice |
|
||||
| shareType | user |
|
||||
| permissionsRole | Secure viewer |
|
||||
| permissionsRole | Secure Viewer |
|
||||
When user "Alice" copies file "/testshare/testshare.txt" from space "Shares" to "/testshare.txt" inside space "Project" using the WebDAV API
|
||||
Then the HTTP status code should be "403"
|
||||
And for user "Alice" the space "Project" should not contain these entries:
|
||||
@@ -399,10 +401,11 @@ Feature: copy file
|
||||
| Editor |
|
||||
| Viewer |
|
||||
|
||||
@issue-9482
|
||||
Scenario Outline: user copies a file from share space with different role to share space with role viewer or Secure viewer
|
||||
@issue-9482 @env-config
|
||||
Scenario Outline: user copies a file from share space with different role to share space with role viewer or Secure Viewer
|
||||
Given user "Brian" has created folder "/testshare1"
|
||||
And user "Brian" has created folder "/testshare2"
|
||||
And the administrator has enabled the permissions role "Secure Viewer"
|
||||
And user "Brian" has uploaded file with content "testshare1 content" to "/testshare1/testshare1.txt"
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
| resource | testshare1 |
|
||||
@@ -425,11 +428,11 @@ Feature: copy file
|
||||
Examples:
|
||||
| permissions-role-1 | permissions-role-2 |
|
||||
| Editor | Viewer |
|
||||
| Editor | Secure viewer |
|
||||
| Editor | Secure Viewer |
|
||||
| Viewer | Viewer |
|
||||
| Viewer | Secure viewer |
|
||||
| Secure viewer | Viewer |
|
||||
| Secure viewer | Secure viewer |
|
||||
| Viewer | Secure Viewer |
|
||||
| Secure Viewer | Viewer |
|
||||
| Secure Viewer | Secure Viewer |
|
||||
|
||||
|
||||
Scenario Outline: copying a folder within the same project space with different role
|
||||
|
||||
@@ -404,23 +404,25 @@ Feature: sharing
|
||||
| Editor |
|
||||
| Uploader |
|
||||
|
||||
|
||||
@env-config
|
||||
Scenario: sharee cannot download file shared with Secure viewer permission by sharee
|
||||
Given using old DAV path
|
||||
And the administrator has enabled the permissions role "Secure Viewer"
|
||||
And user "Alice" has uploaded file with content "hello world" to "textfile.txt"
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | textfile.txt |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Secure viewer |
|
||||
| permissionsRole | Secure Viewer |
|
||||
And user "Brian" has a share "textfile.txt" synced
|
||||
And user "Brian" downloads file "/Shares/textfile.txt" using the WebDAV API
|
||||
Then the HTTP status code should be "403"
|
||||
|
||||
|
||||
@env-config
|
||||
Scenario: sharee cannot download file inside folder shared with Secure viewer permission by sharee
|
||||
Given using old DAV path
|
||||
And the administrator has enabled the permissions role "Secure Viewer"
|
||||
And user "Alice" has created folder "FolderToShare"
|
||||
And user "Alice" has uploaded file with content "hello world" to "FolderToShare/textfile.txt"
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
@@ -428,7 +430,7 @@ Feature: sharing
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Secure viewer |
|
||||
| permissionsRole | Secure Viewer |
|
||||
And user "Brian" has a share "FolderToShare" synced
|
||||
And user "Brian" downloads file "/Shares/FolderToShare/textfile.txt" using the WebDAV API
|
||||
Then the HTTP status code should be "403"
|
||||
|
||||
Reference in New Issue
Block a user