From 7cb64e312a9255a03e060008c2804b57c1e69bdc Mon Sep 17 00:00:00 2001 From: Prarup Gurung Date: Mon, 20 May 2024 12:15:45 +0545 Subject: [PATCH] getFileProperties.feature: Used sharingNG for sharing in given step --- .../expected-failures-API-on-OCIS-storage.md | 8 +-- .../getFileProperties.feature | 62 ++++++++++--------- 2 files changed, 38 insertions(+), 32 deletions(-) diff --git a/tests/acceptance/expected-failures-API-on-OCIS-storage.md b/tests/acceptance/expected-failures-API-on-OCIS-storage.md index 561a3eddf..634544d25 100644 --- a/tests/acceptance/expected-failures-API-on-OCIS-storage.md +++ b/tests/acceptance/expected-failures-API-on-OCIS-storage.md @@ -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) -- [coreApiWebdavProperties/getFileProperties.feature:342](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties/getFileProperties.feature#L342) -- [coreApiWebdavProperties/getFileProperties.feature:343](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties/getFileProperties.feature#L343) - [coreApiWebdavProperties/getFileProperties.feature:348](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties/getFileProperties.feature#L348) -- [coreApiWebdavProperties/getFileProperties.feature:378](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties/getFileProperties.feature#L378) -- [coreApiWebdavProperties/getFileProperties.feature:379](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties/getFileProperties.feature#L379) +- [coreApiWebdavProperties/getFileProperties.feature:349](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties/getFileProperties.feature#L349) +- [coreApiWebdavProperties/getFileProperties.feature:354](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties/getFileProperties.feature#L354) - [coreApiWebdavProperties/getFileProperties.feature:384](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties/getFileProperties.feature#L384) +- [coreApiWebdavProperties/getFileProperties.feature:385](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties/getFileProperties.feature#L385) +- [coreApiWebdavProperties/getFileProperties.feature:390](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties/getFileProperties.feature#L390) #### [file versions do not report the version author](https://github.com/owncloud/ocis/issues/2914) diff --git a/tests/acceptance/features/coreApiWebdavProperties/getFileProperties.feature b/tests/acceptance/features/coreApiWebdavProperties/getFileProperties.feature index 02738b93d..89b55edc5 100644 --- a/tests/acceptance/features/coreApiWebdavProperties/getFileProperties.feature +++ b/tests/acceptance/features/coreApiWebdavProperties/getFileProperties.feature @@ -172,11 +172,12 @@ Feature: get file properties Given using DAV path 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 a share with settings - | path | test | - | shareType | user | - | permissions | all | - | shareWith | Brian | + And user "Alice" has sent the following resource share invitation: + | resource | test | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Editor | When user "Alice" gets the following properties of folder "/test" using the WebDAV API | propertyName | | oc:share-types | @@ -198,11 +199,12 @@ Feature: get file properties Given using DAV path And group "grp1" has been created And user "Alice" has created folder "/test" - And user "Alice" has created a share with settings - | path | test | - | shareType | group | - | permissions | all | - | shareWith | grp1 | + And user "Alice" has sent the following resource share invitation: + | resource | test | + | space | Personal | + | sharee | grp1 | + | shareType | group | + | permissionsRole | Editor | When user "Alice" gets the following properties of folder "/test" using the WebDAV API | propertyName | | oc:share-types | @@ -223,10 +225,11 @@ Feature: get file properties Scenario Outline: file that is shared by link has a share-types property Given using DAV path And user "Alice" has created folder "/test" - And user "Alice" has created a public link share with settings - | path | test | - | permissions | all | - | password | %public% | + And user "Alice" has created the following resource link share: + | resource | test | + | space | Personal | + | permissionsRole | edit | + | password | %public% | When user "Alice" gets the following properties of folder "/test" using the WebDAV API | propertyName | | oc:share-types | @@ -249,20 +252,23 @@ Feature: get file properties And user "Brian" has been created with default attributes and without skeleton files And group "grp1" has been created And user "Alice" has created folder "/test" - And user "Alice" has created a share with settings - | path | test | - | shareType | user | - | permissions | all | - | shareWith | Brian | - And user "Alice" has created a share with settings - | path | test | - | shareType | group | - | permissions | all | - | shareWith | grp1 | - And user "Alice" has created a public link share with settings - | path | test | - | permissions | all | - | password | %public% | + And user "Alice" has sent the following resource share invitation: + | resource | test | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Editor | + And user "Alice" has sent the following resource share invitation: + | resource | test | + | space | Personal | + | sharee | grp1 | + | shareType | group | + | permissionsRole | Editor | + And user "Alice" has created the following resource link share: + | resource | test | + | space | Personal | + | permissionsRole | edit | + | password | %public% | When user "Alice" gets the following properties of folder "/test" using the WebDAV API | propertyName | | oc:share-types |