diff --git a/tests/acceptance/expected-failures-API-on-OCIS-storage.md b/tests/acceptance/expected-failures-API-on-OCIS-storage.md index 03e1cc76779..f5b9e1d9c9f 100644 --- a/tests/acceptance/expected-failures-API-on-OCIS-storage.md +++ b/tests/acceptance/expected-failures-API-on-OCIS-storage.md @@ -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:127](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharePublicLink3/uploadToPublicLinkShare.feature#L127) +- [coreApiSharePublicLink3/uploadToPublicLinkShare.feature:111](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiSharePublicLink3/uploadToPublicLinkShare.feature#L111) #### [Set quota over settings](https://github.com/owncloud/ocis/issues/1290) @@ -295,45 +295,11 @@ 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: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: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: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) @@ -547,30 +513,6 @@ And other missing implementation of favorites - [coreApiWebdavUploadTUS/optionsRequest.feature:89](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavUploadTUS/optionsRequest.feature#L89) - [coreApiWebdavUploadTUS/optionsRequest.feature:104](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavUploadTUS/optionsRequest.feature#L104) -#### [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) -- [coreApiShareOperationsToShares2/shareAccessByID.feature:87](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature#L87) -- [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: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: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) - [coreApiShareManagementBasicToShares/createShareToSharesFolder.feature:528](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature#L528) diff --git a/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature b/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature index 8db2c2413d2..d20358269a2 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 54ce82aa68d..d73630e2f28 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 a3dd8ae7711..102a387c789 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 |