mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-08 05:09:46 -06:00
previews.feature: Used sharingNG for sharing in given step
This commit is contained in:
@@ -264,6 +264,7 @@ default:
|
||||
context: *common_ldap_suite_context
|
||||
contexts:
|
||||
- FeatureContext: *common_feature_context_params
|
||||
- SharingNgContext:
|
||||
- WebDavPropertiesContext:
|
||||
|
||||
coreApiWebdavProperties:
|
||||
|
||||
@@ -134,12 +134,17 @@ Feature: previews of files downloaded through the webdav API
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@skipOnReva
|
||||
|
||||
Scenario Outline: download previews of shared files (to shares folder)
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Brian" has been created with default attributes and without skeleton files
|
||||
And user "Alice" has uploaded file "filesForUpload/<file-name>" to "/<file-name>"
|
||||
And user "Alice" has shared file "/<file-name>" with user "Brian"
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | <file-name> |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | File Editor |
|
||||
When user "Brian" downloads the preview of shared resource "/Shares/<file-name>" with width "32" and height "32" using the WebDAV API
|
||||
Then the HTTP status code should be "200"
|
||||
And the downloaded image should be "32" pixels wide and "32" pixels high
|
||||
@@ -207,12 +212,17 @@ Feature: previews of files downloaded through the webdav API
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@issue-2538 @skipOnReva
|
||||
@issue-2538
|
||||
Scenario Outline: when owner updates a shared file, previews for sharee are also updated (to shared folder)
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Brian" has been created with default attributes and without skeleton files
|
||||
And user "Alice" has uploaded file "filesForUpload/lorem.txt" to "/parent.txt"
|
||||
And user "Alice" has shared file "/parent.txt" with user "Brian"
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | parent.txt |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | File Editor |
|
||||
And user "Brian" has downloaded the preview of shared resource "/Shares/parent.txt" with width "32" and height "32"
|
||||
When user "Alice" uploads file with content "this is a file to upload" to "/parent.txt" using the WebDAV API
|
||||
Then the HTTP status code should be "204"
|
||||
@@ -238,13 +248,18 @@ Feature: previews of files downloaded through the webdav API
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@skipOnReva
|
||||
|
||||
Scenario Outline: updates to a file should change the preview for both sharees and sharers
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Brian" has been created with default attributes and without skeleton files
|
||||
And user "Alice" has created folder "FOLDER"
|
||||
And user "Alice" has uploaded file with content "file to upload" to "/FOLDER/lorem.txt"
|
||||
And user "Alice" has shared folder "FOLDER" with user "Brian"
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | FOLDER |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Editor |
|
||||
And user "Alice" has downloaded the preview of "/FOLDER/lorem.txt" with width "32" and height "32"
|
||||
And user "Brian" has downloaded the preview of shared resource "Shares/FOLDER/lorem.txt" with width "32" and height "32"
|
||||
When user "Alice" uploads file "filesForUpload/lorem.txt" to "/FOLDER/lorem.txt" using the WebDAV API
|
||||
@@ -261,7 +276,7 @@ Feature: previews of files downloaded through the webdav API
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
@skipOnReva
|
||||
|
||||
Scenario Outline: updates to a group shared file should change the preview for both sharees and sharers
|
||||
Given using <dav-path-version> DAV path
|
||||
And group "grp1" has been created
|
||||
@@ -271,7 +286,12 @@ Feature: previews of files downloaded through the webdav API
|
||||
And user "Carol" has been added to group "grp1"
|
||||
And user "Alice" has created folder "FOLDER"
|
||||
And user "Alice" has uploaded file with content "file to upload" to "/FOLDER/lorem.txt"
|
||||
And user "Alice" has shared folder "/FOLDER" with group "grp1"
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | FOLDER |
|
||||
| space | Personal |
|
||||
| sharee | grp1 |
|
||||
| shareType | group |
|
||||
| permissionsRole | Editor |
|
||||
And user "Alice" has downloaded the preview of "/FOLDER/lorem.txt" with width "32" and height "32"
|
||||
And user "Brian" has downloaded the preview of shared resource "Shares/FOLDER/lorem.txt" with width "32" and height "32"
|
||||
And user "Carol" has downloaded the preview of shared resource "Shares/FOLDER/lorem.txt" with width "32" and height "32"
|
||||
|
||||
Reference in New Issue
Block a user