mirror of
https://github.com/owncloud/ocis.git
synced 2025-04-18 23:44:07 +03:00
Merge pull request #11219 from owncloud/test/shareNg-9369
[tests-only][full-ci]added test to download archive of folder shared with Secure Viewer role
This commit is contained in:
commit
c118bada1e
@ -228,6 +228,7 @@ class ArchiverContext implements Context {
|
||||
|
||||
/**
|
||||
* @When user :user downloads the archive of these items using the resource :addressType
|
||||
* @When user :user tries to download the archive of these items using the resource :addressType
|
||||
*
|
||||
* @param string $user
|
||||
* @param string $addressType ids|paths
|
||||
|
@ -357,6 +357,10 @@ The expected failures in this file are from features in the owncloud/ocis repo.
|
||||
- [apiContract/propfindShares.feature:171](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiContract/propfindShares.feature#L171)
|
||||
- [apiContract/propfindShares.feature:172](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiContract/propfindShares.feature#L172)
|
||||
|
||||
#### [Folder shared with Secure view can be downloaded.](https://github.com/owncloud/ocis/issues/9369)
|
||||
- [apiSpacesShares/shareOperations.feature:488](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiSpacesShares/shareOperations.feature#L488)
|
||||
- [apiSpacesShares/shareOperations.feature:503](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiSpacesShares/shareOperations.feature#L503)
|
||||
|
||||
#### [PROPFIND request to resource shared with user when deleted retains it's <oc:share-type> property](https://github.com/owncloud/ocis/issues/9463)
|
||||
- [apiContract/propfindShares.feature:194](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiContract/propfindShares.feature#L194)
|
||||
- [apiContract/propfindShares.feature:195](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiContract/propfindShares.feature#L195)
|
||||
|
@ -483,3 +483,34 @@ Feature: sharing
|
||||
| ocs-api-version | ocs-status-code |
|
||||
| 1 | 100 |
|
||||
| 2 | 200 |
|
||||
|
||||
@issue-9369 @env-config
|
||||
Scenario: sharee cannot download empty folder shared with Secure Viewer permission
|
||||
Given the administrator has enabled the permissions role "Secure Viewer"
|
||||
And user "Alice" has created folder "folderToShare"
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | folderToShare |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Secure Viewer |
|
||||
And user "Brian" has a share "folderToShare" synced
|
||||
When user "Brian" tries to download the archive of these items using the resource ids
|
||||
| Shares/folderToShare |
|
||||
Then the HTTP status code should be "403"
|
||||
|
||||
@issue-9369 @env-config
|
||||
Scenario: sharee cannot download non-empty folder shared with Secure Viewer permission
|
||||
Given the administrator has enabled the permissions role "Secure Viewer"
|
||||
And user "Alice" has created folder "folderToShare"
|
||||
And user "Alice" has uploaded file with content "some content" to "folderToShare/testfile.txt"
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | folderToShare |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Secure Viewer |
|
||||
And user "Brian" has a share "folderToShare" synced
|
||||
When user "Brian" tries to download the archive of these items using the resource ids
|
||||
| Shares/folderToShare |
|
||||
Then the HTTP status code should be "403"
|
||||
|
Loading…
x
Reference in New Issue
Block a user