From b668274c80c4b846b4a65b6e3e3e950c96074ba7 Mon Sep 17 00:00:00 2001 From: prajwol Date: Thu, 20 Apr 2023 15:28:12 +0545 Subject: [PATCH] removed steps related to occ commands --- .../expected-failures-API-on-OCIS-storage.md | 96 +++++------ .../bootstrap/AppConfigurationContext.php | 16 -- .../acceptSharesToSharesFolder.feature | 3 +- .../shareAccessByID.feature | 4 - .../createPublicLinkShare.feature | 1 - .../uploadToPublicLinkShare.feature | 4 - .../reShareDisabled.feature | 1 - .../reShareWithExpiryDate.feature | 161 +++++++----------- .../features/coreApiSharees/sharees.feature | 2 - .../deleteFileFolder.feature | 3 - .../moveFileFolder.feature | 6 - .../copyFileFolder.feature | 2 - .../createFolder.feature | 1 - .../upload.feature | 1 - 14 files changed, 111 insertions(+), 190 deletions(-) diff --git a/tests/acceptance/expected-failures-API-on-OCIS-storage.md b/tests/acceptance/expected-failures-API-on-OCIS-storage.md index b343d71ee1e..03e1cc76779 100644 --- a/tests/acceptance/expected-failures-API-on-OCIS-storage.md +++ b/tests/acceptance/expected-failures-API-on-OCIS-storage.md @@ -157,16 +157,16 @@ File and sync features in a shared scenario #### [ocs sharing api always returns an empty exact list while searching for a sharee](https://github.com/owncloud/ocis/issues/4265) +- [coreApiSharees/sharees.feature:97](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharees/sharees.feature#L97) - [coreApiSharees/sharees.feature:98](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharees/sharees.feature#L98) -- [coreApiSharees/sharees.feature:99](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharees/sharees.feature#L99) +- [coreApiSharees/sharees.feature:117](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharees/sharees.feature#L117) - [coreApiSharees/sharees.feature:118](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharees/sharees.feature#L118) -- [coreApiSharees/sharees.feature:119](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharees/sharees.feature#L119) +- [coreApiSharees/sharees.feature:137](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharees/sharees.feature#L137) - [coreApiSharees/sharees.feature:138](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharees/sharees.feature#L138) -- [coreApiSharees/sharees.feature:139](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharees/sharees.feature#L139) +- [coreApiSharees/sharees.feature:157](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharees/sharees.feature#L157) - [coreApiSharees/sharees.feature:158](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharees/sharees.feature#L158) -- [coreApiSharees/sharees.feature:159](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharees/sharees.feature#L159) +- [coreApiSharees/sharees.feature:177](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharees/sharees.feature#L177) - [coreApiSharees/sharees.feature:178](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharees/sharees.feature#L178) -- [coreApiSharees/sharees.feature:179](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharees/sharees.feature#L179) #### [accepting matching name shared resources from different users/groups sets no serial identifiers on the resource name for the receiver](https://github.com/owncloud/ocis/issues/4289) @@ -220,7 +220,7 @@ cannot share a folder with create permission - [coreApiShareOperationsToShares1/gettingShares.feature:188](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares1/gettingShares.feature#L188) #### [Public link enforce permissions](https://github.com/owncloud/ocis/issues/1269) -- [coreApiSharePublicLink1/createPublicLinkShare.feature:353](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharePublicLink1/createPublicLinkShare.feature#L353) +- [coreApiSharePublicLink1/createPublicLinkShare.feature:352](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharePublicLink1/createPublicLinkShare.feature#L352) #### [download previews of other users file](https://github.com/owncloud/ocis/issues/2071) @@ -242,7 +242,7 @@ cannot share a folder with create permission #### [Upload-only shares must not overwrite but create a separate file](https://github.com/owncloud/ocis/issues/1267) - [coreApiSharePublicLink3/uploadToPublicLinkShare.feature:10](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharePublicLink3/uploadToPublicLinkShare.feature#L10) -- [coreApiSharePublicLink3/uploadToPublicLinkShare.feature:131](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharePublicLink3/uploadToPublicLinkShare.feature#L131) +- [coreApiSharePublicLink3/uploadToPublicLinkShare.feature:127](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharePublicLink3/uploadToPublicLinkShare.feature#L127) #### [Set quota over settings](https://github.com/owncloud/ocis/issues/1290) @@ -295,45 +295,45 @@ cannot share a folder with create permission - [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:33](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L33) - [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:34](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L34) -- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:85](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L85) -- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:86](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L86) -- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:142](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L142) -- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:143](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L143) -- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:200](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L200) -- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:201](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L201) -- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:202](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L202) -- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:203](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L203) -- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:286](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L286) -- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:287](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L287) -- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:317](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L317) -- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:318](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L318) -- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:319](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L319) -- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:320](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L320) +- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:82](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L82) +- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:83](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L83) +- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:134](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L134) +- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:135](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L135) +- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:187](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L187) +- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:188](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L188) +- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:189](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L189) +- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:190](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L190) +- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:264](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L264) +- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:265](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L265) +- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:292](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L292) +- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:293](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L293) +- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:294](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L294) +- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:295](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L295) +- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:347](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L347) +- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:348](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L348) +- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:349](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L349) +- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:350](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L350) +- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:351](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L351) +- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:352](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L352) - [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:378](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L378) - [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:379](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L379) - [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:380](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L380) - [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:381](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L381) -- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:382](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L382) -- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:383](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L383) -- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:412](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L412) -- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:413](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L413) -- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:414](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L414) -- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:415](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L415) -- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:443](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L443) -- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:444](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L444) +- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:406](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L406) +- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:407](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L407) #### Expiration date of group shares - [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:59](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L59) - [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:60](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L60) -- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:115](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L115) -- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:116](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L116) -- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:171](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L171) -- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:172](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L172) -- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:231](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L231) -- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:232](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L232) -- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:233](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L233) -- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:234](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L234) +- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:109](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L109) +- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:110](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L110) +- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:161](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L161) +- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:162](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L162) +- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:215](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L215) +- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:216](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L216) +- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:217](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L217) +- [coreApiShareReshareToShares3/reShareWithExpiryDate.feature:218](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature#L218) #### [Cannot move folder/file from one received share to another](https://github.com/owncloud/ocis/issues/2442) @@ -400,7 +400,7 @@ API, search, favorites, config, capabilities, not existing endpoints, CORS and o - [coreApiAuthOcs/ocsGETAuth.feature:121](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthOcs/ocsGETAuth.feature#L121) - [coreApiAuthOcs/ocsPOSTAuth.feature:8](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthOcs/ocsPOSTAuth.feature#L8) - [coreApiAuthOcs/ocsPUTAuth.feature:8](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthOcs/ocsPUTAuth.feature#L8) -- [coreApiSharePublicLink1/createPublicLinkShare.feature:343](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharePublicLink1/createPublicLinkShare.feature#L343) +- [coreApiSharePublicLink1/createPublicLinkShare.feature:342](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharePublicLink1/createPublicLinkShare.feature#L342) #### [sending MKCOL requests to another user's webDav endpoints as normal user gives 404 instead of 403 ](https://github.com/owncloud/ocis/issues/3872) @@ -549,6 +549,7 @@ And other missing implementation of favorites #### [Trying to accept a share with invalid ID gives incorrect OCS and HTTP status](https://github.com/owncloud/ocis/issues/2111) +- [coreApiShareOperationsToShares2/shareAccessByID.feature:83](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L83) - [coreApiShareOperationsToShares2/shareAccessByID.feature:84](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L84) - [coreApiShareOperationsToShares2/shareAccessByID.feature:85](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L85) - [coreApiShareOperationsToShares2/shareAccessByID.feature:86](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L86) @@ -556,19 +557,18 @@ And other missing implementation of favorites - [coreApiShareOperationsToShares2/shareAccessByID.feature:88](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L88) - [coreApiShareOperationsToShares2/shareAccessByID.feature:89](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L89) - [coreApiShareOperationsToShares2/shareAccessByID.feature:90](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L90) -- [coreApiShareOperationsToShares2/shareAccessByID.feature:91](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L91) -- [coreApiShareOperationsToShares2/shareAccessByID.feature:103](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L103) -- [coreApiShareOperationsToShares2/shareAccessByID.feature:104](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L104) +- [coreApiShareOperationsToShares2/shareAccessByID.feature:101](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L101) +- [coreApiShareOperationsToShares2/shareAccessByID.feature:102](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L102) +- [coreApiShareOperationsToShares2/shareAccessByID.feature:132](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L132) +- [coreApiShareOperationsToShares2/shareAccessByID.feature:133](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L133) +- [coreApiShareOperationsToShares2/shareAccessByID.feature:134](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L134) - [coreApiShareOperationsToShares2/shareAccessByID.feature:135](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L135) - [coreApiShareOperationsToShares2/shareAccessByID.feature:136](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L136) - [coreApiShareOperationsToShares2/shareAccessByID.feature:137](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L137) - [coreApiShareOperationsToShares2/shareAccessByID.feature:138](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L138) - [coreApiShareOperationsToShares2/shareAccessByID.feature:139](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L139) -- [coreApiShareOperationsToShares2/shareAccessByID.feature:140](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L140) -- [coreApiShareOperationsToShares2/shareAccessByID.feature:141](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L141) -- [coreApiShareOperationsToShares2/shareAccessByID.feature:142](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L142) -- [coreApiShareOperationsToShares2/shareAccessByID.feature:154](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L154) -- [coreApiShareOperationsToShares2/shareAccessByID.feature:155](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L155) +- [coreApiShareOperationsToShares2/shareAccessByID.feature:150](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L150) +- [coreApiShareOperationsToShares2/shareAccessByID.feature:151](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L151) #### [Shares to deleted group listed in the response](https://github.com/owncloud/ocis/issues/2441) @@ -628,8 +628,8 @@ Not everything needs to be implemented for ocis. While the oc10 testsuite covers - [coreApiShareManagementToShares/acceptShares.feature:226](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementToShares/acceptShares.feature#L226) - [coreApiShareManagementToShares/acceptShares.feature:260](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementToShares/acceptShares.feature#L260) - [coreApiShareManagementToShares/acceptShares.feature:480](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementToShares/acceptShares.feature#L480) -- [coreApiShareOperationsToShares2/shareAccessByID.feature:122](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L122) -- [coreApiShareOperationsToShares2/shareAccessByID.feature:123](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L123) +- [coreApiShareOperationsToShares2/shareAccessByID.feature:120](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L120) +- [coreApiShareOperationsToShares2/shareAccessByID.feature:121](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L121) - [coreApiShareManagementBasicToShares/deleteShareFromShares.feature:176](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/deleteShareFromShares.feature#L176) - [coreApiShareManagementBasicToShares/deleteShareFromShares.feature:177](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/deleteShareFromShares.feature#L177) - [coreApiShareManagementBasicToShares/deleteShareFromShares.feature:178](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/deleteShareFromShares.feature#L178) diff --git a/tests/acceptance/features/bootstrap/AppConfigurationContext.php b/tests/acceptance/features/bootstrap/AppConfigurationContext.php index 580e3524427..586ae57e2fb 100644 --- a/tests/acceptance/features/bootstrap/AppConfigurationContext.php +++ b/tests/acceptance/features/bootstrap/AppConfigurationContext.php @@ -60,22 +60,6 @@ public function adminSetsServerParameterToUsingAPI( $this->modifyAppConfig($app, $parameter, $value); } - /** - * @Given /^parameter "([^"]*)" of app "([^"]*)" has been set to ((?:'[^']*')|(?:"[^"]*"))$/ - * - * @param string $parameter - * @param string $app - * @param string $value - * - * @return void - * @throws Exception - */ - public function serverParameterHasBeenSetTo(string $parameter, string $app, string $value):void { - // The capturing group of the regex always includes the quotes at each - // end of the captured string, so trim them. - return; - } - /** * @Then the capabilities setting of :capabilitiesApp path :capabilitiesPath should be :expectedValue * @Given the capabilities setting of :capabilitiesApp path :capabilitiesPath has been confirmed to be :expectedValue diff --git a/tests/acceptance/features/coreApiShareManagementToShares/acceptSharesToSharesFolder.feature b/tests/acceptance/features/coreApiShareManagementToShares/acceptSharesToSharesFolder.feature index 488e262c08d..e5aa3db77d9 100644 --- a/tests/acceptance/features/coreApiShareManagementToShares/acceptSharesToSharesFolder.feature +++ b/tests/acceptance/features/coreApiShareManagementToShares/acceptSharesToSharesFolder.feature @@ -5,8 +5,7 @@ Feature: accept/decline shares coming from internal users to the Shares folder So that I can keep my file system clean Background: - Given parameter "shareapi_auto_accept_share" of app "core" has been set to "no" - And using OCS API version "1" + Given using OCS API version "1" And using new DAV path And these users have been created with default attributes and without skeleton files: | username | diff --git a/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature b/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature index aea0625a890..8db2c2413d2 100644 --- a/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature +++ b/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature @@ -73,7 +73,6 @@ Feature: share access by ID Scenario Outline: accept a share using the invalid share Id - Given parameter "shareapi_auto_accept_share" of app "core" has been set to "yes" And using OCS API version "" When user "Brian" accepts share with ID "" using the sharing API Then the OCS status code should be "404" @@ -92,7 +91,6 @@ Feature: share access by ID Scenario Outline: accept a share using empty share Id - Given parameter "shareapi_auto_accept_share" of app "core" has been set to "yes" And using OCS API version "" When user "Brian" accepts share with ID "" using the sharing API Then the OCS status code should be "" @@ -124,7 +122,6 @@ Feature: share access by ID Scenario Outline: decline a share using a invalid share Id - Given parameter "shareapi_auto_accept_share" of app "core" has been set to "yes" And using OCS API version "" When user "Brian" declines share with ID "" using the sharing API Then the OCS status code should be "404" @@ -143,7 +140,6 @@ Feature: share access by ID Scenario Outline: decline a share using empty share Id - Given parameter "shareapi_auto_accept_share" of app "core" has been set to "yes" And using OCS API version "" When user "Brian" declines share with ID "" using the sharing API Then the OCS status code should be "" diff --git a/tests/acceptance/features/coreApiSharePublicLink1/createPublicLinkShare.feature b/tests/acceptance/features/coreApiSharePublicLink1/createPublicLinkShare.feature index 1652046388e..a55f048b46c 100644 --- a/tests/acceptance/features/coreApiSharePublicLink1/createPublicLinkShare.feature +++ b/tests/acceptance/features/coreApiSharePublicLink1/createPublicLinkShare.feature @@ -216,7 +216,6 @@ Feature: create a public link share Scenario Outline: Creating a link share with no specified permissions defaults to read permissions when public upload is disabled globally and accessing using the public WebDAV API Given using OCS API version "" - And parameter "shareapi_allow_public_upload" of app "core" has been set to "no" And user "Alice" has created folder "/afolder" When user "Alice" creates a public link share using the sharing API with settings | path | /afolder | diff --git a/tests/acceptance/features/coreApiSharePublicLink3/uploadToPublicLinkShare.feature b/tests/acceptance/features/coreApiSharePublicLink3/uploadToPublicLinkShare.feature index 91ac668d3dd..54ce82aa68d 100644 --- a/tests/acceptance/features/coreApiSharePublicLink3/uploadToPublicLinkShare.feature +++ b/tests/acceptance/features/coreApiSharePublicLink3/uploadToPublicLinkShare.feature @@ -100,10 +100,8 @@ Feature: upload to a public link share @issue-1328 Scenario: Uploading file to a public shared folder does not work when allow public uploads has been disabled before sharing and again enabled after sharing the folder with public API - Given parameter "shareapi_allow_public_upload" of app "core" has been set to "no" And user "Alice" has created a public link share with settings | path | FOLDER | - And parameter "shareapi_allow_public_upload" of app "core" has been set to "yes" When the public uploads file "test.txt" with content "test-file" using the new public WebDAV API And the HTTP status code should be "403" @@ -112,8 +110,6 @@ Feature: upload to a public link share Given user "Alice" has created a public link share with settings | path | FOLDER | | permissions | create | - And parameter "shareapi_allow_public_upload" of app "core" has been set to "no" - And parameter "shareapi_allow_public_upload" of app "core" has been set to "yes" When the public uploads file "test.txt" with content "test-file" using the new public WebDAV API Then the HTTP status code should be "201" And the content of file "/FOLDER/test.txt" for user "Alice" should be "test-file" diff --git a/tests/acceptance/features/coreApiShareReshareToShares2/reShareDisabled.feature b/tests/acceptance/features/coreApiShareReshareToShares2/reShareDisabled.feature index a9781f79a9f..9dd7f653b00 100644 --- a/tests/acceptance/features/coreApiShareReshareToShares2/reShareDisabled.feature +++ b/tests/acceptance/features/coreApiShareReshareToShares2/reShareDisabled.feature @@ -12,7 +12,6 @@ Feature: resharing can be disabled Scenario Outline: ordinary sharing is allowed when allow resharing has been disabled Given using OCS API version "" - And parameter "shareapi_allow_resharing" of app "core" has been set to "no" When user "Alice" shares file "/textfile0.txt" with user "Brian" with permissions "share,update,read" using the sharing API Then the OCS status code should be "" And the HTTP status code should be "200" diff --git a/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature b/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature index 3c178d8c44e..a3dd8ae7711 100644 --- a/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature +++ b/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature @@ -62,9 +62,6 @@ Feature: resharing a resource with an expiration date Scenario Outline: resharing with user using the sharing API with expire days set and combinations of default/enforce expire date enabled Given using OCS API version "" - And parameter "shareapi_default_expire_date_user_share" of app "core" has been set to "" - And parameter "shareapi_enforce_expire_date_user_share" of app "core" has been set to "yes" - And parameter "shareapi_expire_after_n_days_user_share" of app "core" has been set to "30" And user "Carol" has been created with default attributes and without skeleton files And user "Alice" has shared file "/textfile0.txt" with user "Brian" with permissions "read,update,share" And user "Brian" has accepted share "/textfile0.txt" offered by user "Alice" @@ -81,18 +78,15 @@ Feature: resharing a resource with an expiration date And the response when user "Carol" gets the info of the last share should include | expiration | | Examples: - | ocs_api_version | default-expire-date | expected-expire-date | ocs_status_code | - | 1 | yes | +30 days | 100 | - | 2 | yes | +30 days | 200 | - | 1 | no | | 100 | - | 2 | no | | 200 | + | ocs_api_version | expected-expire-date | ocs_status_code | + | 1 | +30 days | 100 | + | 2 | +30 days | 200 | + | 1 | | 100 | + | 2 | | 200 | @issue-1289 Scenario Outline: resharing with group using the sharing API with expire days set and combinations of default/enforce expire date enabled Given using OCS API version "" - And parameter "shareapi_default_expire_date_group_share" of app "core" has been set to "" - And parameter "shareapi_enforce_expire_date_group_share" of app "core" has been set to "yes" - And parameter "shareapi_expire_after_n_days_group_share" of app "core" has been set to "30" And user "Carol" has been created with default attributes and without skeleton files And group "grp1" has been created And user "Carol" has been added to group "grp1" @@ -111,17 +105,15 @@ Feature: resharing a resource with an expiration date And the response when user "Carol" gets the info of the last share should include | expiration | | Examples: - | ocs_api_version | default-expire-date | expected-expire-date | ocs_status_code | - | 1 | yes | +30 days | 100 | - | 2 | yes | +30 days | 200 | - | 1 | no | | 100 | - | 2 | no | | 200 | + | ocs_api_version | expected-expire-date | ocs_status_code | + | 1 | +30 days | 100 | + | 2 | +30 days | 200 | + | 1 | | 100 | + | 2 | | 200 | Scenario Outline: resharing with user using the sharing API without expire days set and with combinations of default/enforce expire date enabled Given using OCS API version "" - And parameter "shareapi_default_expire_date_user_share" of app "core" has been set to "" - And parameter "shareapi_enforce_expire_date_user_share" of app "core" has been set to "yes" And user "Carol" has been created with default attributes and without skeleton files And user "Alice" has shared file "/textfile0.txt" with user "Brian" with permissions "read,update,share" And user "Brian" has accepted share "/textfile0.txt" offered by user "Alice" @@ -138,17 +130,15 @@ Feature: resharing a resource with an expiration date And the response when user "Carol" gets the info of the last share should include | expiration | | Examples: - | ocs_api_version | default-expire-date | expected-expire-date | ocs_status_code | - | 1 | yes | +7 days | 100 | - | 2 | yes | +7 days | 200 | - | 1 | no | | 100 | - | 2 | no | | 200 | + | ocs_api_version | expected-expire-date | ocs_status_code | + | 1 | +7 days | 100 | + | 2 | +7 days | 200 | + | 1 | | 100 | + | 2 | | 200 | @issue-1289 Scenario Outline: resharing with group using the sharing API without expire days set and with combinations of default/enforce expire date enabled Given using OCS API version "" - And parameter "shareapi_default_expire_date_group_share" of app "core" has been set to "" - And parameter "shareapi_enforce_expire_date_group_share" of app "core" has been set to "yes" And user "Carol" has been created with default attributes and without skeleton files And group "grp1" has been created And user "Carol" has been added to group "grp1" @@ -167,18 +157,15 @@ Feature: resharing a resource with an expiration date And the response when user "Carol" gets the info of the last share should include | expiration | | Examples: - | ocs_api_version | default-expire-date | expected-expire-date | ocs_status_code | - | 1 | yes | +7 days | 100 | - | 2 | yes | +7 days | 200 | - | 1 | no | | 100 | - | 2 | no | | 200 | + | ocs_api_version | expected-expire-date | ocs_status_code | + | 1 | +7 days | 100 | + | 2 | +7 days | 200 | + | 1 | | 100 | + | 2 | | 200 | Scenario Outline: resharing with user using the sharing API with expire days set and with combinations of default/enforce expire date enabled and specify expire date in share Given using OCS API version "" - And parameter "shareapi_default_expire_date_user_share" of app "core" has been set to "" - And parameter "shareapi_enforce_expire_date_user_share" of app "core" has been set to "yes" - And parameter "shareapi_expire_after_n_days_user_share" of app "core" has been set to "30" And user "Carol" has been created with default attributes and without skeleton files And user "Alice" has shared file "/textfile0.txt" with user "Brian" with permissions "read,update,share" And user "Brian" has accepted share "/textfile0.txt" offered by user "Alice" @@ -196,18 +183,15 @@ Feature: resharing a resource with an expiration date And the response when user "Carol" gets the info of the last share should include | expiration | +20 days | Examples: - | ocs_api_version | default-expire-date | ocs_status_code | - | 1 | yes | 100 | - | 2 | yes | 200 | - | 1 | no | 100 | - | 2 | no | 200 | + | ocs_api_version | ocs_status_code | + | 1 | 100 | + | 2 | 200 | + | 1 | 100 | + | 2 | 200 | @issue-1289 Scenario Outline: resharing with group using the sharing API with expire days set and with combinations of default/enforce expire date enabled and specify expire date in share Given using OCS API version "" - And parameter "shareapi_default_expire_date_group_share" of app "core" has been set to "" - And parameter "shareapi_enforce_expire_date_group_share" of app "core" has been set to "yes" - And parameter "shareapi_expire_after_n_days_group_share" of app "core" has been set to "30" And user "Carol" has been created with default attributes and without skeleton files And group "grp1" has been created And user "Carol" has been added to group "grp1" @@ -227,11 +211,11 @@ Feature: resharing a resource with an expiration date And the response when user "Carol" gets the info of the last share should include | expiration | +20 days | Examples: - | ocs_api_version | default-expire-date | ocs_status_code | - | 1 | yes | 100 | - | 2 | yes | 200 | - | 1 | no | 100 | - | 2 | no | 200 | + | ocs_api_version | ocs_status_code | + | 1 | 100 | + | 2 | 200 | + | 1 | 100 | + | 2 | 200 | Scenario Outline: Setting default expiry date and enforcement after the share is created @@ -241,9 +225,6 @@ Feature: resharing a resource with an expiration date And user "Brian" has accepted share "/textfile0.txt" offered by user "Alice" And user "Brian" has shared file "/Shares/textfile0.txt" with user "Carol" And user "Carol" has accepted share "/textfile0.txt" offered by user "Brian" - And parameter "shareapi_default_expire_date_user_share" of app "core" has been set to "" - And parameter "shareapi_enforce_expire_date_user_share" of app "core" has been set to "yes" - And parameter "shareapi_expire_after_n_days_user_share" of app "core" has been set to "4" When user "Brian" gets the info of the last share using the sharing API Then the HTTP status code should be "200" And the OCS status code should be "" @@ -252,18 +233,15 @@ Feature: resharing a resource with an expiration date And the response when user "Carol" gets the info of the last share should include | expiration | | Examples: - | ocs_api_version | default-expire-date | ocs_status_code | - | 1 | yes | 100 | - | 2 | yes | 200 | - | 1 | no | 100 | - | 2 | no | 200 | + | ocs_api_version | ocs_status_code | + | 1 | 100 | + | 2 | 200 | + | 1 | 100 | + | 2 | 200 | @issue-1289 Scenario Outline: resharing group share with user using the sharing API with default expire date set and with combinations of default/enforce expire date enabled Given using OCS API version "" - And parameter "shareapi_default_expire_date_user_share" of app "core" has been set to "" - And parameter "shareapi_enforce_expire_date_user_share" of app "core" has been set to "yes" - And parameter "shareapi_expire_after_n_days_user_share" of app "core" has been set to "30" And group "grp1" has been created And user "Carol" has been created with default attributes and without skeleton files And user "Brian" has been added to group "grp1" @@ -282,18 +260,15 @@ Feature: resharing a resource with an expiration date And the response when user "Carol" gets the info of the last share should include | expiration | | Examples: - | ocs_api_version | default-expire-date | expected-expire-date | ocs_status_code | - | 1 | yes | +30 days | 100 | - | 2 | yes | +30 days | 200 | - | 1 | no | | 100 | - | 2 | no | | 200 | + | ocs_api_version | expected-expire-date | ocs_status_code | + | 1 | +30 days | 100 | + | 2 | +30 days | 200 | + | 1 | | 100 | + | 2 | | 200 | @issue-1289 Scenario Outline: resharing group share with user using the sharing API with default expire date set and specifying expiration on share and with combinations of default/enforce expire date enabled Given using OCS API version "" - And parameter "shareapi_default_expire_date_user_share" of app "core" has been set to "" - And parameter "shareapi_enforce_expire_date_user_share" of app "core" has been set to "yes" - And parameter "shareapi_expire_after_n_days_user_share" of app "core" has been set to "30" And group "grp1" has been created And user "Carol" has been created with default attributes and without skeleton files And user "Brian" has been added to group "grp1" @@ -313,18 +288,15 @@ Feature: resharing a resource with an expiration date And the response when user "Carol" gets the info of the last share should include | expiration | +20 days | Examples: - | ocs_api_version | default-expire-date | ocs_status_code | - | 1 | yes | 100 | - | 2 | yes | 200 | - | 1 | no | 100 | - | 2 | no | 200 | + | ocs_api_version | ocs_status_code | + | 1 | 100 | + | 2 | 200 | + | 1 | 100 | + | 2 | 200 | Scenario Outline: resharing using the sharing API with default expire date set but not enforced Given using OCS API version "" - And parameter "shareapi_default_expire_date_user_share" of app "core" has been set to "" - And parameter "shareapi_enforce_expire_date_user_share" of app "core" has been set to "no" - And parameter "shareapi_expire_after_n_days_user_share" of app "core" has been set to "30" And user "Carol" has been created with default attributes and without skeleton files And user "Alice" has shared file "/textfile0.txt" with user "Brian" with permissions "read,update,share" And user "Brian" has accepted share "/textfile0.txt" offered by user "Alice" @@ -341,18 +313,15 @@ Feature: resharing a resource with an expiration date And the response when user "Carol" gets the info of the last share should include | expiration | | Examples: - | ocs_api_version | default-expire-date | ocs_status_code | - | 1 | yes | 100 | - | 2 | yes | 200 | - | 1 | no | 100 | - | 2 | no | 200 | + | ocs_api_version | ocs_status_code | + | 1 | 100 | + | 2 | 200 | + | 1 | 100 | + | 2 | 200 | Scenario Outline: reshare extends the received expiry date up to the default by default Given using OCS API version "" - And parameter "shareapi_default_expire_date_user_share" of app "core" has been set to "" - And parameter "shareapi_enforce_expire_date_user_share" of app "core" has been set to "" - And parameter "shareapi_expire_after_n_days_user_share" of app "core" has been set to "30" And user "Carol" has been created with default attributes and without skeleton files And user "Alice" has created a share with settings | path | textfile0.txt | @@ -374,20 +343,17 @@ Feature: resharing a resource with an expiration date And the response when user "Carol" gets the info of the last share should include | expiration | +20 | Examples: - | ocs_api_version | default-expire-date | enforce-expire-date | ocs_status_code | - | 1 | yes | yes | 100 | - | 2 | yes | yes | 200 | - | 1 | yes | no | 100 | - | 2 | yes | no | 200 | - | 1 | no | no | 100 | - | 2 | no | no | 200 | + | ocs_api_version | ocs_status_code | + | 1 | 100 | + | 2 | 200 | + | 1 | 100 | + | 2 | 200 | + | 1 | 100 | + | 2 | 200 | Scenario Outline: reshare cannot extend the received expiry date further into the future Given using OCS API version "" - And parameter "shareapi_default_expire_date_user_share" of app "core" has been set to "" - And parameter "shareapi_enforce_expire_date_user_share" of app "core" has been set to "no" - And parameter "shareapi_expire_after_n_days_user_share" of app "core" has been set to "30" And user "Carol" has been created with default attributes and without skeleton files And user "Alice" has created a share with settings | path | textfile0.txt | @@ -408,18 +374,15 @@ Feature: resharing a resource with an expiration date And the information of the last share of user "Alice" should include | expiration | +20 days | Examples: - | ocs_api_version | default-expire-date | - | 1 | yes | - | 2 | yes | - | 1 | no | - | 2 | no | + | ocs_api_version | + | 1 | + | 2 | + | 1 | + | 2 | Scenario Outline: reshare cannot extend the received expiry date past the default when the default is enforced Given using OCS API version "" - And parameter "shareapi_default_expire_date_user_share" of app "core" has been set to "yes" - And parameter "shareapi_enforce_expire_date_user_share" of app "core" has been set to "yes" - And parameter "shareapi_expire_after_n_days_user_share" of app "core" has been set to "30" And user "Carol" has been created with default attributes and without skeleton files And user "Alice" has created a share with settings | path | textfile0.txt | diff --git a/tests/acceptance/features/coreApiSharees/sharees.feature b/tests/acceptance/features/coreApiSharees/sharees.feature index 46b7a696a0f..943c360d77a 100644 --- a/tests/acceptance/features/coreApiSharees/sharees.feature +++ b/tests/acceptance/features/coreApiSharees/sharees.feature @@ -57,7 +57,6 @@ Feature: sharees @skipOnLDAP Scenario Outline: Search only with group members - allowed Given using OCS API version "" - And parameter "shareapi_only_share_with_group_members" of app "core" has been set to "yes" And user "Sharee1" has been added to group "ShareeGroup2" When user "Alice" gets the sharees using the sharing API with parameters | search | sharee | @@ -204,7 +203,6 @@ Feature: sharees | username | displayname | | another | Another | And user "Another" has been added to group "ShareeGroup2" - And parameter "shareapi_share_dialog_user_enumeration_group_members" of app "core" has been set to "yes" When user "Alice" gets the sharees using the sharing API with parameters | search | anot | | itemType | file | diff --git a/tests/acceptance/features/coreApiWebdavEtagPropagation1/deleteFileFolder.feature b/tests/acceptance/features/coreApiWebdavEtagPropagation1/deleteFileFolder.feature index c3aed4fbc38..f5a6bcb5e32 100644 --- a/tests/acceptance/features/coreApiWebdavEtagPropagation1/deleteFileFolder.feature +++ b/tests/acceptance/features/coreApiWebdavEtagPropagation1/deleteFileFolder.feature @@ -3,7 +3,6 @@ Feature: propagation of etags when deleting a file or folder Background: Given user "Alice" has been created with default attributes and without skeleton files - And parameter "shareapi_auto_accept_share" of app "core" has been set to "no" And user "Alice" has created folder "/upload" @@ -147,7 +146,6 @@ Feature: propagation of etags when deleting a file or folder @issue-product-280 Scenario Outline: as share receiver deleting a folder changes the etags of all parents for all collaborators Given user "Brian" has been created with default attributes and without skeleton files - And parameter "shareapi_auto_accept_share" of app "core" has been set to "no" And using DAV path And user "Alice" has created folder "/upload/sub" And user "Alice" has created folder "/upload/sub/toDelete" @@ -179,7 +177,6 @@ Feature: propagation of etags when deleting a file or folder @issue-product-280 Scenario Outline: as sharer deleting a folder changes the etags of all parents for all collaborators Given user "Brian" has been created with default attributes and without skeleton files - And parameter "shareapi_auto_accept_share" of app "core" has been set to "no" And using DAV path And user "Alice" has created folder "/upload/sub" And user "Alice" has created folder "/upload/sub/toDelete" diff --git a/tests/acceptance/features/coreApiWebdavEtagPropagation1/moveFileFolder.feature b/tests/acceptance/features/coreApiWebdavEtagPropagation1/moveFileFolder.feature index 2da76c5ae8e..80393c97f0f 100644 --- a/tests/acceptance/features/coreApiWebdavEtagPropagation1/moveFileFolder.feature +++ b/tests/acceptance/features/coreApiWebdavEtagPropagation1/moveFileFolder.feature @@ -157,7 +157,6 @@ Feature: propagation of etags when moving files or folders Scenario Outline: as share receiver renaming a file inside a folder changes its etag for all collaborators Given user "Brian" has been created with default attributes and without skeleton files - And parameter "shareapi_auto_accept_share" of app "core" has been set to "no" And using DAV path And user "Alice" has created folder "/upload" And user "Alice" has uploaded file with content "uploaded content" to "/upload/file.txt" @@ -185,7 +184,6 @@ Feature: propagation of etags when moving files or folders Scenario Outline: as sharer renaming a file inside a folder changes its etag for all collaborators Given user "Brian" has been created with default attributes and without skeleton files - And parameter "shareapi_auto_accept_share" of app "core" has been set to "no" And using DAV path And user "Alice" has created folder "/upload" And user "Alice" has uploaded file with content "uploaded content" to "/upload/file.txt" @@ -213,7 +211,6 @@ Feature: propagation of etags when moving files or folders @issue-product-280 Scenario Outline: as sharer moving a file from one folder to an other changes the etags of both folders for all collaborators Given user "Brian" has been created with default attributes and without skeleton files - And parameter "shareapi_auto_accept_share" of app "core" has been set to "no" And using DAV path And user "Alice" has created folder "/src" And user "Alice" has created folder "/dst" @@ -248,7 +245,6 @@ Feature: propagation of etags when moving files or folders Scenario Outline: as share receiver moving a file from one folder to an other changes the etags of both folders for all collaborators Given user "Brian" has been created with default attributes and without skeleton files - And parameter "shareapi_auto_accept_share" of app "core" has been set to "no" And using DAV path And user "Alice" has created folder "/src" And user "Alice" has created folder "/dst" @@ -283,7 +279,6 @@ Feature: propagation of etags when moving files or folders @issue-product-280 Scenario Outline: as sharer moving a folder from one folder to an other changes the etags of both folders for all collaborators Given user "Brian" has been created with default attributes and without skeleton files - And parameter "shareapi_auto_accept_share" of app "core" has been set to "no" And using DAV path And user "Alice" has created folder "/src" And user "Alice" has created folder "/dst" @@ -318,7 +313,6 @@ Feature: propagation of etags when moving files or folders Scenario Outline: as share receiver moving a folder from one folder to an other changes the etags of both folders for all collaborators Given user "Brian" has been created with default attributes and without skeleton files - And parameter "shareapi_auto_accept_share" of app "core" has been set to "no" And using DAV path And user "Alice" has created folder "/src" And user "Alice" has created folder "/dst" diff --git a/tests/acceptance/features/coreApiWebdavEtagPropagation2/copyFileFolder.feature b/tests/acceptance/features/coreApiWebdavEtagPropagation2/copyFileFolder.feature index f3cffcc19e8..3117b0cbab7 100644 --- a/tests/acceptance/features/coreApiWebdavEtagPropagation2/copyFileFolder.feature +++ b/tests/acceptance/features/coreApiWebdavEtagPropagation2/copyFileFolder.feature @@ -154,7 +154,6 @@ Feature: propagation of etags when copying files or folders Scenario Outline: as share receiver copying a file inside a folder changes its etag for all collaborators Given user "Brian" has been created with default attributes and without skeleton files - And parameter "shareapi_auto_accept_share" of app "core" has been set to "no" And using DAV path And user "Alice" has created folder "/upload" And user "Alice" has uploaded file with content "uploaded content" to "/upload/file.txt" @@ -192,7 +191,6 @@ Feature: propagation of etags when copying files or folders @issue-product-280 Scenario Outline: as sharer copying a file inside a folder changes its etag for all collaborators Given user "Brian" has been created with default attributes and without skeleton files - And parameter "shareapi_auto_accept_share" of app "core" has been set to "no" And using DAV path And user "Alice" has created folder "/upload" And user "Alice" has uploaded file with content "uploaded content" to "/upload/file.txt" diff --git a/tests/acceptance/features/coreApiWebdavEtagPropagation2/createFolder.feature b/tests/acceptance/features/coreApiWebdavEtagPropagation2/createFolder.feature index a0daf67f5cc..3d8cfe28496 100644 --- a/tests/acceptance/features/coreApiWebdavEtagPropagation2/createFolder.feature +++ b/tests/acceptance/features/coreApiWebdavEtagPropagation2/createFolder.feature @@ -3,7 +3,6 @@ Feature: propagation of etags when creating folders Background: Given user "Alice" has been created with default attributes and without skeleton files - And parameter "shareapi_auto_accept_share" of app "core" has been set to "no" @issue-product-280 Scenario Outline: creating a folder inside a folder changes its etag diff --git a/tests/acceptance/features/coreApiWebdavEtagPropagation2/upload.feature b/tests/acceptance/features/coreApiWebdavEtagPropagation2/upload.feature index 561d3f11e9a..2f32e746627 100644 --- a/tests/acceptance/features/coreApiWebdavEtagPropagation2/upload.feature +++ b/tests/acceptance/features/coreApiWebdavEtagPropagation2/upload.feature @@ -3,7 +3,6 @@ Feature: propagation of etags when uploading data Background: Given user "Alice" has been created with default attributes and without skeleton files - And parameter "shareapi_auto_accept_share" of app "core" has been set to "no" And user "Alice" has created folder "/upload" @issue-product-280