Merge pull request #9563 from owncloud/extend-tests-sharer-profinds-for-file

[full-ci][tests-only] Extended the tests to cover profind by sharer to shared file
This commit is contained in:
Sawjan Gurung
2024-07-09 16:37:40 +05:45
committed by GitHub
2 changed files with 74 additions and 58 deletions
@@ -24,12 +24,12 @@ _ocdav: double-check the webdav property parsing when custom namespaces are used
#### [Cannot set custom webDav properties](https://github.com/owncloud/product/issues/264) #### [Cannot set custom webDav properties](https://github.com/owncloud/product/issues/264)
- [coreApiWebdavProperties/getFileProperties.feature:300](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties/getFileProperties.feature#L300) - [coreApiWebdavProperties/getFileProperties.feature:316](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties/getFileProperties.feature#L316)
- [coreApiWebdavProperties/getFileProperties.feature:301](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties/getFileProperties.feature#L301) - [coreApiWebdavProperties/getFileProperties.feature:317](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties/getFileProperties.feature#L317)
- [coreApiWebdavProperties/getFileProperties.feature:302](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties/getFileProperties.feature#L302) - [coreApiWebdavProperties/getFileProperties.feature:318](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties/getFileProperties.feature#L318)
- [coreApiWebdavProperties/getFileProperties.feature:332](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties/getFileProperties.feature#L332) - [coreApiWebdavProperties/getFileProperties.feature:348](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties/getFileProperties.feature#L348)
- [coreApiWebdavProperties/getFileProperties.feature:333](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties/getFileProperties.feature#L333) - [coreApiWebdavProperties/getFileProperties.feature:349](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties/getFileProperties.feature#L349)
- [coreApiWebdavProperties/getFileProperties.feature:334](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties/getFileProperties.feature#L334) - [coreApiWebdavProperties/getFileProperties.feature:350](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties/getFileProperties.feature#L350)
#### [file versions do not report the version author](https://github.com/owncloud/ocis/issues/2914) #### [file versions do not report the version author](https://github.com/owncloud/ocis/issues/2914)
@@ -144,96 +144,109 @@ Feature: get file properties
| spaces | | spaces |
@skipOnReva @skipOnReva
Scenario Outline: file that is shared to a user has a share-types property Scenario Outline: resource that is shared to a user has a share-types property
Given using <dav-path-version> DAV path Given using <dav-path-version> DAV path
And user "Brian" has been created with default attributes and without skeleton files And user "Brian" has been created with default attributes and without skeleton files
And user "Alice" has created folder "/test" And user "Alice" has created folder "/test"
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/textfile.txt"
And user "Alice" has sent the following resource share invitation: And user "Alice" has sent the following resource share invitation:
| resource | test | | resource | <resource> |
| space | Personal | | space | Personal |
| sharee | Brian | | sharee | Brian |
| shareType | user | | shareType | user |
| permissionsRole | Editor | | permissionsRole | Viewer |
When user "Alice" gets the following properties of folder "/test" using the WebDAV API When user "Alice" gets the following properties of folder "<resource>" using the WebDAV API
| propertyName | | propertyName |
| oc:share-types | | oc:share-types |
Then the HTTP status code should be "207" Then the HTTP status code should be "207"
And the response should contain a share-types property with And the response should contain a share-types property with
| 0 | | 0 |
Examples: Examples:
| dav-path-version | | dav-path-version | resource |
| old | | old | test |
| new | | new | test |
| spaces | | spaces | test |
| old | textfile.txt |
| new | textfile.txt |
| spaces | textfile.txt |
@skipOnReva @skipOnReva
Scenario Outline: file that is shared to a group has a share-types property Scenario Outline: resource that is shared to a group has a share-types property
Given using <dav-path-version> DAV path Given using <dav-path-version> DAV path
And group "grp1" has been created And group "grp1" has been created
And user "Alice" has created folder "/test" And user "Alice" has created folder "/test"
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/textfile.txt"
And user "Alice" has sent the following resource share invitation: And user "Alice" has sent the following resource share invitation:
| resource | test | | resource | <resource> |
| space | Personal | | space | Personal |
| sharee | grp1 | | sharee | grp1 |
| shareType | group | | shareType | group |
| permissionsRole | Editor | | permissionsRole | Viewer |
When user "Alice" gets the following properties of folder "/test" using the WebDAV API When user "Alice" gets the following properties of folder "<resource>" using the WebDAV API
| propertyName | | propertyName |
| oc:share-types | | oc:share-types |
Then the HTTP status code should be "207" Then the HTTP status code should be "207"
And the response should contain a share-types property with And the response should contain a share-types property with
| 1 | | 1 |
Examples: Examples:
| dav-path-version | | dav-path-version | resource |
| old | | old | test |
| new | | new | test |
| spaces | | spaces | test |
| old | textfile.txt |
| new | textfile.txt |
| spaces | textfile.txt |
@skipOnReva @skipOnReva
Scenario Outline: file that is shared by link has a share-types property Scenario Outline: resource that is shared by link has a share-types property
Given using <dav-path-version> DAV path Given using <dav-path-version> DAV path
And user "Alice" has created folder "/test" And user "Alice" has created folder "/test"
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/textfile.txt"
And user "Alice" has created the following resource link share: And user "Alice" has created the following resource link share:
| resource | test | | resource | <resource> |
| space | Personal | | space | Personal |
| permissionsRole | edit | | permissionsRole | edit |
| password | %public% | | password | %public% |
When user "Alice" gets the following properties of folder "/test" using the WebDAV API When user "Alice" gets the following properties of folder "<resource>" using the WebDAV API
| propertyName | | propertyName |
| oc:share-types | | oc:share-types |
Then the HTTP status code should be "207" Then the HTTP status code should be "207"
And the response should contain a share-types property with And the response should contain a share-types property with
| 3 | | 3 |
Examples: Examples:
| dav-path-version | | dav-path-version | resource |
| old | | old | test |
| new | | new | test |
| spaces | | spaces | test |
| old | textfile.txt |
| new | textfile.txt |
| spaces | textfile.txt |
@skipOnReva @skipOnReva
Scenario Outline: file that is shared by user,group and link has a share-types property Scenario Outline: resource that is shared by user,group and link has a share-types property
Given using <dav-path-version> DAV path Given using <dav-path-version> DAV path
And user "Brian" has been created with default attributes and without skeleton files And user "Brian" has been created with default attributes and without skeleton files
And group "grp1" has been created And group "grp1" has been created
And user "Alice" has created folder "/test" And user "Alice" has created folder "/test"
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/textfile.txt"
And user "Alice" has sent the following resource share invitation: And user "Alice" has sent the following resource share invitation:
| resource | test | | resource | <resource> |
| space | Personal | | space | Personal |
| sharee | Brian | | sharee | Brian |
| shareType | user | | shareType | user |
| permissionsRole | Editor | | permissionsRole | Viewer |
And user "Alice" has sent the following resource share invitation: And user "Alice" has sent the following resource share invitation:
| resource | test | | resource | <resource> |
| space | Personal | | space | Personal |
| sharee | grp1 | | sharee | grp1 |
| shareType | group | | shareType | group |
| permissionsRole | Editor | | permissionsRole | Viewer |
And user "Alice" has created the following resource link share: And user "Alice" has created the following resource link share:
| resource | test | | resource | <resource> |
| space | Personal | | space | Personal |
| permissionsRole | edit | | permissionsRole | edit |
| password | %public% | | password | %public% |
When user "Alice" gets the following properties of folder "/test" using the WebDAV API When user "Alice" gets the following properties of folder "<resource>" using the WebDAV API
| propertyName | | propertyName |
| oc:share-types | | oc:share-types |
Then the HTTP status code should be "207" Then the HTTP status code should be "207"
@@ -242,10 +255,13 @@ Feature: get file properties
| 1 | | 1 |
| 3 | | 3 |
Examples: Examples:
| dav-path-version | | dav-path-version | resource |
| old | | old | test |
| new | | new | test |
| spaces | | spaces | test |
| old | textfile.txt |
| new | textfile.txt |
| spaces | textfile.txt |
@smokeTest @issue-2809 @smokeTest @issue-2809
Scenario Outline: retrieving a private link Scenario Outline: retrieving a private link