diff --git a/.drone.star b/.drone.star index bae39f810..b461a3862 100644 --- a/.drone.star +++ b/.drone.star @@ -848,7 +848,7 @@ def wopiValidatorTests(ctx, storage, accounts_hash_difficulty = 4): def coreApiTests(ctx, part_number = 1, number_of_parts = 1, storage = "ocis", accounts_hash_difficulty = 4): early_fail = config["apiTests"]["earlyFail"] if "earlyFail" in config["apiTests"] else False - filterTags = "~@skipOnGraph&&~@skipOnOcis&&~@toImplementOnOCIS&&~comments-app-required&&~@federation-app-required&&~@notifications-app-required&&~systemtags-app-required&&~@local_storage&&~@skipOnOcis-%s-Storage&&~@caldav&&~@carddav" % ("OC" if storage == "owncloud" else "OCIS") + filterTags = "~@skipOnGraph&&~@toImplementOnOCIS&&~comments-app-required&&~@federation-app-required&&~@notifications-app-required&&~systemtags-app-required&&~@local_storage&&~@skipOnOcis-%s-Storage&&~@caldav&&~@carddav" % ("OC" if storage == "owncloud" else "OCIS") expectedFailuresFile = "%s/tests/acceptance/expected-failures-API-on-%s-storage.md" % (dirs["base"], storage.upper()) return { diff --git a/tests/acceptance/config/behat-core.yml b/tests/acceptance/config/behat-core.yml index f0bc9ff95..827eb6a46 100644 --- a/tests/acceptance/config/behat-core.yml +++ b/tests/acceptance/config/behat-core.yml @@ -432,13 +432,6 @@ default: - WebDavPropertiesContext: - AppConfigurationContext: - coreApiTranslation: - paths: - - "%paths.base%/../features/coreApiTranslation" - context: *common_ldap_suite_context - contexts: - - FeatureContext: *common_feature_context_params - extensions: rdx\behatvars\BehatVariablesExtension: ~ diff --git a/tests/acceptance/expected-failures-API-on-OCIS-storage.md b/tests/acceptance/expected-failures-API-on-OCIS-storage.md index 9dcd37e87..481f86af1 100644 --- a/tests/acceptance/expected-failures-API-on-OCIS-storage.md +++ b/tests/acceptance/expected-failures-API-on-OCIS-storage.md @@ -26,12 +26,12 @@ _ocdav: double-check the webdav property parsing when custom namespaces are used #### [Cannot set custom webDav properties](https://github.com/owncloud/product/issues/264) -- [coreApiWebdavProperties2/getFileProperties.feature:348](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties2/getFileProperties.feature#L348) -- [coreApiWebdavProperties2/getFileProperties.feature:353](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties2/getFileProperties.feature#L353) -- [coreApiWebdavProperties2/getFileProperties.feature:358](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties2/getFileProperties.feature#L358) -- [coreApiWebdavProperties2/getFileProperties.feature:388](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties2/getFileProperties.feature#L388) -- [coreApiWebdavProperties2/getFileProperties.feature:393](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties2/getFileProperties.feature#L393) -- [coreApiWebdavProperties2/getFileProperties.feature:398](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties2/getFileProperties.feature#L398) +- [coreApiWebdavProperties2/getFileProperties.feature:341](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties2/getFileProperties.feature#L341) +- [coreApiWebdavProperties2/getFileProperties.feature:346](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties2/getFileProperties.feature#L346) +- [coreApiWebdavProperties2/getFileProperties.feature:351](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties2/getFileProperties.feature#L351) +- [coreApiWebdavProperties2/getFileProperties.feature:381](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties2/getFileProperties.feature#L381) +- [coreApiWebdavProperties2/getFileProperties.feature:386](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties2/getFileProperties.feature#L386) +- [coreApiWebdavProperties2/getFileProperties.feature:391](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavProperties2/getFileProperties.feature#L391) #### [file versions do not report the version author](https://github.com/owncloud/ocis/issues/2914) @@ -178,25 +178,25 @@ File and sync features in a shared scenario - [coreApiShareManagementToShares/acceptShares.feature:230](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementToShares/acceptShares.feature#L230) - [coreApiShareManagementToShares/acceptShares.feature:495](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementToShares/acceptShares.feature#L495) - [coreApiShareManagementToShares/acceptShares.feature:560](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementToShares/acceptShares.feature#L560) -- [coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature:141](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature#L141) -- [coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature:142](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature#L142) -- [coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature:181](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature#L181) -- [coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature:182](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature#L182) -- [coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature:45](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature#L45) -- [coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature:46](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature#L46) +- [coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature:129](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature#L129) +- [coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature:130](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature#L130) +- [coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature:164](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature#L164) +- [coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature:165](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature#L165) +- [coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature:38](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature#L38) +- [coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature:39](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature#L39) #### [sharing the shares folder to users exits with different status code than in oc10 backend](https://github.com/owncloud/ocis/issues/2215) -- [coreApiShareManagementBasicToShares/createShareToSharesFolder.feature:747](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature#L747) -- [coreApiShareManagementBasicToShares/createShareToSharesFolder.feature:748](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature#L748) -- [coreApiShareManagementBasicToShares/createShareToSharesFolder.feature:766](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature#L766) -- [coreApiShareManagementBasicToShares/createShareToSharesFolder.feature:767](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature#L767) -- [coreApiShareManagementBasicToShares/createShareToSharesFolder.feature:782](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature#L782) -- [coreApiShareManagementBasicToShares/createShareToSharesFolder.feature:783](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature#L783) +- [coreApiShareManagementBasicToShares/createShareToSharesFolder.feature:742](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature#L742) +- [coreApiShareManagementBasicToShares/createShareToSharesFolder.feature:743](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature#L743) +- [coreApiShareManagementBasicToShares/createShareToSharesFolder.feature:761](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature#L761) +- [coreApiShareManagementBasicToShares/createShareToSharesFolder.feature:762](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature#L762) +- [coreApiShareManagementBasicToShares/createShareToSharesFolder.feature:777](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature#L777) +- [coreApiShareManagementBasicToShares/createShareToSharesFolder.feature:778](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature#L778) #### [file_target of an auto-renamed file is not correct directly after sharing](https://github.com/owncloud/core/issues/32322) -- [coreApiShareManagementToShares/mergeShare.feature:121](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementToShares/mergeShare.feature#L121) +- [coreApiShareManagementToShares/mergeShare.feature:116](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementToShares/mergeShare.feature#L116) #### [File deletion using dav gives unique string in filename in the trashbin](https://github.com/owncloud/product/issues/178) @@ -213,13 +213,13 @@ cannot share a folder with create permission #### [OCS error message for attempting to access share via share id as an unauthorized user is not informative](https://github.com/owncloud/ocis/issues/1233) -- [coreApiShareOperationsToShares1/gettingShares.feature:184](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares1/gettingShares.feature#L184) -- [coreApiShareOperationsToShares1/gettingShares.feature:185](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares1/gettingShares.feature#L185) +- [coreApiShareOperationsToShares1/gettingShares.feature:151](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares1/gettingShares.feature#L151) +- [coreApiShareOperationsToShares1/gettingShares.feature:152](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares1/gettingShares.feature#L152) #### [Listing shares via ocs API does not show path for parent folders](https://github.com/owncloud/ocis/issues/1231) -- [coreApiShareOperationsToShares1/gettingShares.feature:221](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares1/gettingShares.feature#L221) -- [coreApiShareOperationsToShares1/gettingShares.feature:222](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares1/gettingShares.feature#L222) +- [coreApiShareOperationsToShares1/gettingShares.feature:188](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares1/gettingShares.feature#L188) +- [coreApiShareOperationsToShares1/gettingShares.feature:189](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares1/gettingShares.feature#L189) #### [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) @@ -296,7 +296,7 @@ cannot share a folder with create permission - [coreApiShareOperationsToShares1/changingFilesShare.feature:70](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares1/changingFilesShare.feature#L70) - [coreApiShareOperationsToShares1/changingFilesShare.feature:91](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares1/changingFilesShare.feature#L91) - [coreApiShareOperationsToShares1/changingFilesShare.feature:92](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareOperationsToShares1/changingFilesShare.feature#L92) -- [coreApiShareManagementBasicToShares/createShareToSharesFolder.feature:538](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature#L538) +- [coreApiShareManagementBasicToShares/createShareToSharesFolder.feature:533](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature#L533) - [coreApiWebdavMove2/moveShareOnOcis.feature:30](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavMove2/moveShareOnOcis.feature#L30) - [coreApiWebdavMove2/moveShareOnOcis.feature:32](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavMove2/moveShareOnOcis.feature#L32) - [coreApiWebdavMove2/moveShareOnOcis.feature:98](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavMove2/moveShareOnOcis.feature#L98) @@ -352,16 +352,16 @@ cannot share a folder with create permission #### [Cannot move folder/file from one received share to another](https://github.com/owncloud/ocis/issues/2442) -- [coreApiShareUpdateToShares/updateShare.feature:201](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareUpdateToShares/updateShare.feature#L201) +- [coreApiShareUpdateToShares/updateShare.feature:196](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareUpdateToShares/updateShare.feature#L196) - [coreApiShareUpdateToShares/updateShare.feature:160](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareUpdateToShares/updateShare.feature#L160) -- [coreApiShareManagementToShares/mergeShare.feature:141](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementToShares/mergeShare.feature#L141) +- [coreApiShareManagementToShares/mergeShare.feature:136](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementToShares/mergeShare.feature#L136) #### [Sharing folder and sub-folder with same user but different permission,the permission of sub-folder is not obeyed ](https://github.com/owncloud/ocis/issues/2440) -- [coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature:278](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature#L278) -- [coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature:313](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature#L313) -- [coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature:422](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature#L422) -- [coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature:457](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature#L457) +- [coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature:261](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature#L261) +- [coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature:296](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature#L296) +- [coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature:405](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature#L405) +- [coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature:440](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature#L440) #### [Empty OCS response for a share create request using a disabled user](https://github.com/owncloud/ocis/issues/2212) @@ -371,8 +371,8 @@ cannot share a folder with create permission #### [Edit user share response has a "name" field](https://github.com/owncloud/ocis/issues/1225) -- [coreApiShareUpdateToShares/updateShare.feature:247](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareUpdateToShares/updateShare.feature#L247) -- [coreApiShareUpdateToShares/updateShare.feature:248](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareUpdateToShares/updateShare.feature#L248) +- [coreApiShareUpdateToShares/updateShare.feature:242](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareUpdateToShares/updateShare.feature#L242) +- [coreApiShareUpdateToShares/updateShare.feature:243](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareUpdateToShares/updateShare.feature#L243) #### [user can access version metadata of a received share before accepting it](https://github.com/owncloud/ocis/issues/760) @@ -380,8 +380,8 @@ cannot share a folder with create permission #### [Share lists deleted user as 'user'](https://github.com/owncloud/ocis/issues/903) -- [coreApiShareManagementBasicToShares/createShareToSharesFolder.feature:682](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature#L682) -- [coreApiShareManagementBasicToShares/createShareToSharesFolder.feature:683](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature#L683) +- [coreApiShareManagementBasicToShares/createShareToSharesFolder.feature:677](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature#L677) +- [coreApiShareManagementBasicToShares/createShareToSharesFolder.feature:678](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature#L678) #### [deleting a share with wrong authentication returns OCS status 996 / HTTP 500](https://github.com/owncloud/ocis/issues/1229) @@ -525,8 +525,8 @@ And other missing implementation of favorites #### [Sharing a same file twice to the same group](https://github.com/owncloud/ocis/issues/1710) -- [coreApiShareManagementBasicToShares/createShareToSharesFolder.feature:730](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature#L730) -- [coreApiShareManagementBasicToShares/createShareToSharesFolder.feature:731](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature#L731) +- [coreApiShareManagementBasicToShares/createShareToSharesFolder.feature:725](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature#L725) +- [coreApiShareManagementBasicToShares/createShareToSharesFolder.feature:726](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature#L726) #### [PATCH request for TUS upload with wrong checksum gives incorrect response](https://github.com/owncloud/ocis/issues/1755) @@ -599,8 +599,8 @@ And other missing implementation of favorites #### [Shares to deleted group listed in the response](https://github.com/owncloud/ocis/issues/2441) -- [coreApiShareManagementBasicToShares/createShareToSharesFolder.feature:534](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature#L534) -- [coreApiShareManagementBasicToShares/createShareToSharesFolder.feature:535](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature#L535) +- [coreApiShareManagementBasicToShares/createShareToSharesFolder.feature:529](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature#L529) +- [coreApiShareManagementBasicToShares/createShareToSharesFolder.feature:530](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature#L530) #### [copying the file inside Shares folder returns 404](https://github.com/owncloud/ocis/issues/3874) @@ -650,9 +650,9 @@ Not everything needs to be implemented for ocis. While the oc10 testsuite covers - [coreApiWebdavUpload2/uploadFileToExcludedDirectoryUsingOldChunking.feature:38](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavUpload2/uploadFileToExcludedDirectoryUsingOldChunking.feature#L38) - [coreApiWebdavUpload2/uploadFileToExcludedDirectoryUsingOldChunking.feature:39](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavUpload2/uploadFileToExcludedDirectoryUsingOldChunking.feature#L39) - [coreApiWebdavUpload2/uploadFileToExcludedDirectoryUsingOldChunking.feature:40](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavUpload2/uploadFileToExcludedDirectoryUsingOldChunking.feature#L40) -- [coreApiWebdavMove2/moveFile.feature:287](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavMove2/moveFile.feature#L287) -- [coreApiWebdavMove2/moveFile.feature:288](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavMove2/moveFile.feature#L288) -- [coreApiWebdavMove2/moveFile.feature:293](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavMove2/moveFile.feature#L293) +- [coreApiWebdavMove2/moveFile.feature:176](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavMove2/moveFile.feature#L176) +- [coreApiWebdavMove2/moveFile.feature:177](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavMove2/moveFile.feature#L177) +- [coreApiWebdavMove2/moveFile.feature:182](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavMove2/moveFile.feature#L182) #### [cannot set blacklisted file names](https://github.com/owncloud/product/issues/260) @@ -740,7 +740,7 @@ Not everything needs to be implemented for ocis. While the oc10 testsuite covers - [coreApiWebdavMove1/moveFolder.feature:27](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavMove1/moveFolder.feature#L27) - [coreApiWebdavMove1/moveFolder.feature:45](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavMove1/moveFolder.feature#L45) - [coreApiWebdavMove1/moveFolder.feature:63](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavMove1/moveFolder.feature#L63) -- [coreApiWebdavMove2/moveFile.feature:224](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavMove2/moveFile.feature#L224) +- [coreApiWebdavMove2/moveFile.feature:138](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavMove2/moveFile.feature#L138) - [coreApiWebdavMove2/moveFileToBlacklistedName.feature:25](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavMove2/moveFileToBlacklistedName.feature#L25) - [coreApiWebdavMove2/moveFileToBlacklistedName.feature:41](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavMove2/moveFileToBlacklistedName.feature#L41) - [coreApiWebdavMove2/moveFileToBlacklistedName.feature:80](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiWebdavMove2/moveFileToBlacklistedName.feature#L80) @@ -780,7 +780,7 @@ Not everything needs to be implemented for ocis. While the oc10 testsuite covers #### [HTTP status code differ while deleting file of another user's trash bin](https://github.com/owncloud/ocis/issues/3544) -- [coreApiTrashbin/trashbinDelete.feature:109](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinDelete.feature#L109) +- [coreApiTrashbin/trashbinDelete.feature:105](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinDelete.feature#L105) #### [Problem accessing trashbin with personal space id](https://github.com/owncloud/ocis/issues/3639) @@ -788,13 +788,13 @@ Not everything needs to be implemented for ocis. While the oc10 testsuite covers - [coreApiTrashbin/trashbinDelete.feature:36](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinDelete.feature#L36) - [coreApiTrashbin/trashbinDelete.feature:58](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinDelete.feature#L58) - [coreApiTrashbin/trashbinDelete.feature:85](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinDelete.feature#L85) -- [coreApiTrashbin/trashbinDelete.feature:132](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinDelete.feature#L132) -- [coreApiTrashbin/trashbinDelete.feature:155](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinDelete.feature#L155) -- [coreApiTrashbin/trashbinDelete.feature:180](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinDelete.feature#L180) -- [coreApiTrashbin/trashbinDelete.feature:205](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinDelete.feature#L205) -- [coreApiTrashbin/trashbinDelete.feature:242](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinDelete.feature#L242) -- [coreApiTrashbin/trashbinDelete.feature:279](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinDelete.feature#L279) -- [coreApiTrashbin/trashbinDelete.feature:328](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinDelete.feature#L328) +- [coreApiTrashbin/trashbinDelete.feature:128](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinDelete.feature#L128) +- [coreApiTrashbin/trashbinDelete.feature:151](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinDelete.feature#L151) +- [coreApiTrashbin/trashbinDelete.feature:176](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinDelete.feature#L176) +- [coreApiTrashbin/trashbinDelete.feature:201](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinDelete.feature#L201) +- [coreApiTrashbin/trashbinDelete.feature:238](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinDelete.feature#L238) +- [coreApiTrashbin/trashbinDelete.feature:275](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinDelete.feature#L275) +- [coreApiTrashbin/trashbinDelete.feature:324](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinDelete.feature#L324) - [coreApiTrashbin/trashbinFilesFolders.feature:25](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature#L25) - [coreApiTrashbin/trashbinFilesFolders.feature:41](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature#L41) - [coreApiTrashbin/trashbinFilesFolders.feature:60](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature#L60) @@ -802,19 +802,23 @@ Not everything needs to be implemented for ocis. While the oc10 testsuite covers - [coreApiTrashbin/trashbinFilesFolders.feature:100](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature#L100) - [coreApiTrashbin/trashbinFilesFolders.feature:136](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature#L136) - [coreApiTrashbin/trashbinFilesFolders.feature:159](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature#L159) -- [coreApiTrashbin/trashbinFilesFolders.feature:339](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature#L339) -- [coreApiTrashbin/trashbinFilesFolders.feature:340](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature#L340) -- [coreApiTrashbin/trashbinFilesFolders.feature:341](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature#L341) -- [coreApiTrashbin/trashbinFilesFolders.feature:346](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature#L346) -- [coreApiTrashbin/trashbinFilesFolders.feature:347](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature#L347) -- [coreApiTrashbin/trashbinFilesFolders.feature:348](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature#L348) -- [coreApiTrashbin/trashbinFilesFolders.feature:349](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature#L349) -- [coreApiTrashbin/trashbinFilesFolders.feature:350](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature#L350) -- [coreApiTrashbin/trashbinFilesFolders.feature:351](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature#L351) -- [coreApiTrashbin/trashbinFilesFolders.feature:368](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature#L368) -- [coreApiTrashbin/trashbinFilesFolders.feature:388](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature#L388) -- [coreApiTrashbin/trashbinFilesFolders.feature:442](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature#L442) -- [coreApiTrashbin/trashbinFilesFolders.feature:479](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature#L479) +- [coreApiTrashbin/trashbinFilesFolders.feature:323](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature#L323) +- [coreApiTrashbin/trashbinFilesFolders.feature:324](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature#L324) +- [coreApiTrashbin/trashbinFilesFolders.feature:325](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature#L325) +- [coreApiTrashbin/trashbinFilesFolders.feature:330](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature#L330) +- [coreApiTrashbin/trashbinFilesFolders.feature:331](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature#L331) +- [coreApiTrashbin/trashbinFilesFolders.feature:332](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature#L332) +- [coreApiTrashbin/trashbinFilesFolders.feature:333](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature#L333) +- [coreApiTrashbin/trashbinFilesFolders.feature:334](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature#L334) +- [coreApiTrashbin/trashbinFilesFolders.feature:335](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature#L335) +- [coreApiTrashbin/trashbinFilesFolders.feature:352](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature#L352) +- [coreApiTrashbin/trashbinFilesFolders.feature:372](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature#L372) +- [coreApiTrashbin/trashbinFilesFolders.feature:426](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature#L426) +- [coreApiTrashbin/trashbinFilesFolders.feature:463](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature#L463) +#### [Default capabilities for normal user and admin user not same as in oC-core](https://github.com/owncloud/ocis/issues/1285) +- [coreApiCapabilities/capabilities.feature:8](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiCapabilities/capabilities.feature#L8) +- [coreApiCapabilities/capabilities.feature:35](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiCapabilities/capabilities.feature#L35) +- [coreApiCapabilities/capabilities.feature:44](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiCapabilities/capabilities.feature#L44) Note: always have an empty line at the end of this file. The bash script that processes this file requires that the last line has a newline on the end. diff --git a/tests/acceptance/features/coreApiCapabilities/capabilities.feature b/tests/acceptance/features/coreApiCapabilities/capabilities.feature index c34004a82..f6045c8ac 100644 --- a/tests/acceptance/features/coreApiCapabilities/capabilities.feature +++ b/tests/acceptance/features/coreApiCapabilities/capabilities.feature @@ -1,132 +1,10 @@ -@api @files_sharing-app-required @issue-ocis-reva-41 +@api @files_sharing-app-required Feature: capabilities Background: Given using OCS API version "1" - @smokeTest @skipOnOcis - Scenario: Check that the sharing API can be enabled - Given parameter "shareapi_enabled" of app "core" has been set to "no" - And the capabilities setting of "files_sharing" path "api_enabled" has been confirmed to be "" - When the administrator sets parameter "shareapi_enabled" of app "core" to "yes" - Then the capabilities setting of "files_sharing" path "api_enabled" should be "1" - - @smokeTest @skipOnOcis - Scenario: Check that the sharing API can be disabled - Given parameter "shareapi_enabled" of app "core" has been set to "yes" - And the capabilities setting of "files_sharing" path "api_enabled" has been confirmed to be "1" - When the administrator sets parameter "shareapi_enabled" of app "core" to "no" - Then the capabilities setting of "files_sharing" path "api_enabled" should be "" - - @skipOnOcis - Scenario: Check that group sharing can be enabled - Given parameter "shareapi_allow_group_sharing" of app "core" has been set to "no" - And the capabilities setting of "files_sharing" path "group_sharing" has been confirmed to be "" - When the administrator sets parameter "shareapi_allow_group_sharing" of app "core" to "yes" - Then the capabilities setting of "files_sharing" path "group_sharing" should be "1" - - @skipOnOcis - Scenario: Check that group sharing can be disabled - Given parameter "shareapi_allow_group_sharing" of app "core" has been set to "yes" - And the capabilities setting of "files_sharing" path "group_sharing" has been confirmed to be "1" - When the administrator sets parameter "shareapi_allow_group_sharing" of app "core" to "no" - Then the capabilities setting of "files_sharing" path "group_sharing" should be "" - - @smokeTest @skipOnOcis - Scenario: getting default capabilities with admin user - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | core | pollinterval | 30000 | - | core | webdav-root | remote.php/webdav | - | core | status@@@edition | %edition% | - | core | status@@@productname | %productname% | - | core | status@@@version | %version% | - | core | status@@@versionstring | %versionstring% | - | files_sharing | api_enabled | 1 | - | files_sharing | default_permissions | 31 | - | files_sharing | search_min_length | 2 | - | files_sharing | public@@@enabled | 1 | - | files_sharing | public@@@multiple | 1 | - | files_sharing | public@@@upload | 1 | - | files_sharing | public@@@supports_upload_only | 1 | - | files_sharing | public@@@send_mail | EMPTY | - | files_sharing | public@@@social_share | 1 | - | files_sharing | public@@@enforced | EMPTY | - | files_sharing | public@@@enforced_for@@@read_only | EMPTY | - | files_sharing | public@@@enforced_for@@@read_write | EMPTY | - | files_sharing | public@@@enforced_for@@@upload_only | EMPTY | - | files_sharing | public@@@enforced_for@@@read_write_delete | EMPTY | - | files_sharing | public@@@expire_date@@@enabled | EMPTY | - | files_sharing | public@@@defaultPublicLinkShareName | Public link | - | files_sharing | resharing | 1 | - | files_sharing | federation@@@outgoing | 1 | - | files_sharing | federation@@@incoming | 1 | - | files_sharing | group_sharing | 1 | - | files_sharing | share_with_group_members_only | EMPTY | - | files_sharing | share_with_membership_groups_only | EMPTY | - | files_sharing | auto_accept_share | 1 | - | files_sharing | user_enumeration@@@enabled | 1 | - | files_sharing | user_enumeration@@@group_members_only | EMPTY | - | files_sharing | user@@@send_mail | EMPTY | - | files | bigfilechunking | 1 | - | files | privateLinks | 1 | - | files | privateLinksDetailsParam | 1 | - - @smokeTest @skipOnOcis - Scenario: getting default capabilities with admin user with new values - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | files_sharing | user@@@expire_date@@@enabled | EMPTY | - | files_sharing | group@@@expire_date@@@enabled | EMPTY | - | files_sharing | providers_capabilities@@@ocinternal@@@user@@@element[0] | shareExpiration | - | files_sharing | providers_capabilities@@@ocinternal@@@group@@@element[0] | shareExpiration | - | files_sharing | providers_capabilities@@@ocinternal@@@link@@@element[0] | shareExpiration | - | files_sharing | providers_capabilities@@@ocinternal@@@link@@@element[1] | passwordProtected | - - @smokeTest @skipOnOcis - Scenario: the default capabilities should include share expiration for all of user, group, link and remote (federated) - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | files_sharing | user@@@expire_date@@@enabled | EMPTY | - | files_sharing | group@@@expire_date@@@enabled | EMPTY | - | files_sharing | remote@@@expire_date@@@enabled | EMPTY | - | files_sharing | providers_capabilities@@@ocinternal@@@user@@@element[0] | shareExpiration | - | files_sharing | providers_capabilities@@@ocinternal@@@group@@@element[0] | shareExpiration | - | files_sharing | providers_capabilities@@@ocinternal@@@link@@@element[0] | shareExpiration | - | files_sharing | providers_capabilities@@@ocFederatedSharing@@@remote@@@element[0] | shareExpiration | - - @smokeTest @skipOnOcis - Scenario: getting new default capabilities in versions after 10.5.0 with admin user - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | files | favorites | 1 | - | files | file_locking_support | 1 | - | files | file_locking_enable_file_action | EMPTY | - - @smokeTest @skipOnOcis - Scenario: lock file action can be enabled - Given parameter "enable_lock_file_action" of app "files" has been set to "yes" - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | files | file_locking_support | 1 | - | files | file_locking_enable_file_action | 1 | - - @smokeTest @skipOnOcis + @smokeTest @issue-ocis-1285 Scenario: getting default capabilities with admin user When the administrator retrieves the capabilities using the capabilities API Then the OCS status code should be "100" @@ -153,7 +31,7 @@ Feature: capabilities | capability | path_to_element | value | | files | versioning | 1 | - @skipOnOcis + @issue-ocis-1285 Scenario: getting default_permissions capability with admin user When the administrator retrieves the capabilities using the capabilities API Then the OCS status code should be "100" @@ -162,17 +40,7 @@ Feature: capabilities | capability | path_to_element | value | | files_sharing | default_permissions | 31 | - @skipOnOcis - Scenario: default_permissions capability can be changed - Given parameter "shareapi_default_permissions" of app "core" has been set to "7" - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | files_sharing | default_permissions | 7 | - - @skipOnOcis + @issue-ocis-1285 Scenario: .htaccess is reported as a blacklisted file by default When the administrator retrieves the capabilities using the capabilities API Then the OCS status code should be "100" @@ -181,768 +49,6 @@ Feature: capabilities | capability | path_to_element | value | | files | blacklisted_files@@@element[0] | .htaccess | - @skipOnOcis - Scenario: multiple files can be reported as blacklisted - Given the administrator has updated system config key "blacklisted_files" with value '["test.txt",".htaccess"]' and type "json" - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | files | blacklisted_files@@@element[0] | test.txt | - | files | blacklisted_files@@@element[1] | .htaccess | - - @skipOnOcis - Scenario: user expire date can be enabled - Given parameter "shareapi_default_expire_date_user_share" of app "core" has been set to "yes" - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | files_sharing | user@@@expire_date@@@enabled | 1 | - | files_sharing | user@@@expire_date@@@days | 7 | - | files_sharing | user@@@expire_date@@@enforced | EMPTY | - - @skipOnOcis - Scenario: user expire date can be enforced - Given 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" - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | files_sharing | user@@@expire_date@@@enabled | 1 | - | files_sharing | user@@@expire_date@@@days | 7 | - | files_sharing | user@@@expire_date@@@enforced | 1 | - - @skipOnOcis - Scenario: user expire date days can be set - Given parameter "shareapi_default_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 "14" - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | files_sharing | user@@@expire_date@@@enabled | 1 | - | files_sharing | user@@@expire_date@@@days | 14 | - | files_sharing | user@@@expire_date@@@enforced | EMPTY | - - @skipOnOcis - Scenario: group expire date can be enabled - Given parameter "shareapi_default_expire_date_group_share" of app "core" has been set to "yes" - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | files_sharing | group@@@expire_date@@@enabled | 1 | - | files_sharing | group@@@expire_date@@@days | 7 | - | files_sharing | group@@@expire_date@@@enforced | EMPTY | - - @skipOnOcis - Scenario: group expire date can be enforced - Given parameter "shareapi_default_expire_date_group_share" of app "core" has been set to "yes" - And parameter "shareapi_enforce_expire_date_group_share" of app "core" has been set to "yes" - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | files_sharing | group@@@expire_date@@@enabled | 1 | - | files_sharing | group@@@expire_date@@@days | 7 | - | files_sharing | group@@@expire_date@@@enforced | 1 | - - @skipOnOcis - Scenario: group expire date days can be set - Given parameter "shareapi_default_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 "14" - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | files_sharing | group@@@expire_date@@@enabled | 1 | - | files_sharing | group@@@expire_date@@@days | 14 | - | files_sharing | group@@@expire_date@@@enforced | EMPTY | - - #feature added in #31824 released in 10.0.10 - @smokeTest @skipOnOcis - Scenario: getting capabilities with admin user - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | files_sharing | can_share | 1 | - - #feature added in #32414 released in 10.0.10 - @skipOnOcis - Scenario: getting async capabilities when async operations are enabled - Given the administrator has enabled async operations - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | async | | 1.0 | - - - Scenario: getting async capabilities when async operations are disabled - Given the administrator has disabled async operations - When the administrator retrieves the capabilities using the capabilities API - Then the capabilities should contain - | capability | path_to_element | value | - | async | | EMPTY | - - @skipOnOcis - Scenario: Changing public upload - Given parameter "shareapi_allow_public_upload" of app "core" has been set to "no" - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | core | pollinterval | 30000 | - | core | webdav-root | remote.php/webdav | - | files_sharing | api_enabled | 1 | - | files_sharing | can_share | 1 | - | files_sharing | public@@@enabled | 1 | - | files_sharing | public@@@multiple | 1 | - | files_sharing | public@@@upload | EMPTY | - | files_sharing | public@@@send_mail | EMPTY | - | files_sharing | public@@@social_share | 1 | - | files_sharing | resharing | 1 | - | files_sharing | federation@@@outgoing | 1 | - | files_sharing | federation@@@incoming | 1 | - | files_sharing | group_sharing | 1 | - | files_sharing | share_with_group_members_only | EMPTY | - | files_sharing | user_enumeration@@@enabled | 1 | - | files_sharing | user_enumeration@@@group_members_only | EMPTY | - | files | bigfilechunking | 1 | - - @skipOnOcis - Scenario: Disabling share api - Given parameter "shareapi_enabled" of app "core" has been set to "no" - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | core | pollinterval | 30000 | - | core | webdav-root | remote.php/webdav | - | files_sharing | api_enabled | EMPTY | - | files_sharing | can_share | EMPTY | - | files_sharing | public@@@enabled | EMPTY | - | files_sharing | public@@@multiple | EMPTY | - | files_sharing | public@@@upload | EMPTY | - | files_sharing | resharing | EMPTY | - | files_sharing | federation@@@outgoing | 1 | - | files_sharing | federation@@@incoming | 1 | - | files | bigfilechunking | 1 | - - @skipOnOcis - Scenario: Disabling public links - Given parameter "shareapi_allow_links" of app "core" has been set to "no" - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | core | pollinterval | 30000 | - | core | webdav-root | remote.php/webdav | - | files_sharing | api_enabled | 1 | - | files_sharing | can_share | 1 | - | files_sharing | public@@@enabled | EMPTY | - | files_sharing | public@@@multiple | EMPTY | - | files_sharing | public@@@upload | EMPTY | - | files_sharing | resharing | 1 | - | files_sharing | federation@@@outgoing | 1 | - | files_sharing | federation@@@incoming | 1 | - | files_sharing | group_sharing | 1 | - | files_sharing | share_with_group_members_only | EMPTY | - | files_sharing | user_enumeration@@@enabled | 1 | - | files_sharing | user_enumeration@@@group_members_only | EMPTY | - | files | bigfilechunking | 1 | - - @skipOnOcis - Scenario: Changing resharing - Given parameter "shareapi_allow_resharing" of app "core" has been set to "no" - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | core | pollinterval | 30000 | - | core | webdav-root | remote.php/webdav | - | files_sharing | api_enabled | 1 | - | files_sharing | can_share | 1 | - | files_sharing | public@@@enabled | 1 | - | files_sharing | public@@@upload | 1 | - | files_sharing | public@@@send_mail | EMPTY | - | files_sharing | public@@@social_share | 1 | - | files_sharing | resharing | EMPTY | - | files_sharing | federation@@@outgoing | 1 | - | files_sharing | federation@@@incoming | 1 | - | files_sharing | group_sharing | 1 | - | files_sharing | share_with_group_members_only | EMPTY | - | files_sharing | user_enumeration@@@enabled | 1 | - | files_sharing | user_enumeration@@@group_members_only | EMPTY | - | files | bigfilechunking | 1 | - - @skipOnOcis - Scenario: Changing federation outgoing - Given parameter "outgoing_server2server_share_enabled" of app "files_sharing" has been set to "no" - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | core | pollinterval | 30000 | - | core | webdav-root | remote.php/webdav | - | files_sharing | api_enabled | 1 | - | files_sharing | can_share | 1 | - | files_sharing | public@@@enabled | 1 | - | files_sharing | public@@@upload | 1 | - | files_sharing | public@@@send_mail | EMPTY | - | files_sharing | public@@@social_share | 1 | - | files_sharing | resharing | 1 | - | files_sharing | federation@@@outgoing | EMPTY | - | files_sharing | federation@@@incoming | 1 | - | files_sharing | group_sharing | 1 | - | files_sharing | share_with_group_members_only | EMPTY | - | files_sharing | user_enumeration@@@enabled | 1 | - | files_sharing | user_enumeration@@@group_members_only | EMPTY | - | files | bigfilechunking | 1 | - - @skipOnOcis - Scenario: Changing federation incoming - Given parameter "incoming_server2server_share_enabled" of app "files_sharing" has been set to "no" - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | core | pollinterval | 30000 | - | core | webdav-root | remote.php/webdav | - | files_sharing | api_enabled | 1 | - | files_sharing | can_share | 1 | - | files_sharing | public@@@enabled | 1 | - | files_sharing | public@@@upload | 1 | - | files_sharing | public@@@send_mail | EMPTY | - | files_sharing | public@@@social_share | 1 | - | files_sharing | resharing | 1 | - | files_sharing | federation@@@outgoing | 1 | - | files_sharing | federation@@@incoming | EMPTY | - | files_sharing | group_sharing | 1 | - | files_sharing | share_with_group_members_only | EMPTY | - | files_sharing | user_enumeration@@@enabled | 1 | - | files_sharing | user_enumeration@@@group_members_only | EMPTY | - | files | bigfilechunking | 1 | - - @skipOnOcis - Scenario: Changing "password enforced for read-only public link shares" - Given parameter "shareapi_enforce_links_password_read_only" of app "core" has been set to "yes" - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | core | pollinterval | 30000 | - | core | webdav-root | remote.php/webdav | - | files_sharing | api_enabled | 1 | - | files_sharing | can_share | 1 | - | files_sharing | public@@@enabled | 1 | - | files_sharing | public@@@upload | 1 | - | files_sharing | public@@@send_mail | EMPTY | - | files_sharing | public@@@social_share | 1 | - | files_sharing | public@@@password@@@enforced_for@@@read_only | 1 | - | files_sharing | public@@@password@@@enforced_for@@@read_write | EMPTY | - | files_sharing | public@@@password@@@enforced_for@@@upload_only | EMPTY | - | files_sharing | resharing | 1 | - | files_sharing | federation@@@outgoing | 1 | - | files_sharing | federation@@@incoming | 1 | - | files_sharing | group_sharing | 1 | - | files_sharing | share_with_group_members_only | EMPTY | - | files_sharing | user_enumeration@@@enabled | 1 | - | files_sharing | user_enumeration@@@group_members_only | EMPTY | - | files | bigfilechunking | 1 | - - @skipOnOcis - Scenario: Changing "password enforced for read-write public link shares" - Given parameter "shareapi_enforce_links_password_read_write" of app "core" has been set to "yes" - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | core | pollinterval | 30000 | - | core | webdav-root | remote.php/webdav | - | files_sharing | api_enabled | 1 | - | files_sharing | can_share | 1 | - | files_sharing | public@@@enabled | 1 | - | files_sharing | public@@@upload | 1 | - | files_sharing | public@@@send_mail | EMPTY | - | files_sharing | public@@@social_share | 1 | - | files_sharing | public@@@password@@@enforced_for@@@read_only | EMPTY | - | files_sharing | public@@@password@@@enforced_for@@@read_write | 1 | - | files_sharing | public@@@password@@@enforced_for@@@upload_only | EMPTY | - | files_sharing | resharing | 1 | - | files_sharing | federation@@@outgoing | 1 | - | files_sharing | federation@@@incoming | 1 | - | files_sharing | group_sharing | 1 | - | files_sharing | share_with_group_members_only | EMPTY | - | files_sharing | user_enumeration@@@enabled | 1 | - | files_sharing | user_enumeration@@@group_members_only | EMPTY | - | files | bigfilechunking | 1 | - - @skipOnOcis - Scenario: Changing "password enforced for write-only public link shares" - Given parameter "shareapi_enforce_links_password_write_only" of app "core" has been set to "yes" - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | core | pollinterval | 30000 | - | core | webdav-root | remote.php/webdav | - | files_sharing | api_enabled | 1 | - | files_sharing | can_share | 1 | - | files_sharing | public@@@enabled | 1 | - | files_sharing | public@@@upload | 1 | - | files_sharing | public@@@send_mail | EMPTY | - | files_sharing | public@@@social_share | 1 | - | files_sharing | public@@@password@@@enforced_for@@@read_only | EMPTY | - | files_sharing | public@@@password@@@enforced_for@@@read_write | EMPTY | - | files_sharing | public@@@password@@@enforced_for@@@upload_only | 1 | - | files_sharing | resharing | 1 | - | files_sharing | federation@@@outgoing | 1 | - | files_sharing | federation@@@incoming | 1 | - | files_sharing | group_sharing | 1 | - | files_sharing | share_with_group_members_only | EMPTY | - | files_sharing | user_enumeration@@@enabled | 1 | - | files_sharing | user_enumeration@@@group_members_only | EMPTY | - | files | bigfilechunking | 1 | - - @skipOnOcis - Scenario: Changing public notifications - Given parameter "shareapi_allow_public_notification" of app "core" has been set to "yes" - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | core | pollinterval | 30000 | - | core | webdav-root | remote.php/webdav | - | files_sharing | api_enabled | 1 | - | files_sharing | can_share | 1 | - | files_sharing | public@@@enabled | 1 | - | files_sharing | public@@@upload | 1 | - | files_sharing | public@@@send_mail | 1 | - | files_sharing | public@@@social_share | 1 | - | files_sharing | resharing | 1 | - | files_sharing | federation@@@outgoing | 1 | - | files_sharing | federation@@@incoming | 1 | - | files_sharing | group_sharing | 1 | - | files_sharing | share_with_group_members_only | EMPTY | - | files_sharing | user_enumeration@@@enabled | 1 | - | files_sharing | user_enumeration@@@group_members_only | EMPTY | - | files | bigfilechunking | 1 | - - @skipOnOcis - Scenario: Changing public social share - Given parameter "shareapi_allow_social_share" of app "core" has been set to "no" - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | core | pollinterval | 30000 | - | core | webdav-root | remote.php/webdav | - | files_sharing | api_enabled | 1 | - | files_sharing | can_share | 1 | - | files_sharing | public@@@enabled | 1 | - | files_sharing | public@@@upload | 1 | - | files_sharing | public@@@send_mail | EMPTY | - | files_sharing | public@@@social_share | EMPTY | - | files_sharing | resharing | 1 | - | files_sharing | federation@@@outgoing | 1 | - | files_sharing | federation@@@incoming | 1 | - | files_sharing | group_sharing | 1 | - | files_sharing | share_with_group_members_only | EMPTY | - | files_sharing | user_enumeration@@@enabled | 1 | - | files_sharing | user_enumeration@@@group_members_only | EMPTY | - | files | bigfilechunking | 1 | - - @skipOnOcis - Scenario: Changing expire date - Given parameter "shareapi_default_expire_date" of app "core" has been set to "yes" - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | core | pollinterval | 30000 | - | core | webdav-root | remote.php/webdav | - | files_sharing | api_enabled | 1 | - | files_sharing | can_share | 1 | - | files_sharing | public@@@enabled | 1 | - | files_sharing | public@@@upload | 1 | - | files_sharing | public@@@send_mail | EMPTY | - | files_sharing | public@@@social_share | 1 | - | files_sharing | public@@@expire_date@@@enabled | 1 | - | files_sharing | resharing | 1 | - | files_sharing | federation@@@outgoing | 1 | - | files_sharing | federation@@@incoming | 1 | - | files_sharing | group_sharing | 1 | - | files_sharing | share_with_group_members_only | EMPTY | - | files_sharing | user_enumeration@@@enabled | 1 | - | files_sharing | user_enumeration@@@group_members_only | EMPTY | - | files | bigfilechunking | 1 | - - @skipOnOcis - Scenario: Changing expire date enforcing - Given parameter "shareapi_default_expire_date" of app "core" has been set to "yes" - And parameter "shareapi_enforce_expire_date" of app "core" has been set to "yes" - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | core | pollinterval | 30000 | - | core | webdav-root | remote.php/webdav | - | files_sharing | api_enabled | 1 | - | files_sharing | can_share | 1 | - | files_sharing | public@@@enabled | 1 | - | files_sharing | public@@@upload | 1 | - | files_sharing | public@@@send_mail | EMPTY | - | files_sharing | public@@@social_share | 1 | - | files_sharing | public@@@expire_date@@@enabled | 1 | - | files_sharing | public@@@expire_date@@@enforced | 1 | - | files_sharing | resharing | 1 | - | files_sharing | federation@@@outgoing | 1 | - | files_sharing | federation@@@incoming | 1 | - | files_sharing | group_sharing | 1 | - | files_sharing | share_with_group_members_only | EMPTY | - | files_sharing | user_enumeration@@@enabled | 1 | - | files_sharing | user_enumeration@@@group_members_only | EMPTY | - | files | bigfilechunking | 1 | - - @skipOnOcis - Scenario: Changing group sharing allowed - Given parameter "shareapi_allow_group_sharing" of app "core" has been set to "no" - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | core | pollinterval | 30000 | - | core | webdav-root | remote.php/webdav | - | files_sharing | api_enabled | 1 | - | files_sharing | can_share | 1 | - | files_sharing | public@@@enabled | 1 | - | files_sharing | public@@@upload | 1 | - | files_sharing | public@@@send_mail | EMPTY | - | files_sharing | public@@@social_share | 1 | - | files_sharing | resharing | 1 | - | files_sharing | federation@@@outgoing | 1 | - | files_sharing | federation@@@incoming | 1 | - | files_sharing | group_sharing | EMPTY | - | files_sharing | share_with_group_members_only | EMPTY | - | files_sharing | user_enumeration@@@enabled | 1 | - | files_sharing | user_enumeration@@@group_members_only | EMPTY | - | files | bigfilechunking | 1 | - - @skipOnOcis - Scenario: Changing only share with group member - Given parameter "shareapi_only_share_with_group_members" of app "core" has been set to "yes" - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | core | pollinterval | 30000 | - | core | webdav-root | remote.php/webdav | - | files_sharing | api_enabled | 1 | - | files_sharing | can_share | 1 | - | files_sharing | public@@@enabled | 1 | - | files_sharing | public@@@upload | 1 | - | files_sharing | public@@@send_mail | EMPTY | - | files_sharing | public@@@social_share | 1 | - | files_sharing | resharing | 1 | - | files_sharing | federation@@@outgoing | 1 | - | files_sharing | federation@@@incoming | 1 | - | files_sharing | group_sharing | 1 | - | files_sharing | share_with_group_members_only | 1 | - | files_sharing | user_enumeration@@@enabled | 1 | - | files_sharing | user_enumeration@@@group_members_only | EMPTY | - | files | bigfilechunking | 1 | - - @skipOnOcis - Scenario: Changing only share with membership groups - Given parameter "shareapi_only_share_with_membership_groups" of app "core" has been set to "yes" - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | core | pollinterval | 30000 | - | core | webdav-root | remote.php/webdav | - | files_sharing | api_enabled | 1 | - | files_sharing | can_share | 1 | - | files_sharing | public@@@enabled | 1 | - | files_sharing | public@@@upload | 1 | - | files_sharing | public@@@send_mail | EMPTY | - | files_sharing | public@@@social_share | 1 | - | files_sharing | resharing | 1 | - | files_sharing | federation@@@outgoing | 1 | - | files_sharing | federation@@@incoming | 1 | - | files_sharing | group_sharing | 1 | - | files_sharing | share_with_group_members_only | EMPTY | - | files_sharing | share_with_membership_groups_only | 1 | - | files_sharing | user_enumeration@@@enabled | 1 | - | files_sharing | user_enumeration@@@group_members_only | EMPTY | - | files | bigfilechunking | 1 | - - @skipOnOcis - Scenario: Changing auto accept share - Given parameter "shareapi_auto_accept_share" of app "core" has been set to "no" - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | core | pollinterval | 30000 | - | core | webdav-root | remote.php/webdav | - | files_sharing | api_enabled | 1 | - | files_sharing | can_share | 1 | - | files_sharing | public@@@enabled | 1 | - | files_sharing | public@@@upload | 1 | - | files_sharing | public@@@send_mail | EMPTY | - | files_sharing | public@@@social_share | 1 | - | files_sharing | resharing | 1 | - | files_sharing | federation@@@outgoing | 1 | - | files_sharing | federation@@@incoming | 1 | - | files_sharing | group_sharing | 1 | - | files_sharing | share_with_group_members_only | EMPTY | - | files_sharing | share_with_membership_groups_only | EMPTY | - | files_sharing | auto_accept_share | EMPTY | - | files_sharing | user_enumeration@@@enabled | 1 | - | files_sharing | user_enumeration@@@group_members_only | EMPTY | - | files | bigfilechunking | 1 | - - @skipOnOcis - Scenario: Changing allow share dialog user enumeration - Given parameter "shareapi_allow_share_dialog_user_enumeration" of app "core" has been set to "no" - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | core | pollinterval | 30000 | - | core | webdav-root | remote.php/webdav | - | files_sharing | api_enabled | 1 | - | files_sharing | can_share | 1 | - | files_sharing | public@@@enabled | 1 | - | files_sharing | public@@@upload | 1 | - | files_sharing | public@@@send_mail | EMPTY | - | files_sharing | public@@@social_share | 1 | - | files_sharing | resharing | 1 | - | files_sharing | federation@@@outgoing | 1 | - | files_sharing | federation@@@incoming | 1 | - | files_sharing | group_sharing | 1 | - | files_sharing | share_with_group_members_only | EMPTY | - | files_sharing | user_enumeration@@@enabled | EMPTY | - | files | bigfilechunking | 1 | - - @skipOnOcis - Scenario: Changing allow share dialog user enumeration for group members only - Given parameter "shareapi_share_dialog_user_enumeration_group_members" of app "core" has been set to "yes" - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | core | pollinterval | 30000 | - | core | webdav-root | remote.php/webdav | - | files_sharing | api_enabled | 1 | - | files_sharing | can_share | 1 | - | files_sharing | public@@@enabled | 1 | - | files_sharing | public@@@upload | 1 | - | files_sharing | public@@@send_mail | EMPTY | - | files_sharing | public@@@social_share | 1 | - | files_sharing | resharing | 1 | - | files_sharing | federation@@@outgoing | 1 | - | files_sharing | federation@@@incoming | 1 | - | files_sharing | group_sharing | 1 | - | files_sharing | share_with_group_members_only | EMPTY | - | files_sharing | user_enumeration@@@enabled | 1 | - | files_sharing | user_enumeration@@@group_members_only | 1 | - | files | bigfilechunking | 1 | - - @skipOnOcis - Scenario: Changing allow mail notification - Given parameter "shareapi_allow_mail_notification" of app "core" has been set to "yes" - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | core | pollinterval | 30000 | - | core | webdav-root | remote.php/webdav | - | files_sharing | api_enabled | 1 | - | files_sharing | can_share | 1 | - | files_sharing | public@@@enabled | 1 | - | files_sharing | public@@@upload | 1 | - | files_sharing | public@@@send_mail | EMPTY | - | files_sharing | public@@@social_share | 1 | - | files_sharing | resharing | 1 | - | files_sharing | federation@@@outgoing | 1 | - | files_sharing | federation@@@incoming | 1 | - | files_sharing | group_sharing | 1 | - | files_sharing | share_with_group_members_only | EMPTY | - | files_sharing | user_enumeration@@@enabled | 1 | - | files_sharing | user_enumeration@@@group_members_only | EMPTY | - | files_sharing | user@@@send_mail | 1 | - | files | bigfilechunking | 1 | - - @skipOnOcis - Scenario: Changing exclude groups from sharing - Given parameter "shareapi_exclude_groups" of app "core" has been set to "yes" - And group "group1" has been created - And group "hash#group" has been created - And group "group-3" has been created - And parameter "shareapi_exclude_groups_list" of app "core" has been set to '["group1","hash#group","group-3"]' - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | core | pollinterval | 30000 | - | core | webdav-root | remote.php/webdav | - | files_sharing | api_enabled | 1 | - | files_sharing | can_share | 1 | - | files_sharing | public@@@enabled | 1 | - | files_sharing | public@@@upload | 1 | - | files_sharing | public@@@send_mail | EMPTY | - | files_sharing | public@@@social_share | 1 | - | files_sharing | resharing | 1 | - | files_sharing | federation@@@outgoing | 1 | - | files_sharing | federation@@@incoming | 1 | - | files_sharing | group_sharing | 1 | - | files_sharing | share_with_group_members_only | EMPTY | - | files_sharing | user_enumeration@@@enabled | 1 | - | files_sharing | user_enumeration@@@group_members_only | EMPTY | - | files | bigfilechunking | 1 | - - @skipOnOcis - Scenario: When in a group that is excluded from sharing, can_share is off - Given parameter "shareapi_exclude_groups" of app "core" has been set to "yes" - And user "Alice" has been created with default attributes and without skeleton files - And group "group1" has been created - And group "hash#group" has been created - And group "group-3" has been created - And group "ordinary-group" has been created - And user "Alice" has been added to group "hash#group" - And parameter "shareapi_exclude_groups_list" of app "core" has been set to '["group1","hash#group","group-3"]' - When user "Alice" retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | core | pollinterval | 30000 | - | core | webdav-root | remote.php/webdav | - | files_sharing | api_enabled | 1 | - | files_sharing | can_share | EMPTY | - | files_sharing | public@@@enabled | 1 | - | files_sharing | public@@@upload | 1 | - | files_sharing | public@@@send_mail | EMPTY | - | files_sharing | public@@@social_share | 1 | - | files_sharing | resharing | 1 | - | files_sharing | federation@@@outgoing | 1 | - | files_sharing | federation@@@incoming | 1 | - | files_sharing | group_sharing | 1 | - | files_sharing | share_with_group_members_only | EMPTY | - | files_sharing | user_enumeration@@@enabled | 1 | - | files_sharing | user_enumeration@@@group_members_only | EMPTY | - | files | bigfilechunking | 1 | - - @skipOnOcis - Scenario: When not in any group that is excluded from sharing, can_share is on - Given parameter "shareapi_exclude_groups" of app "core" has been set to "yes" - And user "Alice" has been created with default attributes and without skeleton files - And group "group1" has been created - And group "hash#group" has been created - And group "group-3" has been created - And group "ordinary-group" has been created - And user "Alice" has been added to group "ordinary-group" - And parameter "shareapi_exclude_groups_list" of app "core" has been set to '["group1","hash#group","group-3"]' - When user "Alice" retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | core | pollinterval | 30000 | - | core | webdav-root | remote.php/webdav | - | files_sharing | api_enabled | 1 | - | files_sharing | can_share | 1 | - | files_sharing | public@@@enabled | 1 | - | files_sharing | public@@@upload | 1 | - | files_sharing | public@@@send_mail | EMPTY | - | files_sharing | public@@@social_share | 1 | - | files_sharing | resharing | 1 | - | files_sharing | federation@@@outgoing | 1 | - | files_sharing | federation@@@incoming | 1 | - | files_sharing | group_sharing | 1 | - | files_sharing | share_with_group_members_only | EMPTY | - | files_sharing | user_enumeration@@@enabled | 1 | - | files_sharing | user_enumeration@@@group_members_only | EMPTY | - | files | bigfilechunking | 1 | - - @skipOnOcis - Scenario: When in a group that is excluded from sharing and in another group, can_share is off - Given parameter "shareapi_exclude_groups" of app "core" has been set to "yes" - And user "Alice" has been created with default attributes and without skeleton files - And group "group1" has been created - And group "hash#group" has been created - And group "group-3" has been created - And group "ordinary-group" has been created - And user "Alice" has been added to group "hash#group" - And user "Alice" has been added to group "ordinary-group" - And parameter "shareapi_exclude_groups_list" of app "core" has been set to '["group1","hash#group","group-3"]' - When user "Alice" retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | core | pollinterval | 30000 | - | core | webdav-root | remote.php/webdav | - | files_sharing | api_enabled | 1 | - | files_sharing | can_share | EMPTY | - | files_sharing | public@@@enabled | 1 | - | files_sharing | public@@@upload | 1 | - | files_sharing | public@@@send_mail | EMPTY | - | files_sharing | public@@@social_share | 1 | - | files_sharing | resharing | 1 | - | files_sharing | federation@@@outgoing | 1 | - | files_sharing | federation@@@incoming | 1 | - | files_sharing | group_sharing | 1 | - | files_sharing | share_with_group_members_only | EMPTY | - | files_sharing | user_enumeration@@@enabled | 1 | - | files_sharing | user_enumeration@@@group_members_only | EMPTY | - | files | bigfilechunking | 1 | - - @skipOnOcis - Scenario: blacklisted_files_regex is reported in capabilities - When the administrator retrieves the capabilities using the capabilities API - Then the OCS status code should be "100" - And the HTTP status code should be "200" - And the capabilities should contain - | capability | path_to_element | value | - | files | blacklisted_files_regex | \.(part\|filepart)$ | - @smokeTest Scenario: getting default capabilities with admin user When the administrator retrieves the capabilities using the capabilities API diff --git a/tests/acceptance/features/coreApiShareCreateSpecialToShares1/createShareExpirationDate.feature b/tests/acceptance/features/coreApiShareCreateSpecialToShares1/createShareExpirationDate.feature new file mode 100644 index 000000000..e69de29bb diff --git a/tests/acceptance/features/coreApiShareCreateSpecialToShares1/createShareUniqueReceivedNames.feature b/tests/acceptance/features/coreApiShareCreateSpecialToShares1/createShareUniqueReceivedNames.feature index 15739b704..b2efa2f54 100644 --- a/tests/acceptance/features/coreApiShareCreateSpecialToShares1/createShareUniqueReceivedNames.feature +++ b/tests/acceptance/features/coreApiShareCreateSpecialToShares1/createShareUniqueReceivedNames.feature @@ -12,7 +12,7 @@ Feature: resources shared with the same name are received with unique names | Carol | @smokeTest @issue-ocis-2131 - Scenario Outline: unique target names for incoming shares + Scenario: unique target names for incoming shares Given user "Alice" has created folder "/foo" And user "Brian" has created folder "/foo" When user "Alice" shares folder "/foo" with user "Carol" using the sharing API @@ -23,12 +23,4 @@ Feature: resources shared with the same name are received with unique names And the HTTP status code of responses on all endpoints should be "200" And user "Carol" should see the following elements | Shares/foo/ | - | | - @skipOnOcis - Examples: - | share | - | /Shares/foo (2)/ | - @skipOnOcV10 - Examples: - | share | - | /Shares/foo (1)/ | \ No newline at end of file + | /Shares/foo (1)/ | diff --git a/tests/acceptance/features/coreApiShareCreateSpecialToShares1/createShareWhenExcludedFromSharing.feature b/tests/acceptance/features/coreApiShareCreateSpecialToShares1/createShareWhenExcludedFromSharing.feature deleted file mode 100644 index 3b8da4550..000000000 --- a/tests/acceptance/features/coreApiShareCreateSpecialToShares1/createShareWhenExcludedFromSharing.feature +++ /dev/null @@ -1,83 +0,0 @@ -@api @files_sharing-app-required @issue-ocis-reva-41 @skipOnOcis -Feature: cannot share resources when in a group that is excluded from sharing - - Background: - Given the administrator has set the default folder for received shares to "Shares" - And auto-accept shares has been disabled - And user "Alice" has been created with default attributes and without skeleton files - And user "Brian" has been created with default attributes and without skeleton files - And group "grp1" has been created - And user "Brian" has been added to group "grp1" - - - Scenario Outline: user who is excluded from sharing tries to share a file with another user - Given using OCS API version "" - And parameter "shareapi_exclude_groups" of app "core" has been set to "yes" - And parameter "shareapi_exclude_groups_list" of app "core" has been set to '["grp1"]' - And user "Brian" has uploaded file "filesForUpload/textfile.txt" to "/fileToShare.txt" - When user "Brian" shares file "fileToShare.txt" with user "Alice" using the sharing API - Then the OCS status code should be "403" - And the HTTP status code should be "" - And the sharing API should report to user "Alice" that no shares are in the pending state - And as "Alice" file "Shares/fileToShare.txt" should not exist - And as "Alice" file "fileToShare.txt" should not exist - Examples: - | ocs_api_version | http_status_code | - | 1 | 200 | - | 2 | 403 | - - - Scenario Outline: user who is excluded from sharing tries to share a file with a group - Given using OCS API version "" - And user "Carol" has been created with default attributes and without skeleton files - And group "grp2" has been created - And user "Carol" has been added to group "grp2" - And parameter "shareapi_exclude_groups" of app "core" has been set to "yes" - And parameter "shareapi_exclude_groups_list" of app "core" has been set to '["grp1"]' - And user "Brian" has uploaded file "filesForUpload/textfile.txt" to "/fileToShare.txt" - When user "Brian" shares file "fileToShare.txt" with group "grp2" using the sharing API - Then the OCS status code should be "403" - And the HTTP status code should be "" - And the sharing API should report to user "Carol" that no shares are in the pending state - And as "Carol" file "Shares/fileToShare.txt" should not exist - And as "Carol" file "fileToShare.txt" should not exist - Examples: - | ocs_api_version | http_status_code | - | 1 | 200 | - | 2 | 403 | - - - Scenario Outline: user who is excluded from sharing tries to share a folder with another user - Given using OCS API version "" - And parameter "shareapi_exclude_groups" of app "core" has been set to "yes" - And parameter "shareapi_exclude_groups_list" of app "core" has been set to '["grp1"]' - And user "Brian" has created folder "folderToShare" - When user "Brian" shares folder "folderToShare" with user "Alice" using the sharing API - Then the OCS status code should be "403" - And the HTTP status code should be "" - And the sharing API should report to user "Alice" that no shares are in the pending state - And as "Alice" folder "Shares/folderToShare" should not exist - And as "Alice" folder "folderToShare" should not exist - Examples: - | ocs_api_version | http_status_code | - | 1 | 200 | - | 2 | 403 | - - - Scenario Outline: user who is excluded from sharing tries to share a folder with a group - Given using OCS API version "" - And group "grp0" has been created - And user "Alice" has been added to group "grp0" - And parameter "shareapi_exclude_groups" of app "core" has been set to "yes" - And parameter "shareapi_exclude_groups_list" of app "core" has been set to '["grp0"]' - And user "Alice" has created folder "folderToShare" - When user "Alice" shares folder "folderToShare" with group "grp1" using the sharing API - Then the OCS status code should be "403" - And the HTTP status code should be "" - And the sharing API should report to user "Brian" that no shares are in the pending state - And as "Brian" folder "Shares/folderToShare" should not exist - And as "Brian" folder "folderToShare" should not exist - Examples: - | ocs_api_version | http_status_code | - | 1 | 200 | - | 2 | 403 | diff --git a/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature b/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature index 4a2eb0300..ef445d866 100644 --- a/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature +++ b/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature @@ -33,13 +33,6 @@ Feature: share resources where the sharee receives the share in multiple ways | mimetype | text/plain | | storage_id | ANY_VALUE | | share_type | user | - @skipOnOcis - Examples: - | ocs_api_version | ocs_status_code | file_target | - | 1 | 100 | /Shares/textfile0 (2).txt | - | 2 | 200 | /Shares/textfile0 (2).txt | - - @skipOnOcV10 @issue-2131 Examples: | ocs_api_version | ocs_status_code | file_target | | 1 | 100 | /textfile0 (2).txt | @@ -129,13 +122,8 @@ Feature: share resources where the sharee receives the share in multiple ways | permissions | read,update | And the content of file "/Shares/randomfile.txt" for user "Alice" should be "First data" And the content of file "/Shares/randomfile (2).txt" for user "Alice" should be "Second data" - @skipOnOcis - Examples: - | ocs_api_version | file_target_1 | file_target_2 | - | 1 | /Shares/randomfile.txt | /Shares/randomfile (2).txt | - | 2 | /Shares/randomfile.txt | /Shares/randomfile (2).txt | - @skipOnOcV10 @issue-ocis-2131 + @issue-ocis-2131 Examples: | ocs_api_version | file_target_1 | file_target_2 | | 1 | /randomfile.txt | /randomfile (2).txt | @@ -169,13 +157,8 @@ Feature: share resources where the sharee receives the share in multiple ways | permissions | read,share | And as "Alice" folder "/Shares/zzzfolder/Brian" should exist And as "Alice" folder "/Shares/zzzfolder (2)/Carol" should exist - @skipOnOcis - Examples: - | ocs_api_version | file_target_1 | file_target_2 | ocs_status_code | - | 1 | /Shares/zzzfolder | /Shares/zzzfolder (2) | 100 | - | 2 | /Shares/zzzfolder | /Shares/zzzfolder (2) | 200 | - @skipOnOcV10 @issue-ocis-2131 + @issue-ocis-2131 Examples: | ocs_api_version | file_target_1 | file_target_2 | ocs_status_code | | 1 | /zzzfolder | /zzzfolder (2) | 100 | diff --git a/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareWhenShareWithOnlyMembershipGroups.feature b/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareWhenShareWithOnlyMembershipGroups.feature deleted file mode 100644 index 0ddcd246a..000000000 --- a/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareWhenShareWithOnlyMembershipGroups.feature +++ /dev/null @@ -1,127 +0,0 @@ -@api @files_sharing-app-required @issue-ocis-1328 -Feature: cannot share resources outside the group when share with membership groups is enabled - - Background: - Given the administrator has set the default folder for received shares to "Shares" - And auto-accept shares has been disabled - And user "Alice" has been created with default attributes and without skeleton files - - @issue-ocis-1328 @skipOnOcis - Scenario Outline: sharer should not be able to share a folder to a group which he/she is not member of when share with only member group is enabled - Given using OCS API version "" - And parameter "shareapi_only_share_with_membership_groups" of app "core" has been set to "yes" - And user "Brian" has been created with default attributes and without skeleton files - And group "grp0" has been created - And group "grp1" has been created - And user "Alice" has been added to group "grp0" - And user "Brian" has been added to group "grp1" - And user "Alice" has created folder "PARENT" - When user "Alice" shares folder "/PARENT" with group "grp1" using the sharing API - Then the OCS status code should be "" - And the HTTP status code should be "" - And as "Brian" folder "/PARENT" should not exist - And as "Brian" folder "/Shares/PARENT" should not exist - And the sharing API should report to user "Brian" that no shares are in the pending state - Examples: - | ocs_api_version | ocs_status_code | http_status_code | - | 1 | 403 | 200 | - | 2 | 403 | 403 | - - - Scenario Outline: sharer should be able to share a folder to a user who is not member of sharer group when share with only member group is enabled - Given using OCS API version "" - And parameter "shareapi_only_share_with_membership_groups" of app "core" has been set to "yes" - And user "Brian" has been created with default attributes and without skeleton files - And group "grp0" has been created - And user "Alice" has been added to group "grp0" - And user "Alice" has created folder "PARENT" - When user "Alice" shares folder "/PARENT" with user "Brian" using the sharing API - And user "Brian" accepts share "/PARENT" offered by user "Alice" using the sharing API - Then the OCS status code of responses on all endpoints should be "" - And the HTTP status code of responses on all endpoints should be "200" - And as "Brian" folder "/Shares/PARENT" should exist - But as "Brian" folder "/PARENT" should not exist - Examples: - | ocs_api_version | ocs_status_code | - | 1 | 100 | - | 2 | 200 | - - - Scenario Outline: sharer should be able to share a folder to a group which he/she is member of when share with only member group is enabled - Given using OCS API version "" - And parameter "shareapi_only_share_with_membership_groups" of app "core" has been set to "yes" - And user "Brian" has been created with default attributes and without skeleton files - And group "grp0" has been created - And user "Alice" has been added to group "grp0" - And user "Brian" has been added to group "grp0" - And user "Alice" has created folder "PARENT" - When user "Alice" shares folder "/PARENT" with group "grp0" using the sharing API - And user "Brian" accepts share "/PARENT" offered by user "Alice" using the sharing API - Then the OCS status code of responses on all endpoints should be "" - And the HTTP status code of responses on all endpoints should be "200" - And as "Brian" folder "/Shares/PARENT" should exist - But as "Brian" folder "/PARENT" should not exist - Examples: - | ocs_api_version | ocs_status_code | - | 1 | 100 | - | 2 | 200 | - - @issue-ocis-1328 @skipOnOcis - Scenario Outline: sharer should not be able to share a file to a group which he/she is not member of when share with only member group is enabled - Given using OCS API version "" - And parameter "shareapi_only_share_with_membership_groups" of app "core" has been set to "yes" - And user "Brian" has been created with default attributes and without skeleton files - And group "grp0" has been created - And group "grp1" has been created - And user "Alice" has been added to group "grp0" - And user "Brian" has been added to group "grp1" - And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/textfile0.txt" - When user "Alice" shares file "/textfile0.txt" with group "grp1" using the sharing API - Then the OCS status code should be "" - And the HTTP status code should be "" - And as "Brian" file "/textfile0.txt" should not exist - And as "Brian" file "/Shares/textfile0.txt" should not exist - And the sharing API should report to user "Brian" that no shares are in the pending state - Examples: - | ocs_api_version | ocs_status_code | http_status_code | - | 1 | 403 | 200 | - | 2 | 403 | 403 | - - - Scenario Outline: sharer should be able to share a file to a group which he/she is member of when share with only member group is enabled - Given using OCS API version "" - And parameter "shareapi_only_share_with_membership_groups" of app "core" has been set to "yes" - And user "Brian" has been created with default attributes and without skeleton files - And group "grp0" has been created - And user "Alice" has been added to group "grp0" - And user "Brian" has been added to group "grp0" - And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/textfile0.txt" - When user "Alice" shares folder "/textfile0.txt" with group "grp0" using the sharing API - And user "Brian" accepts share "/textfile0.txt" offered by user "Alice" using the sharing API - Then the OCS status code of responses on all endpoints should be "" - And the HTTP status code of responses on all endpoints should be "200" - And as "Brian" file "/Shares/textfile0.txt" should exist - But as "Brian" file "/textfile0.txt" should not exist - Examples: - | ocs_api_version | ocs_status_code | - | 1 | 100 | - | 2 | 200 | - - - Scenario Outline: sharer should be able to share a file to a user who is not a member of sharer group when share with only member group is enabled - Given using OCS API version "" - And parameter "shareapi_only_share_with_membership_groups" of app "core" has been set to "yes" - And user "Brian" has been created with default attributes and without skeleton files - And group "grp0" has been created - And user "Alice" has been added to group "grp0" - And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/textfile0.txt" - When user "Alice" shares folder "/textfile0.txt" with user "Brian" using the sharing API - And user "Brian" accepts share "/textfile0.txt" offered by user "Alice" using the sharing API - Then the OCS status code of responses on all endpoints should be "" - And the HTTP status code of responses on all endpoints should be "200" - And as "Brian" file "/Shares/textfile0.txt" should exist - But as "Brian" file "/textfile0.txt" should not exist - Examples: - | ocs_api_version | ocs_status_code | - | 1 | 100 | - | 2 | 200 | diff --git a/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature b/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature index a7931f60b..abacfbc6f 100644 --- a/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature +++ b/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature @@ -274,7 +274,7 @@ Feature: sharing | 1 | 100 | | 2 | 200 | - + Scenario Outline: sharing again an own file while belonging to a group Given using OCS API version "" And user "Brian" has been created with default attributes and without skeleton files @@ -326,7 +326,7 @@ Feature: sharing | 1 | 100 | | 2 | 200 | - + Scenario Outline: user shares a file with file name longer than 64 chars to another user Given using OCS API version "" And user "Brian" has been created with default attributes and without skeleton files @@ -342,7 +342,7 @@ Feature: sharing | 1 | 100 | | 2 | 200 | - + Scenario Outline: user shares a file with file name longer than 64 chars to a group Given using OCS API version "" And group "grp1" has been created @@ -360,7 +360,7 @@ Feature: sharing | 1 | 100 | | 2 | 200 | - + Scenario Outline: user shares a folder with folder name longer than 64 chars to another user Given using OCS API version "" And user "Brian" has been created with default attributes and without skeleton files @@ -377,7 +377,7 @@ Feature: sharing | 1 | 100 | | 2 | 200 | - + Scenario Outline: user shares a folder with folder name longer than 64 chars to a group Given using OCS API version "" And group "grp1" has been created @@ -523,11 +523,6 @@ Feature: sharing And file "/textfile0.txt" should not be included as path in the response And as "Brian" file "/Shares/textfile0.txt" should not exist And as "Carol" file "/Shares/textfile0.txt" should not exist - @skipOnOcis - Examples: - | ocs_api_version | ocs_status_code | path | - | 1 | 100 | /Shares/textfile0.txt | - | 2 | 200 | /Shares/textfile0.txt | @skipOnOcV10 @issue-ocis-2441 Examples: | ocs_api_version | ocs_status_code | path | diff --git a/tests/acceptance/features/coreApiShareManagementBasicToShares/excludeGroupFromReceivingSharesToSharesFolder.feature b/tests/acceptance/features/coreApiShareManagementBasicToShares/excludeGroupFromReceivingSharesToSharesFolder.feature index 4cad03c72..4fa45a34b 100644 --- a/tests/acceptance/features/coreApiShareManagementBasicToShares/excludeGroupFromReceivingSharesToSharesFolder.feature +++ b/tests/acceptance/features/coreApiShareManagementBasicToShares/excludeGroupFromReceivingSharesToSharesFolder.feature @@ -18,96 +18,6 @@ Feature: Exclude groups from receiving shares And user "Brian" has been added to group "grp1" And user "David" has been added to group "grp2" - @skipOnOcis - Scenario Outline: user cannot share with a group that is excluded from receiving shares but can share with other groups - Given using OCS API version "" - And user "Alice" has created folder "PARENT" - And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "fileToShare.txt" - And the administrator has added group "grp1" to the exclude groups from receiving shares list - When user "Alice" shares file "fileToShare.txt" with group "grp1" using the sharing API - Then the OCS status code should be "403" - And the HTTP status code should be "" - And the OCS status message should be "The group is blacklisted for sharing" - And the sharing API should report to user "Brian" that no shares are in the pending state - When user "Alice" shares folder "PARENT" with group "grp1" using the sharing API - Then the OCS status code should be "403" - And the HTTP status code should be "" - And the OCS status message should be "The group is blacklisted for sharing" - And the sharing API should report to user "Brian" that no shares are in the pending state - When user "Alice" shares file "fileToShare.txt" with group "grp2" using the sharing API - And user "Alice" shares folder "PARENT" with group "grp2" using the sharing API - And user "David" accepts share "/fileToShare.txt" offered by user "Alice" using the sharing API - And user "David" accepts share "/PARENT" offered by user "Alice" using the sharing API - Then as "David" file "/Shares/fileToShare.txt" should exist - And as "David" folder "/Shares/PARENT" should exist - Examples: - | ocs_api_version | http_status_code | - | 1 | 200 | - | 2 | 403 | - - @skipOnOcis - Scenario Outline: exclude multiple groups from receiving shares stops the user to share with any of them - Given using OCS API version "" - And group "grp3" has been created - And user "Brian" has been added to group "grp3" - And the administrator has added group "grp1, grp2, grp3" to the exclude group from sharing list - And user "Alice" has created folder "PARENT" - And user "Alice" has created folder "PARENT/CHILD" - And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "fileToShare.txt" - And the administrator has added group "grp1" to the exclude groups from receiving shares list - And the administrator has added group "grp2" to the exclude groups from receiving shares list - And the administrator has added group "grp3" to the exclude groups from receiving shares list - When user "Alice" shares file "fileToShare.txt" with group "grp1" using the sharing API - Then the OCS status code should be "403" - And the HTTP status code should be "" - And the OCS status message should be "The group is blacklisted for sharing" - And the sharing API should report to user "Brian" that no shares are in the pending state - When user "Alice" shares folder "PARENT" with group "grp2" using the sharing API - Then the OCS status code should be "403" - And the HTTP status code should be "" - And the OCS status message should be "The group is blacklisted for sharing" - And the sharing API should report to user "David" that no shares are in the pending state - When user "Alice" shares folder "PARENT/CHILD" with group "grp3" using the sharing API - Then the OCS status code should be "403" - And the HTTP status code should be "" - And the OCS status message should be "The group is blacklisted for sharing" - And the sharing API should report to user "Brian" that no shares are in the pending state - Examples: - | ocs_api_version | http_status_code | - | 1 | 200 | - | 2 | 403 | - - @skipOnOcis - Scenario Outline: user cannot reshare a received share with a group that is excluded from receiving shares but can share with other groups - Given using OCS API version "" - And user "Carol" has created folder "PARENT" - And user "Carol" has uploaded file "filesForUpload/textfile.txt" to "textfile0.txt" - And user "Carol" has shared file "textfile0.txt" with user "Alice" - And user "Alice" has accepted share "/textfile0.txt" offered by user "Carol" - And user "Carol" has shared folder "PARENT" with user "Alice" - And user "Alice" has accepted share "/PARENT" offered by user "Carol" - And the administrator has added group "grp1" to the exclude groups from receiving shares list - When user "Alice" shares file "/Shares/textfile0.txt" with group "grp1" using the sharing API - Then the OCS status code should be "403" - And the HTTP status code should be "" - And the OCS status message should be "The group is blacklisted for sharing" - And the sharing API should report to user "Brian" that no shares are in the pending state - When user "Alice" shares folder "/Shares/PARENT" with group "grp1" using the sharing API - Then the OCS status code should be "403" - And the HTTP status code should be "" - And the OCS status message should be "The group is blacklisted for sharing" - And the sharing API should report to user "Brian" that no shares are in the pending state - When user "Alice" shares file "/Shares/textfile0.txt" with group "grp2" using the sharing API - And user "Alice" shares folder "/Shares/PARENT" with group "grp2" using the sharing API - And user "David" accepts share "/textfile0.txt" offered by user "Alice" using the sharing API - And user "David" accepts share "/PARENT" offered by user "Alice" using the sharing API - Then as "David" file "/Shares/textfile0.txt" should exist - And as "David" folder "/Shares/PARENT" should exist - Examples: - | ocs_api_version | http_status_code | - | 1 | 200 | - | 2 | 403 | - Scenario Outline: sharing with a user that is part of a group that is excluded from receiving shares still works Given using OCS API version "" diff --git a/tests/acceptance/features/coreApiShareManagementToShares/mergeShare.feature b/tests/acceptance/features/coreApiShareManagementToShares/mergeShare.feature index a28b21edd..0d195ba9a 100644 --- a/tests/acceptance/features/coreApiShareManagementToShares/mergeShare.feature +++ b/tests/acceptance/features/coreApiShareManagementToShares/mergeShare.feature @@ -108,14 +108,9 @@ Feature: sharing And as user "Brian" folder "/merge-test-inside-twogroups-perms" should contain a property "oc:permissions" with value "" or with value "" And as "Brian" folder "/Shares/merge-test-inside-twogroups-perms" should not exist And as "Brian" folder "/Shares/merge-test-inside-twogroups-perms (2)" should not exist - @skipOnOcV10 Examples: | expected_permission_1 | expected_permission_2 | | RDNVCKZ | RMDNVCKZ | - @skipOnOcis - Examples: - | expected_permission_1 | expected_permission_2 | - | RDNVCK | RMDNVCK | Scenario: Merging shares for recipient when shared from outside with group then user and recipient renames in between diff --git a/tests/acceptance/features/coreApiShareOperationsToShares1/gettingShares.feature b/tests/acceptance/features/coreApiShareOperationsToShares1/gettingShares.feature index 0018e5b27..7a6c9859f 100644 --- a/tests/acceptance/features/coreApiShareOperationsToShares1/gettingShares.feature +++ b/tests/acceptance/features/coreApiShareOperationsToShares1/gettingShares.feature @@ -106,8 +106,7 @@ Feature: sharing | 1 | 100 | | 2 | 200 | - @smokeTest @toFixOnOCIS @issue-ocis-reva-357 @issue-ocis-reva-301 @issue-ocis-reva-302 - #after fixing all the issues merge this scenario with the one below + @smokeTest @issue-ocis-reva-357 @issue-ocis-reva-301 @issue-ocis-reva-302 Scenario Outline: getting share info of a share Given using OCS API version "" And user "Alice" has uploaded file with content "some data" to "/file_to_share.txt" @@ -138,38 +137,6 @@ Feature: sharing | 1 | 100 | | 2 | 200 | - @smokeTest @toFixOnOCIS @issue-ocis-reva-357 @issue-ocis-reva-301 @issue-ocis-reva-302 - #after fixing all the issues merge this scenario with the one above - Scenario Outline: getting share info of a share (Bug demonstration for ocis) - Given using OCS API version "" - And user "Alice" has uploaded file with content "some data" to "/file_to_share.txt" - And user "Alice" has shared file "file_to_share.txt" with user "Brian" - And user "Brian" has accepted share "/file_to_share.txt" offered by user "Alice" - When user "Alice" gets the info of the last share using the sharing API - Then the OCS status code should be "" - And the HTTP status code should be "200" - And the fields of the last response to user "Alice" sharing with user "Brian" should include - | id | A_STRING | - | item_type | file | - | item_source | A_STRING | - | share_type | user | - | share_with | %username% | - | file_source | A_STRING | - | file_target | /Shares/file_to_share.txt | - | path | /file_to_share.txt | - | permissions | share,read,update | - | stime | A_NUMBER | - | storage | A_STRING | - | mail_send | 0 | - | uid_owner | %username% | -# | share_with_displayname | %displayname% | -# | displayname_owner | %displayname% | -# | mimetype | text/plain | - Examples: - | ocs_api_version | ocs_status_code | - | 1 | 100 | - | 2 | 200 | - @issue-ocis-reva-374 Scenario Outline: Get a share with a user that didn't receive the share Given using OCS API version "" diff --git a/tests/acceptance/features/coreApiSharePublicLink3/updatePublicLinkShare.feature b/tests/acceptance/features/coreApiSharePublicLink3/updatePublicLinkShare.feature index 9eba9b1d4..299961af9 100644 --- a/tests/acceptance/features/coreApiSharePublicLink3/updatePublicLinkShare.feature +++ b/tests/acceptance/features/coreApiSharePublicLink3/updatePublicLinkShare.feature @@ -119,39 +119,6 @@ Feature: update a public link share | 1 | 100 | | 2 | 200 | - @issue-ocis-reva-336 - Scenario Outline: Creating a new public link share, updating its expiration date and getting its info (ocis Bug demonstration) - Given using OCS API version "" - And user "Alice" has created folder "FOLDER" - And user "Alice" has created a public link share with settings - | path | FOLDER | - And user "Alice" has updated the last public link share with - | expireDate | 2040-01-01T23:59:59+0100 | - When user "Alice" gets the info of the last public link share using the sharing API - Then the OCS status code should be "" - And the HTTP status code should be "200" - And the fields of the last response to user "Alice" should include - | id | A_STRING | - | item_type | folder | - | item_source | A_STRING | - | share_type | public_link | - | file_source | A_STRING | - | file_target | /FOLDER | - | permissions | read | - | stime | A_NUMBER | - | expiration | 2040-01-01 | - | token | A_TOKEN | - | storage | A_STRING | - | mail_send | 0 | - | uid_owner | %username% | - | displayname_owner | %displayname% | - | url | AN_URL | - | mimetype | httpd/unix-directory | - Examples: - | ocs_api_version | ocs_status_code | - | 1 | 100 | - | 2 | 200 | - @issue-ocis-reva-336 Scenario Outline: Creating a new public link share, updating its password and getting its info Given using OCS API version "" @@ -305,6 +272,7 @@ Feature: update a public link share | 1 | 200 | | 2 | 404 | + Scenario Outline: Adding public upload to a shared folder as recipient is allowed with permissions using the public API Given the administrator has set the default folder for received shares to "Shares" And auto-accept shares has been disabled diff --git a/tests/acceptance/features/coreApiShareReshareToShares2/reShareDisabled.feature b/tests/acceptance/features/coreApiShareReshareToShares2/reShareDisabled.feature index 1749f5f2b..54e43bc2e 100644 --- a/tests/acceptance/features/coreApiShareReshareToShares2/reShareDisabled.feature +++ b/tests/acceptance/features/coreApiShareReshareToShares2/reShareDisabled.feature @@ -10,23 +10,6 @@ Feature: resharing can be disabled | Brian | And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/textfile0.txt" - @smokeTest @skipOnOcis - Scenario Outline: resharing a file is not allowed when allow resharing has been disabled - 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 "share,update,read" - And user "Brian" has accepted share "/textfile0.txt" offered by user "Alice" - And parameter "shareapi_allow_resharing" of app "core" has been set to "no" - When user "Brian" shares file "/Shares/textfile0.txt" with user "Carol" with permissions "share,update,read" using the sharing API - Then the OCS status code should be "404" - And the HTTP status code should be "" - And as "Carol" file "/Shares/textfile0.txt" should not exist - And the sharing API should report to user "Carol" that no shares are in the pending state - Examples: - | ocs_api_version | http_status_code | - | 1 | 200 | - | 2 | 404 | - Scenario Outline: ordinary sharing is allowed when allow resharing has been disabled Given using OCS API version "" diff --git a/tests/acceptance/features/coreApiShareReshareToShares2/reShareWhenShareWithOnlyMembershipGroups.feature b/tests/acceptance/features/coreApiShareReshareToShares2/reShareWhenShareWithOnlyMembershipGroups.feature deleted file mode 100644 index 0e4b2410f..000000000 --- a/tests/acceptance/features/coreApiShareReshareToShares2/reShareWhenShareWithOnlyMembershipGroups.feature +++ /dev/null @@ -1,48 +0,0 @@ -@api @files_sharing-app-required @issue-ocis-1289 @issue-ocis-reva-194 @issue-ocis-1328 @skipOnOcis -Feature: resharing a resource with an expiration date - - Background: - Given the administrator has set the default folder for received shares to "Shares" - And auto-accept shares has been disabled - And these users have been created with default attributes and without skeleton files: - | username | - | Alice | - | Brian | - - - Scenario Outline: User should not be able to re-share a folder to a group which he/she is not member of when share with only member group is enabled - Given using OCS API version "" - And parameter "shareapi_only_share_with_membership_groups" 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" - And user "Alice" has created folder "/PARENT" - And user "Alice" has shared folder "/PARENT" with user "Brian" - And user "Brian" has accepted share "/PARENT" offered by user "Alice" - When user "Brian" shares folder "/Shares/PARENT" with group "grp1" using the sharing API - Then the OCS status code should be "" - And the HTTP status code should be "" - And as "Carol" folder "/Shares/PARENT" should not exist - Examples: - | ocs_api_version | ocs_status_code | http_status_code | - | 1 | 403 | 200 | - | 2 | 403 | 403 | - - - Scenario Outline: User should not be able to re-share a file to a group which he/she is not member of when share with only member group is enabled - Given using OCS API version "" - And parameter "shareapi_only_share_with_membership_groups" 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" - And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/textfile0.txt" - And user "Alice" has shared file "/textfile0.txt" with user "Brian" - And user "Brian" has accepted share "/textfile0.txt" offered by user "Alice" - When user "Brian" shares folder "/Shares/textfile0.txt" with group "grp1" using the sharing API - Then the OCS status code should be "" - And the HTTP status code should be "" - And as "Carol" folder "/Shares/textfile0.txt" should not exist - Examples: - | ocs_api_version | ocs_status_code | http_status_code | - | 1 | 403 | 200 | - | 2 | 403 | 403 | diff --git a/tests/acceptance/features/coreApiShareUpdateToShares/updateShare.feature b/tests/acceptance/features/coreApiShareUpdateToShares/updateShare.feature index a0e49f8f5..37976edc4 100644 --- a/tests/acceptance/features/coreApiShareUpdateToShares/updateShare.feature +++ b/tests/acceptance/features/coreApiShareUpdateToShares/updateShare.feature @@ -190,12 +190,7 @@ Feature: sharing | mimetype | httpd/unix-directory | And as "Alice" folder "/Alice-folder/folder2" should not exist And as "Carol" folder "/Carol-folder/folder2" should exist - @skipOnOcis - Examples: - | path | - | /Shares/Carol-folder | - - @skipOnOcV10 @issue-2442 + @issue-2442 Examples: | path | | /Carol-folder | diff --git a/tests/acceptance/features/coreApiTranslation/translation.feature b/tests/acceptance/features/coreApiTranslation/translation.feature deleted file mode 100644 index 290a9de93..000000000 --- a/tests/acceptance/features/coreApiTranslation/translation.feature +++ /dev/null @@ -1,36 +0,0 @@ -@api @skipOnLDAP @skipOnOcis -Feature: translate messages in api response to preferred language - As a user - I want response messages to be translated in preferred language - So that I can see and understand the response messages in my language - - Scenario Outline: user tries to get non existing share and uses some preferred language - Given these users have been created with default attributes and without skeleton files: - | username | - | Alice | - | Brian | - | Carol | - And using DAV path - And user "Brian" has uploaded file "filesForUpload/textfile.txt" to "/textfile0.txt" - And user "Brian" has shared file "textfile0.txt" with user "Carol" - When user "Alice" gets the info of the last share in language "" using the sharing API - Then the OCS status code should be "404" - And the OCS status message should be "Wrong share ID, share doesn't exist" in language "" - Examples: - | dav_version | language | - | old | de-DE | - | old | es-ES | - | old | zh-CN | - | old | fr-FR | - | new | de-DE | - | new | es-ES | - | new | zh-CN | - | new | fr-FR | - - @skipOnOcV10 @personalSpace - Examples: - | dav_version | language | - | spaces | de-DE | - | spaces | es-ES | - | spaces | zh-CN | - | spaces | fr-FR | diff --git a/tests/acceptance/features/coreApiTrashbin/trashbinDelete.feature b/tests/acceptance/features/coreApiTrashbin/trashbinDelete.feature index ae114b9e8..5d12f53d4 100644 --- a/tests/acceptance/features/coreApiTrashbin/trashbinDelete.feature +++ b/tests/acceptance/features/coreApiTrashbin/trashbinDelete.feature @@ -98,11 +98,7 @@ Feature: files and folders can be deleted from the trashbin And as "Alice" the file with original path "/textfile0.txt" should exist in the trashbin And as "Alice" the file with original path "/PARENT/parent.txt" should exist in the trashbin And as "Alice" the file with original path "/PARENT/CHILD/child.txt" should exist in the trashbin - @skipOnOcis - Examples: - | dav-path | status-code | - | new | 401 | - @skipOnOcV10 @personalSpace + @personalSpace Examples: | dav-path | status-code | | new | 404 | diff --git a/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature b/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature index c7e9dec76..314d05acf 100644 --- a/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature +++ b/tests/acceptance/features/coreApiTrashbin/trashbinFilesFolders.feature @@ -188,11 +188,7 @@ Feature: files and folders exist in the trashbin after being deleted And the last webdav response should not contain the following elements | path | user | | textfile1.txt | testtrashbin100 | - @skipOnOcis - Examples: - | dav-path | status-code | - | new | 401 | - @skipOnOcV10 @personalSpace + @personalSpace Examples: | dav-path | status-code | | new | 404 | @@ -213,11 +209,7 @@ Feature: files and folders exist in the trashbin after being deleted | path | user | | textfile0.txt | testtrashbin101 | | textfile2.txt | testtrashbin101 | - @skipOnOcis - Examples: - | dav-path | status-code | - | new | 401 | - @skipOnOcV10 @personalSpace + @personalSpace Examples: | dav-path | status-code | | new | 404 | @@ -243,11 +235,7 @@ Feature: files and folders exist in the trashbin after being deleted | textfile0.txt | testtrashbin102 | | textfile2.txt | testtrashbin102 | | textfile3.txt | testtrashbin102 | - @skipOnOcis - Examples: - | dav-path | status-code | - | new | 401 | - @skipOnOcV10 @personalSpace + @personalSpace Examples: | dav-path | status-code | | new | 404 | @@ -260,11 +248,7 @@ Feature: files and folders exist in the trashbin after being deleted And user "testtrashbinempty" has uploaded file "filesForUpload/textfile.txt" to "/textfile1.txt" When user "Alice" tries to list the trashbin content for user "testtrashbinempty" Then the HTTP status code should be "" - @skipOnOcis - Examples: - | dav-path | status-code | - | new | 401 | - @skipOnOcV10 @personalSpace + @personalSpace Examples: | dav-path | status-code | | new | 404 | diff --git a/tests/acceptance/features/coreApiTrashbinRestore/trashbinRestore.feature b/tests/acceptance/features/coreApiTrashbinRestore/trashbinRestore.feature index f516c5c13..05a1b50c9 100644 --- a/tests/acceptance/features/coreApiTrashbinRestore/trashbinRestore.feature +++ b/tests/acceptance/features/coreApiTrashbinRestore/trashbinRestore.feature @@ -177,12 +177,6 @@ Feature: Restore deleted files/folders And as "Alice" the folder with original path "/textfile0.txt" should exist in the trashbin And user "Alice" should not see the following elements | /textfile0.txt | - @skipOnOcis - Examples: - | dav-path | status-code | - | old | 401 | - | new | 401 | - @skipOnOcV10 Examples: | dav-path | status-code | | old | 404 | diff --git a/tests/acceptance/features/coreApiWebdavMove1/moveFolder.feature b/tests/acceptance/features/coreApiWebdavMove1/moveFolder.feature index bd8cd64da..0ea0ef205 100644 --- a/tests/acceptance/features/coreApiWebdavMove1/moveFolder.feature +++ b/tests/acceptance/features/coreApiWebdavMove1/moveFolder.feature @@ -151,51 +151,3 @@ Feature: move (rename) folder Examples: | dav_version | | spaces | - - @files_sharing-app-required @skipOnOcis - Scenario Outline: Moving a folder out of a shared folder as the sharee and as the sharer - Given using DAV path - And user "Brian" has been created with default attributes and without skeleton files - And user "Brian" has created folder "/testshare" - And user "Brian" has created folder "/testshare/testsubfolder" - And user "Brian" has uploaded file with content "test data" to "/testshare/testsubfolder/testfile.txt" - And user "Brian" has created a share with settings - | path | testshare | - | shareType | user | - | permissions | change | - | shareWith | Alice | - When user "" moves folder "/testshare/testsubfolder" to "/testsubfolder" using the WebDAV API - Then the HTTP status code should be "201" - And the content of file "/testsubfolder/testfile.txt" for user "" should be "test data" - And as "Alice" folder "/testshare/testsubfolder" should not exist - And as "Brian" folder "/testshare/testsubfolder" should not exist - Examples: - | dav_version | mover | - | old | Alice | - | old | Brian | - | new | Alice | - | new | Brian | - - @files_sharing-app-required @skipOnOcis - Scenario Outline: Moving a folder into a shared folder as the sharee and as the sharer - Given using DAV path - And user "Brian" has been created with default attributes and without skeleton files - And user "Brian" has created folder "/testshare" - And user "Brian" has created a share with settings - | path | testshare | - | shareType | user | - | permissions | change | - | shareWith | Alice | - And user "" has created folder "/testsubfolder" - And user "" has uploaded file with content "test data" to "/testsubfolder/testfile.txt" - When user "" moves folder "/testsubfolder" to "/testshare/testsubfolder" using the WebDAV API - Then the HTTP status code should be "201" - And the content of file "/testshare/testsubfolder/testfile.txt" for user "Alice" should be "test data" - And the content of file "/testshare/testsubfolder/testfile.txt" for user "Brian" should be "test data" - And as "" file "/testsubfolder" should not exist - Examples: - | dav_version | mover | - | old | Alice | - | old | Brian | - | new | Alice | - | new | Brian | \ No newline at end of file diff --git a/tests/acceptance/features/coreApiWebdavMove2/moveFile.feature b/tests/acceptance/features/coreApiWebdavMove2/moveFile.feature index 9255feef2..72a518fbe 100644 --- a/tests/acceptance/features/coreApiWebdavMove2/moveFile.feature +++ b/tests/acceptance/features/coreApiWebdavMove2/moveFile.feature @@ -105,92 +105,6 @@ Feature: move (rename) file | dav_version | | spaces | - @files_sharing-app-required @skipOnOcis - Scenario Outline: Moving a file into a shared folder as the sharee and as the sharer - Given using DAV path - And user "Brian" has been created with default attributes and without skeleton files - And user "Brian" has created folder "/testshare" - And user "Brian" has created a share with settings - | path | testshare | - | shareType | user | - | permissions | change | - | shareWith | Alice | - And user "" has uploaded file with content "test data" to "/testfile.txt" - When user "" moves file "/testfile.txt" to "/testshare/testfile.txt" using the WebDAV API - Then the HTTP status code should be "201" - And the content of file "/testshare/testfile.txt" for user "Alice" should be "test data" - And the content of file "/testshare/testfile.txt" for user "Brian" should be "test data" - And as "" file "/testfile.txt" should not exist - Examples: - | dav_version | mover | - | old | Alice | - | new | Alice | - | old | Brian | - | new | Brian | - - @files_sharing-app-required @skipOnOcis - Scenario Outline: Moving a file out of a shared folder as the sharee and as the sharer - Given using DAV path - And user "Brian" has been created with default attributes and without skeleton files - And user "Brian" has created folder "/testshare" - And user "Brian" has uploaded file with content "test data" to "/testshare/testfile.txt" - And user "Brian" has created a share with settings - | path | testshare | - | shareType | user | - | permissions | change | - | shareWith | Alice | - When user "" moves file "/testshare/testfile.txt" to "/testfile.txt" using the WebDAV API - Then the HTTP status code should be "201" - And the content of file "/testfile.txt" for user "" should be "test data" - And as "Alice" file "/testshare/testfile.txt" should not exist - And as "Brian" file "/testshare/testfile.txt" should not exist - Examples: - | dav_version | mover | - | old | Alice | - | new | Alice | - | old | Brian | - | new | Brian | - - @files_sharing-app-required @skipOnOcis - Scenario Outline: Moving a file to a shared folder with no permissions - Given using DAV path - And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "textfile0.txt" - And user "Brian" has been created with default attributes and without skeleton files - And user "Brian" has created folder "/testshare" - And user "Brian" has created a share with settings - | path | testshare | - | shareType | user | - | permissions | read | - | shareWith | Alice | - When user "Alice" moves file "/textfile0.txt" to "/testshare/textfile0.txt" using the WebDAV API - Then the HTTP status code should be "403" - And user "Alice" should not be able to download file "/testshare/textfile0.txt" - Examples: - | dav_version | - | old | - | new | - - @files_sharing-app-required @skipOnOcis - Scenario Outline: Moving a file to overwrite a file in a shared folder with no permissions - Given using DAV path - And user "Alice" has uploaded file with content "ownCloud test text file 0" to "textfile0.txt" - And user "Brian" has been created with default attributes and without skeleton files - And user "Brian" has created folder "/testshare" - And user "Brian" has uploaded file with content "Welcome to ownCloud" to "fileToCopy.txt" - And user "Brian" has created a share with settings - | path | testshare | - | shareType | user | - | permissions | read | - | shareWith | Alice | - And user "Brian" has copied file "/fileToCopy.txt" to "/testshare/overwritethis.txt" - When user "Alice" moves file "/textfile0.txt" to "/testshare/overwritethis.txt" using the WebDAV API - Then the HTTP status code should be "403" - And the content of file "/testshare/overwritethis.txt" for user "Alice" should be "Welcome to ownCloud" - Examples: - | dav_version | - | old | - | new | - Scenario Outline: move file into a not-existing folder Given using DAV path @@ -244,31 +158,6 @@ Feature: move (rename) file | dav_version | | spaces | - @files_sharing-app-required @skipOnOcis - Scenario Outline: Checking file id after a move between received shares - Given using DAV path - And user "Brian" has been created with default attributes and without skeleton files - And user "Alice" has created folder "/folderA" - And user "Alice" has created folder "/folderB" - And user "Alice" has shared folder "/folderA" with user "Brian" - And user "Alice" has shared folder "/folderB" with user "Brian" - And user "Brian" has created folder "/folderA/ONE" - And user "Brian" has stored id of folder "/folderA/ONE" - And user "Brian" has created folder "/folderA/ONE/TWO" - When user "Brian" moves folder "/folderA/ONE" to "/folderB/ONE" using the WebDAV API - Then the HTTP status code should be "201" - And as "Brian" folder "/folderA" should exist - And as "Brian" folder "/folderA/ONE" should not exist - # yes, a weird bug used to make this one fail - And as "Brian" folder "/folderA/ONE/TWO" should not exist - And as "Brian" folder "/folderB/ONE" should exist - And as "Brian" folder "/folderB/ONE/TWO" should exist - And user "Brian" folder "/folderB/ONE" should have the previously stored id - Examples: - | dav_version | - | old | - | new | - @issue-ocis-reva-211 Scenario Outline: Renaming a file to a path with extension .part should not be possible Given using DAV path @@ -577,4 +466,4 @@ Feature: move (rename) file @skipOnOcV10 @personalSpace Examples: | dav_version | - | spaces | \ No newline at end of file + | spaces | diff --git a/tests/acceptance/features/coreApiWebdavPreviews/previewsAutoAdustedSizing.feature b/tests/acceptance/features/coreApiWebdavPreviews/previewsAutoAdustedSizing.feature index 1246c1e91..422a578d1 100644 --- a/tests/acceptance/features/coreApiWebdavPreviews/previewsAutoAdustedSizing.feature +++ b/tests/acceptance/features/coreApiWebdavPreviews/previewsAutoAdustedSizing.feature @@ -10,7 +10,7 @@ Feature: sizing of previews of files downloaded through the webdav API Background: Given user "Alice" has been created with default attributes and without skeleton files - @skipOnOcV10 + Scenario Outline: download different sizes of previews of file Given user "Alice" has uploaded file "filesForUpload/lorem.txt" to "/parent.txt" When user "Alice" downloads the preview of "/parent.txt" with width and height using the WebDAV API diff --git a/tests/acceptance/features/coreApiWebdavPreviews/previewsExactSizing.feature b/tests/acceptance/features/coreApiWebdavPreviews/previewsExactSizing.feature deleted file mode 100644 index f113a170b..000000000 --- a/tests/acceptance/features/coreApiWebdavPreviews/previewsExactSizing.feature +++ /dev/null @@ -1,25 +0,0 @@ -@api @preview-extension-required -Feature: sizing of previews of files downloaded through the webdav API - As a user - I want previews to be the exact requested size even when I ask for an unusual preview size combination - So that the previews always have the exact size that I want as a user/client. - - This is optional behavior of an implementation. oC10 happens like this, - but OCIS does an auto-fix of the aspect ratio. - - Background: - Given user "Alice" has been created with default attributes and without skeleton files - - @skipOnOcis - Scenario Outline: download different sizes of previews of file - Given user "Alice" has uploaded file "filesForUpload/lorem.txt" to "/parent.txt" - When user "Alice" downloads the preview of "/parent.txt" with width and height using the WebDAV API - Then the HTTP status code should be "200" - And the downloaded image should be pixels wide and pixels high - Examples: - | width | height | - | 1 | 1 | - | 32 | 32 | - | 1024 | 1024 | - | 1 | 1024 | - | 1024 | 1 | diff --git a/tests/acceptance/features/coreApiWebdavProperties2/getFileProperties.feature b/tests/acceptance/features/coreApiWebdavProperties2/getFileProperties.feature index 9466c5d83..1e991ff63 100644 --- a/tests/acceptance/features/coreApiWebdavProperties2/getFileProperties.feature +++ b/tests/acceptance/features/coreApiWebdavProperties2/getFileProperties.feature @@ -306,19 +306,12 @@ Feature: get file properties And the value of the item "/d:error/s:message" in the response about user "Alice" should be "" or "" And the value of the item "/d:error/s:exception" in the response about user "Alice" should be "Sabre\DAV\Exception\NotFound" - @skipOnOcV10 Examples: | url | message1 | message2 | | /remote.php/dav/files/does-not-exist | Resource not found | Resource not found | | /remote.php/dav/does-not-exist | File not found in root | | - @skipOnOcis - Examples: - | url | message1 | message2 | - | /remote.php/dav/files/does-not-exist | Principal with name does-not-exist not found | | - | /remote.php/dav/does-not-exist | File not found: does-not-exist in 'root' | | - - @skipOnOcV10 @personalSpace + @personalSpace Examples: | url | message1 | message2 | | /remote.php/dav/spaces/%spaceid%/does-not-exist | Resource not found | |