diff --git a/tests/acceptance/expected-failures-API-on-OCIS-storage.md b/tests/acceptance/expected-failures-API-on-OCIS-storage.md index 7addf9c8b8b..6c526e78d04 100644 --- a/tests/acceptance/expected-failures-API-on-OCIS-storage.md +++ b/tests/acceptance/expected-failures-API-on-OCIS-storage.md @@ -320,14 +320,6 @@ cannot share a folder with create permission - [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: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) @@ -386,67 +378,67 @@ API, search, favorites, config, capabilities, not existing endpoints, CORS and o #### [Ability to return error messages in Webdav response bodies](https://github.com/owncloud/ocis/issues/1293) -- [coreApiAuthOcs/ocsDELETEAuth.feature:8](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthOcs/ocsDELETEAuth.feature#L8) -- [coreApiAuthOcs/ocsGETAuth.feature:8](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthOcs/ocsGETAuth.feature#L8) -- [coreApiAuthOcs/ocsGETAuth.feature:42](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthOcs/ocsGETAuth.feature#L42) -- [coreApiAuthOcs/ocsGETAuth.feature:73](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthOcs/ocsGETAuth.feature#L73) -- [coreApiAuthOcs/ocsGETAuth.feature:104](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthOcs/ocsGETAuth.feature#L104) -- [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) +- [coreApiAuthOcs/ocsDELETEAuth.feature:11](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthOcs/ocsDELETEAuth.feature#L11) +- [coreApiAuthOcs/ocsGETAuth.feature:11](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthOcs/ocsGETAuth.feature#L11) +- [coreApiAuthOcs/ocsGETAuth.feature:45](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthOcs/ocsGETAuth.feature#L45) +- [coreApiAuthOcs/ocsGETAuth.feature:76](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthOcs/ocsGETAuth.feature#L76) +- [coreApiAuthOcs/ocsGETAuth.feature:107](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthOcs/ocsGETAuth.feature#L107) +- [coreApiAuthOcs/ocsGETAuth.feature:124](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthOcs/ocsGETAuth.feature#L124) +- [coreApiAuthOcs/ocsPOSTAuth.feature:11](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthOcs/ocsPOSTAuth.feature#L11) +- [coreApiAuthOcs/ocsPUTAuth.feature:11](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthOcs/ocsPUTAuth.feature#L11) - [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) _ocdav: api compatibility, return correct status code_ -- [coreApiAuthWebDav/webDavMKCOLAuth.feature:52](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavMKCOLAuth.feature#L52) -- [coreApiAuthWebDav/webDavMKCOLAuth.feature:63](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavMKCOLAuth.feature#L63) +- [coreApiAuthWebDav/webDavMKCOLAuth.feature:55](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavMKCOLAuth.feature#L55) +- [coreApiAuthWebDav/webDavMKCOLAuth.feature:66](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavMKCOLAuth.feature#L66) #### [trying to lock file of another user gives http 200](https://github.com/owncloud/ocis/issues/2176) -- [coreApiAuthWebDav/webDavLOCKAuth.feature:56](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavLOCKAuth.feature#L56) -- [coreApiAuthWebDav/webDavLOCKAuth.feature:68](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavLOCKAuth.feature#L68) +- [coreApiAuthWebDav/webDavLOCKAuth.feature:59](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavLOCKAuth.feature#L59) +- [coreApiAuthWebDav/webDavLOCKAuth.feature:71](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavLOCKAuth.feature#L71) #### [send (MOVE,COPY) requests to another user's webDav endpoints as normal user gives 400 instead of 403](https://github.com/owncloud/ocis/issues/3882) _ocdav: api compatibility, return correct status code_ -- [coreApiAuthWebDav/webDavMOVEAuth.feature:55](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavMOVEAuth.feature#L55) -- [coreApiAuthWebDav/webDavMOVEAuth.feature:64](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavMOVEAuth.feature#L64) -- [coreApiAuthWebDav/webDavCOPYAuth.feature:59](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavCOPYAuth.feature#L59) -- [coreApiAuthWebDav/webDavCOPYAuth.feature:68](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavCOPYAuth.feature#L68) +- [coreApiAuthWebDav/webDavMOVEAuth.feature:58](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavMOVEAuth.feature#L58) +- [coreApiAuthWebDav/webDavMOVEAuth.feature:67](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavMOVEAuth.feature#L67) +- [coreApiAuthWebDav/webDavCOPYAuth.feature:58](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavCOPYAuth.feature#L58) +- [coreApiAuthWebDav/webDavCOPYAuth.feature:67](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavCOPYAuth.feature#L67) #### [send POST requests to another user's webDav endpoints as normal user](https://github.com/owncloud/ocis/issues/1287) _ocdav: api compatibility, return correct status code_ -- [coreApiAuthWebDav/webDavPOSTAuth.feature:56](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavPOSTAuth.feature#L56) -- [coreApiAuthWebDav/webDavPOSTAuth.feature:65](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavPOSTAuth.feature#L65) +- [coreApiAuthWebDav/webDavPOSTAuth.feature:59](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavPOSTAuth.feature#L59) +- [coreApiAuthWebDav/webDavPOSTAuth.feature:68](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavPOSTAuth.feature#L68) #### Another users space literally does not exist because it is not listed as a space for him, 404 seems correct, expects 403 -- [coreApiAuthWebDav/webDavPUTAuth.feature:56](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavPUTAuth.feature#L56) -- [coreApiAuthWebDav/webDavPUTAuth.feature:68](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavPUTAuth.feature#L68) +- [coreApiAuthWebDav/webDavPUTAuth.feature:59](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavPUTAuth.feature#L59) +- [coreApiAuthWebDav/webDavPUTAuth.feature:71](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavPUTAuth.feature#L71) #### [Using double slash in URL to access a folder gives 501 and other status codes](https://github.com/owncloud/ocis/issues/1667) -- [coreApiAuthWebDav/webDavSpecialURLs.feature:13](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavSpecialURLs.feature#L13) -- [coreApiAuthWebDav/webDavSpecialURLs.feature:24](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavSpecialURLs.feature#L24) -- [coreApiAuthWebDav/webDavSpecialURLs.feature:55](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavSpecialURLs.feature#L55) -- [coreApiAuthWebDav/webDavSpecialURLs.feature:66](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavSpecialURLs.feature#L66) -- [coreApiAuthWebDav/webDavSpecialURLs.feature:76](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavSpecialURLs.feature#L76) -- [coreApiAuthWebDav/webDavSpecialURLs.feature:88](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavSpecialURLs.feature#L88) -- [coreApiAuthWebDav/webDavSpecialURLs.feature:100](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavSpecialURLs.feature#L100) -- [coreApiAuthWebDav/webDavSpecialURLs.feature:111](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavSpecialURLs.feature#L111) -- [coreApiAuthWebDav/webDavSpecialURLs.feature:121](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavSpecialURLs.feature#L121) -- [coreApiAuthWebDav/webDavSpecialURLs.feature:132](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavSpecialURLs.feature#L132) -- [coreApiAuthWebDav/webDavSpecialURLs.feature:142](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavSpecialURLs.feature#L142) -- [coreApiAuthWebDav/webDavSpecialURLs.feature:153](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavSpecialURLs.feature#L153) -- [coreApiAuthWebDav/webDavSpecialURLs.feature:163](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavSpecialURLs.feature#L163) -- [coreApiAuthWebDav/webDavSpecialURLs.feature:174](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavSpecialURLs.feature#L174) -- [coreApiAuthWebDav/webDavSpecialURLs.feature:184](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavSpecialURLs.feature#L184) -- [coreApiAuthWebDav/webDavSpecialURLs.feature:195](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavSpecialURLs.feature#L195) +- [coreApiAuthWebDav/webDavSpecialURLs.feature:16](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavSpecialURLs.feature#L16) +- [coreApiAuthWebDav/webDavSpecialURLs.feature:27](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavSpecialURLs.feature#L27) +- [coreApiAuthWebDav/webDavSpecialURLs.feature:58](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavSpecialURLs.feature#L58) +- [coreApiAuthWebDav/webDavSpecialURLs.feature:69](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavSpecialURLs.feature#L69) +- [coreApiAuthWebDav/webDavSpecialURLs.feature:79](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavSpecialURLs.feature#L79) +- [coreApiAuthWebDav/webDavSpecialURLs.feature:91](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavSpecialURLs.feature#L91) +- [coreApiAuthWebDav/webDavSpecialURLs.feature:103](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavSpecialURLs.feature#L103) +- [coreApiAuthWebDav/webDavSpecialURLs.feature:114](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavSpecialURLs.feature#L114) +- [coreApiAuthWebDav/webDavSpecialURLs.feature:124](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavSpecialURLs.feature#L124) +- [coreApiAuthWebDav/webDavSpecialURLs.feature:135](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavSpecialURLs.feature#L135) +- [coreApiAuthWebDav/webDavSpecialURLs.feature:144](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavSpecialURLs.feature#L144) +- [coreApiAuthWebDav/webDavSpecialURLs.feature:156](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavSpecialURLs.feature#L156) +- [coreApiAuthWebDav/webDavSpecialURLs.feature:166](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavSpecialURLs.feature#L166) +- [coreApiAuthWebDav/webDavSpecialURLs.feature:177](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavSpecialURLs.feature#L177) +- [coreApiAuthWebDav/webDavSpecialURLs.feature:187](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavSpecialURLs.feature#L187) +- [coreApiAuthWebDav/webDavSpecialURLs.feature:198](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthWebDav/webDavSpecialURLs.feature#L198) #### [Difference in response content of status.php and default capabilities](https://github.com/owncloud/ocis/issues/1286) @@ -489,7 +481,7 @@ And other missing implementation of favorites #### [Request to edit non-existing user by authorized admin gets unauthorized in http response](https://github.com/owncloud/core/issues/38423) -- [coreApiAuthOcs/ocsPUTAuth.feature:24](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthOcs/ocsPUTAuth.feature#L24) +- [coreApiAuthOcs/ocsPUTAuth.feature:27](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiAuthOcs/ocsPUTAuth.feature#L27) #### [Sharing a same file twice to the same group](https://github.com/owncloud/ocis/issues/1710) @@ -543,6 +535,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) @@ -550,9 +543,8 @@ 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:108](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L108) +- [coreApiShareOperationsToShares2/shareAccessByID.feature:109](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L109) - [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) diff --git a/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature b/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature index 445aa988fe2..b181bc4b347 100644 --- a/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature +++ b/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature @@ -73,7 +73,7 @@ Feature: share access by ID Scenario Outline: accept a share using the invalid share Id - And using OCS API version "" + Given using OCS API version "" When user "Brian" accepts share with ID "" using the sharing API Then the OCS status code should be "404" And the HTTP status code should be "" @@ -90,18 +90,6 @@ Feature: share access by ID | 2 | 0 | 404 | - Scenario Outline: accept a share using empty share Id - And using OCS API version "" - When user "Brian" accepts share with ID "" using the sharing API - Then the OCS status code should be "" - And the HTTP status code should be "" - And the API should not return any data - Examples: - | ocs_api_version | http_status_code | ocs_status_code | - | 1 | 200 | 999 | - | 2 | 500 | 500 | - - Scenario Outline: decline a share using the share Id Given using OCS API version "" And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" @@ -119,33 +107,3 @@ Feature: share access by ID | ocs_api_version | ocs_status_code | declined_share_path | | 1 | 100 | /Shares/textfile0.txt | | 2 | 200 | /Shares/textfile0.txt | - - - Scenario Outline: decline a share using a invalid share Id - And using OCS API version "" - When user "Brian" declines share with ID "" using the sharing API - Then the OCS status code should be "404" - And the HTTP status code should be "" - And the API should not return any data - Examples: - | ocs_api_version | share_id | http_status_code | - | 1 | 2333311 | 200 | - | 2 | 2333311 | 404 | - | 1 | helloshare | 200 | - | 2 | helloshare | 404 | - | 1 | $#@r3 | 200 | - | 2 | $#@r3 | 404 | - | 1 | 0 | 200 | - | 2 | 0 | 404 | - - - Scenario Outline: decline a share using empty share Id - And using OCS API version "" - When user "Brian" declines share with ID "" using the sharing API - Then the OCS status code should be "" - And the HTTP status code should be "" - And the API should not return any data - Examples: - | ocs_api_version | http_status_code | ocs_status_code | - | 1 | 200 | 999 | - | 2 | 500 | 500 | diff --git a/tests/acceptance/features/coreApiSharePublicLink3/uploadToPublicLinkShare.feature b/tests/acceptance/features/coreApiSharePublicLink3/uploadToPublicLinkShare.feature index 388383490c3..50af20be026 100644 --- a/tests/acceptance/features/coreApiSharePublicLink3/uploadToPublicLinkShare.feature +++ b/tests/acceptance/features/coreApiSharePublicLink3/uploadToPublicLinkShare.feature @@ -98,22 +98,6 @@ Feature: upload to a public link share When the public uploads file "test.txt" with content "test-file" using the new public WebDAV API Then the HTTP status code should be "507" - @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 - And user "Alice" has created a public link share with settings - | path | FOLDER | - 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" - - @issue-1328 - Scenario: Uploading file to a public shared folder works when allow public uploads has been disabled and again enabled after sharing the folder with public API - Given user "Alice" has created a public link share with settings - | path | FOLDER | - | permissions | create | - 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" - @smokeTest Scenario: Uploading to a public upload-write and no edit and no overwrite share with public API Given user "Alice" has created a public link share with settings diff --git a/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature b/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature index af07ad02461..f0b366bc4de 100644 --- a/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature +++ b/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature @@ -60,241 +60,6 @@ Feature: resharing a resource with an expiration date | 2 | 200 | - 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 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" - When user "Brian" creates a share using the sharing API with settings - | path | /Shares/textfile0.txt | - | shareType | user | - | permissions | change | - | shareWith | Carol | - Then the HTTP status code should be "200" - And the OCS status code should be "" - And user "Carol" should be able to accept pending share "/textfile0.txt" offered by user "Brian" - And the information of the last share of user "Brian" should include - | expiration | | - And the response when user "Carol" gets the info of the last share should include - | expiration | | - Examples: - | 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 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" - 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" - When user "Brian" creates a share using the sharing API with settings - | path | /Shares/textfile0.txt | - | shareType | group | - | permissions | change | - | shareWith | grp1 | - Then the HTTP status code should be "200" - And the OCS status code should be "" - And user "Carol" should be able to accept pending share "/textfile0.txt" offered by user "Brian" - And the information of the last share of user "Brian" should include - | expiration | | - And the response when user "Carol" gets the info of the last share should include - | expiration | | - Examples: - | 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 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" - When user "Brian" creates a share using the sharing API with settings - | path | /Shares/textfile0.txt | - | shareType | user | - | permissions | change | - | shareWith | Carol | - Then the HTTP status code should be "200" - And the OCS status code should be "" - And user "Carol" should be able to accept pending share "/textfile0.txt" offered by user "Brian" - And the information of the last share of user "Brian" should include - | expiration | | - And the response when user "Carol" gets the info of the last share should include - | expiration | | - Examples: - | 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 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" - 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" - When user "Brian" creates a share using the sharing API with settings - | path | /Shares/textfile0.txt | - | shareType | group | - | permissions | change | - | shareWith | grp1 | - Then the HTTP status code should be "200" - And the OCS status code should be "" - And user "Carol" should be able to accept pending share "/textfile0.txt" offered by user "Brian" - And the information of the last share of user "Brian" should include - | expiration | | - And the response when user "Carol" gets the info of the last share should include - | expiration | | - Examples: - | 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 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" - When user "Brian" creates a share using the sharing API with settings - | path | /Shares/textfile0.txt | - | shareType | user | - | permissions | change | - | shareWith | Carol | - | expireDate | +20 days | - Then the HTTP status code should be "200" - And the OCS status code should be "" - And user "Carol" should be able to accept pending share "/textfile0.txt" offered by user "Brian" - And the information of the last share of user "Brian" should include - | expiration | +20 days | - And the response when user "Carol" gets the info of the last share should include - | expiration | +20 days | - Examples: - | 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 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" - 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" - When user "Brian" creates a share using the sharing API with settings - | path | /Shares/textfile0.txt | - | shareType | group | - | permissions | change | - | shareWith | grp1 | - | expireDate | +20 days | - Then the HTTP status code should be "200" - And the OCS status code should be "" - And user "Carol" should be able to accept pending share "/textfile0.txt" offered by user "Brian" - And the information of the last share of user "Brian" should include - | expiration | +20 days | - And the response when user "Carol" gets the info of the last share should include - | expiration | +20 days | - Examples: - | 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 - Given using OCS API version "" - 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" - And user "Brian" has shared file "/Shares/textfile0.txt" with user "Carol" - And user "Carol" has accepted share "/textfile0.txt" offered by user "Brian" - 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 "" - And the information of the last share of user "Brian" should include - | expiration | | - And the response when user "Carol" gets the info of the last share should include - | expiration | | - Examples: - | 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 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" - And user "Alice" has shared file "/textfile0.txt" with group "grp1" with permissions "read,update,share" - And user "Brian" has accepted share "/textfile0.txt" offered by user "Alice" - When user "Brian" creates a share using the sharing API with settings - | path | /Shares/textfile0.txt | - | shareType | user | - | permissions | change | - | shareWith | Carol | - Then the HTTP status code should be "200" - And the OCS status code should be "" - And user "Carol" should be able to accept pending share "/textfile0.txt" offered by user "Brian" - And the information of the last share of user "Brian" should include - | expiration | | - And the response when user "Carol" gets the info of the last share should include - | expiration | | - Examples: - | 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 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" - And user "Alice" has shared file "/textfile0.txt" with group "grp1" with permissions "read,update,share" - And user "Brian" has accepted share "/textfile0.txt" offered by user "Alice" - When user "Brian" creates a share using the sharing API with settings - | path | /Shares/textfile0.txt | - | shareType | user | - | permissions | change | - | shareWith | Carol | - | expireDate | +20 days | - Then the HTTP status code should be "200" - And the OCS status code should be "" - And user "Carol" should be able to accept pending share "/textfile0.txt" offered by user "Brian" - And the information of the last share of user "Brian" should include - | expiration | +20 days | - And the response when user "Carol" gets the info of the last share should include - | expiration | +20 days | - Examples: - | 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 user "Carol" has been created with default attributes and without skeleton files @@ -318,90 +83,3 @@ Feature: resharing a resource with an expiration date | 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 user "Carol" has been created with default attributes and without skeleton files - And user "Alice" has created a share with settings - | path | textfile0.txt | - | shareType | user | - | permissions | all | - | shareWith | Brian | - | expireDate | +20 days | - And user "Brian" has accepted share "/textfile0.txt" offered by user "Alice" - When user "Brian" creates a share using the sharing API with settings - | path | /Shares/textfile0.txt | - | shareType | user | - | permissions | change | - | shareWith | Carol | - Then the HTTP status code should be "200" - And the OCS status code should be "" - And user "Carol" should be able to accept pending share "/textfile0.txt" offered by user "Brian" - And the information of the last share of user "Alice" should include - | expiration | +20 days | - And the response when user "Carol" gets the info of the last share should include - | expiration | +20 | - Examples: - | 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 user "Carol" has been created with default attributes and without skeleton files - And user "Alice" has created a share with settings - | path | textfile0.txt | - | shareType | user | - | permissions | all | - | shareWith | Brian | - | expireDate | +20 days | - And user "Brian" has accepted share "/textfile0.txt" offered by user "Alice" - When user "Brian" creates a share using the sharing API with settings - | path | /Shares/textfile0.txt | - | shareType | user | - | permissions | change | - | shareWith | Carol | - | expireDate | +40 days | - #The action of changing the expiration date while resharing should be forbidden - Then the HTTP status code should be "403" - And the OCS status code should be "403" - And the information of the last share of user "Alice" should include - | expiration | +20 days | - Examples: - | 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 user "Carol" has been created with default attributes and without skeleton files - And user "Alice" has created a share with settings - | path | textfile0.txt | - | shareType | user | - | permissions | all | - | shareWith | Brian | - | expireDate | +20 days | - And user "Brian" has accepted share "/textfile0.txt" offered by user "Alice" - When user "Brian" creates a share using the sharing API with settings - | path | /Shares/textfile0.txt | - | shareType | user | - | permissions | change | - | shareWith | Carol | - | expireDate | +40 days | - Then the HTTP status code should be "403" - And the OCS status code should be "403" - And the information of the last share of user "Alice" should include - | expiration | +20 days | - Examples: - | ocs_api_version | - | 1 | - | 2 |