From e208b3018a1e4bcb983bab841dda12c58b4f6cc3 Mon Sep 17 00:00:00 2001 From: Prarup Gurung Date: Wed, 3 May 2023 10:44:58 +0545 Subject: [PATCH] Removed step and implementation of setting share auto accept --- .../createShareToSharesFolder.feature | 3 +-- .../features/apiSpacesShares/checksum.feature | 1 - tests/acceptance/features/bootstrap/Sharing.php | 11 ----------- .../favoritesSharingToShares.feature | 3 +-- .../features/coreApiMain/checksums.feature | 6 ++---- .../createShareResourceCaseSensitiveName.feature | 3 +-- .../createShareUniqueReceivedNames.feature | 3 +-- ...createShareDefaultFolderForReceivedShares.feature | 3 +-- .../createShareGroupAndUserWithSameName.feature | 3 +-- .../createShareReceivedInMultipleWays.feature | 3 +-- .../createShareWithDisabledUser.feature | 3 +-- .../createShareWithInvalidPermissions.feature | 3 +-- .../createShareToSharesFolder.feature | 3 +-- .../deleteShareFromShares.feature | 3 +-- .../acceptShares.feature | 3 +-- .../mergeShare.feature | 3 +-- .../moveReceivedShare.feature | 3 +-- .../moveShareInsideAnotherShare.feature | 3 +-- .../accessToShare.feature | 3 +-- .../changingFilesShare.feature | 3 +-- .../gettingShares.feature | 3 +-- .../gettingSharesPendingFiltered.feature | 3 +-- .../gettingSharesReceivedFiltered.feature | 3 +-- .../gettingSharesReceivedFilteredEmpty.feature | 3 +-- .../gettingSharesSharedFiltered.feature | 3 +-- .../getWebDAVSharePermissions.feature | 3 +-- .../shareAccessByID.feature | 3 +-- .../uploadToShare.feature | 3 +-- .../createPublicLinkShareToShares.feature | 3 +-- .../updatePublicLinkShare.feature | 12 ++++-------- .../coreApiShareReshareToShares1/reShare.feature | 3 +-- .../reShareChain.feature | 3 +-- .../reShareDisabled.feature | 3 +-- .../reShareSubfolder.feature | 3 +-- .../reShareUpdate.feature | 3 +-- .../reShareWithExpiryDate.feature | 3 +-- .../coreApiShareUpdateToShares/updateShare.feature | 3 +-- .../updateShareGroupAndUserWithSameName.feature | 3 +-- .../coreApiTrashbin/trashbinSharingToShares.feature | 3 +-- .../independentLocksShareToShares.feature | 3 +-- .../unlockSharingToShares.feature | 3 +-- .../features/coreApiWebdavPreviews/previews.feature | 12 ++++-------- .../coreApiWebdavProperties1/copyFile.feature | 1 - .../createFileFolderWhenSharesExist.feature | 3 +-- .../uploadFileMtimeShares.feature | 3 +-- .../coreApiWebdavUploadTUS/uploadToShare.feature | 3 +-- .../features/apiShareManagement/acceptShares.feature | 1 - 47 files changed, 50 insertions(+), 114 deletions(-) diff --git a/tests/acceptance/features/apiAccountsHashDifficulty/createShareToSharesFolder.feature b/tests/acceptance/features/apiAccountsHashDifficulty/createShareToSharesFolder.feature index 4045ef9c1..eb26c6e9b 100644 --- a/tests/acceptance/features/apiAccountsHashDifficulty/createShareToSharesFolder.feature +++ b/tests/acceptance/features/apiAccountsHashDifficulty/createShareToSharesFolder.feature @@ -9,8 +9,7 @@ Feature: sharing Scenario Outline: creating a share of a file with a user - Given auto-accept shares has been disabled - And using OCS API version "" + Given using OCS API version "" And user "Alice" has been created with default attributes and without skeleton files 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 diff --git a/tests/acceptance/features/apiSpacesShares/checksum.feature b/tests/acceptance/features/apiSpacesShares/checksum.feature index fe0a78ff8..a38b49208 100644 --- a/tests/acceptance/features/apiSpacesShares/checksum.feature +++ b/tests/acceptance/features/apiSpacesShares/checksum.feature @@ -6,7 +6,6 @@ Feature: checksums Background: Given user "Alice" has been created with default attributes and without skeleton files - And auto-accept shares has been disabled And using spaces DAV path And user "Brian" has been created with default attributes and without skeleton files diff --git a/tests/acceptance/features/bootstrap/Sharing.php b/tests/acceptance/features/bootstrap/Sharing.php index 6a5e911df..cd3f61988 100644 --- a/tests/acceptance/features/bootstrap/Sharing.php +++ b/tests/acceptance/features/bootstrap/Sharing.php @@ -394,17 +394,6 @@ trait Sharing { ); } - /** - * @Given auto-accept shares has been disabled - * - * @return void - */ - public function autoAcceptSharesHasBeenDisabled():void { - // auto-accept shares is disabled by default on OCIS. - // so there is nothing to do, just return - return; - } - /** * @When /^user "([^"]*)" creates a share using the sharing API with settings$/ * diff --git a/tests/acceptance/features/coreApiFavorites/favoritesSharingToShares.feature b/tests/acceptance/features/coreApiFavorites/favoritesSharingToShares.feature index 7defe2895..a52e5e317 100644 --- a/tests/acceptance/features/coreApiFavorites/favoritesSharingToShares.feature +++ b/tests/acceptance/features/coreApiFavorites/favoritesSharingToShares.feature @@ -5,8 +5,7 @@ Feature: favorite So that I can access them quickly Background: - Given auto-accept shares has been disabled - And user "Alice" has been created with default attributes and without skeleton files + Given user "Alice" has been created with default attributes and without skeleton files And user "Alice" has created folder "/PARENT" And user "Alice" has uploaded file with content "some data" to "/PARENT/parent.txt" diff --git a/tests/acceptance/features/coreApiMain/checksums.feature b/tests/acceptance/features/coreApiMain/checksums.feature index b9785b184..4f42905c5 100644 --- a/tests/acceptance/features/coreApiMain/checksums.feature +++ b/tests/acceptance/features/coreApiMain/checksums.feature @@ -177,8 +177,7 @@ Feature: checksums @issue-1291 Scenario Outline: sharing a file with checksum should return the checksum in the propfind using new DAV path - Given auto-accept shares has been disabled - And using DAV path + Given using DAV path And user "Brian" has been created with default attributes and without skeleton files And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/myChecksumFile.txt" with checksum "MD5:d70b40f177b14b470d1756a3c12b963a" And user "Alice" has shared file "/myChecksumFile.txt" with user "Brian" @@ -192,8 +191,7 @@ Feature: checksums @issue-1291 Scenario Outline: modifying a shared file should return correct checksum in the propfind using new DAV path - Given auto-accept shares has been disabled - And using DAV path + Given using DAV path And user "Brian" has been created with default attributes and without skeleton files And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/myChecksumFile.txt" with checksum "MD5:d70b40f177b14b470d1756a3c12b963a" And user "Alice" has shared file "/myChecksumFile.txt" with user "Brian" diff --git a/tests/acceptance/features/coreApiShareCreateSpecialToShares1/createShareResourceCaseSensitiveName.feature b/tests/acceptance/features/coreApiShareCreateSpecialToShares1/createShareResourceCaseSensitiveName.feature index e9b8939bf..f20d9e95f 100644 --- a/tests/acceptance/features/coreApiShareCreateSpecialToShares1/createShareResourceCaseSensitiveName.feature +++ b/tests/acceptance/features/coreApiShareCreateSpecialToShares1/createShareResourceCaseSensitiveName.feature @@ -5,8 +5,7 @@ Feature: Sharing resources with different case names with the sharee and checkin So that I can make sure that the shares aren't case sensitive Background: - Given auto-accept shares has been disabled - And these users have been created with default attributes and without skeleton files: + Given these users have been created with default attributes and without skeleton files: | username | | Alice | | Brian | diff --git a/tests/acceptance/features/coreApiShareCreateSpecialToShares1/createShareUniqueReceivedNames.feature b/tests/acceptance/features/coreApiShareCreateSpecialToShares1/createShareUniqueReceivedNames.feature index 883a31e80..a74e59c3e 100644 --- a/tests/acceptance/features/coreApiShareCreateSpecialToShares1/createShareUniqueReceivedNames.feature +++ b/tests/acceptance/features/coreApiShareCreateSpecialToShares1/createShareUniqueReceivedNames.feature @@ -5,8 +5,7 @@ Feature: resources shared with the same name are received with unique names So that I can make sure the naming is handled properly by the server Background: - Given auto-accept shares has been disabled - And using OCS API version "1" + Given using OCS API version "1" And these users have been created with default attributes and without skeleton files: | username | | Alice | diff --git a/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareDefaultFolderForReceivedShares.feature b/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareDefaultFolderForReceivedShares.feature index 77559e7c1..f0eb81eee 100644 --- a/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareDefaultFolderForReceivedShares.feature +++ b/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareDefaultFolderForReceivedShares.feature @@ -5,8 +5,7 @@ Feature: shares are received in the default folder for received shares So that I can make sure it does not work Background: - Given auto-accept shares has been disabled - And user "Alice" has been created with default attributes and without skeleton files + Given user "Alice" has been created with default attributes and without skeleton files Scenario Outline: do not allow sharing of the entire share folder diff --git a/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareGroupAndUserWithSameName.feature b/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareGroupAndUserWithSameName.feature index 816e884af..21a9a2b4f 100644 --- a/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareGroupAndUserWithSameName.feature +++ b/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareGroupAndUserWithSameName.feature @@ -5,8 +5,7 @@ Feature: sharing works when a username and group name are the same So that I can make sure that the sharing works Background: - Given auto-accept shares has been disabled - And user "Alice" has been created with default attributes and without skeleton files + Given user "Alice" has been created with default attributes and without skeleton files @skipOnLDAP Scenario: creating a new share with user and a group having same name diff --git a/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature b/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature index 30b573eee..7c2d3bf02 100644 --- a/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature +++ b/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareReceivedInMultipleWays.feature @@ -5,8 +5,7 @@ Feature: share resources where the sharee receives the share in multiple ways So that I can make sure that the sharing works Background: - Given auto-accept shares has been disabled - And these users have been created with default attributes and without skeleton files: + Given these users have been created with default attributes and without skeleton files: | username | | Alice | | Brian | diff --git a/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareWithDisabledUser.feature b/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareWithDisabledUser.feature index 3d4be97ec..e688df358 100644 --- a/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareWithDisabledUser.feature +++ b/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareWithDisabledUser.feature @@ -5,8 +5,7 @@ Feature: share resources with a disabled user So that I can make sure it doesn't work Background: - Given auto-accept shares has been disabled - And user "Alice" has been created with default attributes and without skeleton files + Given user "Alice" has been created with default attributes and without skeleton files And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/textfile0.txt" @issue-2212 diff --git a/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareWithInvalidPermissions.feature b/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareWithInvalidPermissions.feature index c4629b459..fd7d52467 100644 --- a/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareWithInvalidPermissions.feature +++ b/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareWithInvalidPermissions.feature @@ -5,8 +5,7 @@ Feature: cannot share resources with invalid permissions So that I can make sure it doesn't work Background: - Given auto-accept shares has been disabled - And user "Alice" has been created with default attributes and without skeleton files + Given user "Alice" has been created with default attributes and without skeleton files And user "Alice" has uploaded file with content "some data" to "/textfile0.txt" And user "Alice" has created folder "/PARENT" diff --git a/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature b/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature index 7e7d8003d..25d3f49ef 100644 --- a/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature +++ b/tests/acceptance/features/coreApiShareManagementBasicToShares/createShareToSharesFolder.feature @@ -5,8 +5,7 @@ Feature: sharing So that they can have access on them Background: - Given auto-accept shares has been disabled - And user "Alice" has been created with default attributes and without skeleton files + Given user "Alice" has been created with default attributes and without skeleton files @smokeTest Scenario Outline: creating a share of a file with a user, the default permissions are read(1)+update(2)+can-share(16) diff --git a/tests/acceptance/features/coreApiShareManagementBasicToShares/deleteShareFromShares.feature b/tests/acceptance/features/coreApiShareManagementBasicToShares/deleteShareFromShares.feature index 597ac6c06..3bd6210a7 100644 --- a/tests/acceptance/features/coreApiShareManagementBasicToShares/deleteShareFromShares.feature +++ b/tests/acceptance/features/coreApiShareManagementBasicToShares/deleteShareFromShares.feature @@ -5,8 +5,7 @@ Feature: sharing So that I don't have redundant shares Background: - Given auto-accept shares has been disabled - And these users have been created with default attributes and without skeleton files: + Given these users have been created with default attributes and without skeleton files: | username | | Alice | | Brian | diff --git a/tests/acceptance/features/coreApiShareManagementToShares/acceptShares.feature b/tests/acceptance/features/coreApiShareManagementToShares/acceptShares.feature index 819c0a0f3..cfd136642 100644 --- a/tests/acceptance/features/coreApiShareManagementToShares/acceptShares.feature +++ b/tests/acceptance/features/coreApiShareManagementToShares/acceptShares.feature @@ -5,8 +5,7 @@ Feature: accept/decline shares coming from internal users So that I can keep my file system clean Background: - Given auto-accept shares has been disabled - And using OCS API version "1" + Given using OCS API version "1" And using new DAV path And these users have been created with default attributes and without skeleton files: | username | diff --git a/tests/acceptance/features/coreApiShareManagementToShares/mergeShare.feature b/tests/acceptance/features/coreApiShareManagementToShares/mergeShare.feature index 45032d84c..87d304bb7 100644 --- a/tests/acceptance/features/coreApiShareManagementToShares/mergeShare.feature +++ b/tests/acceptance/features/coreApiShareManagementToShares/mergeShare.feature @@ -2,8 +2,7 @@ Feature: sharing Background: - Given auto-accept shares has been disabled - And using OCS API version "1" + Given using OCS API version "1" And these users have been created with default attributes and without skeleton files: | username | | Alice | diff --git a/tests/acceptance/features/coreApiShareManagementToShares/moveReceivedShare.feature b/tests/acceptance/features/coreApiShareManagementToShares/moveReceivedShare.feature index dbba7112f..76c46d9fb 100644 --- a/tests/acceptance/features/coreApiShareManagementToShares/moveReceivedShare.feature +++ b/tests/acceptance/features/coreApiShareManagementToShares/moveReceivedShare.feature @@ -2,8 +2,7 @@ Feature: sharing Background: - Given auto-accept shares has been disabled - And using OCS API version "1" + Given using OCS API version "1" And these users have been created with default attributes and without skeleton files: | username | | Alice | diff --git a/tests/acceptance/features/coreApiShareManagementToShares/moveShareInsideAnotherShare.feature b/tests/acceptance/features/coreApiShareManagementToShares/moveShareInsideAnotherShare.feature index c6caac893..8a27bb5bd 100644 --- a/tests/acceptance/features/coreApiShareManagementToShares/moveShareInsideAnotherShare.feature +++ b/tests/acceptance/features/coreApiShareManagementToShares/moveShareInsideAnotherShare.feature @@ -5,8 +5,7 @@ Feature: moving a share inside another share So that I have full flexibility when managing resources Background: - Given auto-accept shares has been disabled - And using OCS API version "1" + Given using OCS API version "1" And these users have been created with default attributes and without skeleton files: | username | | Alice | diff --git a/tests/acceptance/features/coreApiShareOperationsToShares1/accessToShare.feature b/tests/acceptance/features/coreApiShareOperationsToShares1/accessToShare.feature index 0054c7754..7c3b46979 100644 --- a/tests/acceptance/features/coreApiShareOperationsToShares1/accessToShare.feature +++ b/tests/acceptance/features/coreApiShareOperationsToShares1/accessToShare.feature @@ -2,8 +2,7 @@ Feature: sharing Background: - Given auto-accept shares has been disabled - And these users have been created with default attributes and without skeleton files: + Given these users have been created with default attributes and without skeleton files: | username | | Alice | | Brian | diff --git a/tests/acceptance/features/coreApiShareOperationsToShares1/changingFilesShare.feature b/tests/acceptance/features/coreApiShareOperationsToShares1/changingFilesShare.feature index 3749136b8..2ebb728cd 100644 --- a/tests/acceptance/features/coreApiShareOperationsToShares1/changingFilesShare.feature +++ b/tests/acceptance/features/coreApiShareOperationsToShares1/changingFilesShare.feature @@ -2,8 +2,7 @@ Feature: sharing Background: - Given auto-accept shares has been disabled - And these users have been created with default attributes and without skeleton files: + Given these users have been created with default attributes and without skeleton files: | username | | Alice | | Brian | diff --git a/tests/acceptance/features/coreApiShareOperationsToShares1/gettingShares.feature b/tests/acceptance/features/coreApiShareOperationsToShares1/gettingShares.feature index f22e74c89..b7efea583 100644 --- a/tests/acceptance/features/coreApiShareOperationsToShares1/gettingShares.feature +++ b/tests/acceptance/features/coreApiShareOperationsToShares1/gettingShares.feature @@ -2,8 +2,7 @@ Feature: sharing Background: - Given auto-accept shares has been disabled - And these users have been created with default attributes and without skeleton files: + Given these users have been created with default attributes and without skeleton files: | username | | Alice | | Brian | diff --git a/tests/acceptance/features/coreApiShareOperationsToShares1/gettingSharesPendingFiltered.feature b/tests/acceptance/features/coreApiShareOperationsToShares1/gettingSharesPendingFiltered.feature index d9a6b7283..9fefc31e7 100644 --- a/tests/acceptance/features/coreApiShareOperationsToShares1/gettingSharesPendingFiltered.feature +++ b/tests/acceptance/features/coreApiShareOperationsToShares1/gettingSharesPendingFiltered.feature @@ -5,8 +5,7 @@ Feature: get the pending shares filtered by type (user, group etc) So that I can reduce the amount of data that has to be transferred to be just the data that I need Background: - Given auto-accept shares has been disabled - And these users have been created with default attributes and without skeleton files: + Given these users have been created with default attributes and without skeleton files: | username | | Alice | | Brian | diff --git a/tests/acceptance/features/coreApiShareOperationsToShares1/gettingSharesReceivedFiltered.feature b/tests/acceptance/features/coreApiShareOperationsToShares1/gettingSharesReceivedFiltered.feature index 7fe4d6504..36eee7172 100644 --- a/tests/acceptance/features/coreApiShareOperationsToShares1/gettingSharesReceivedFiltered.feature +++ b/tests/acceptance/features/coreApiShareOperationsToShares1/gettingSharesReceivedFiltered.feature @@ -5,8 +5,7 @@ Feature: get the received shares filtered by type (user, group etc) So that I can reduce the amount of data that has to be transferred to be just the data that I need Background: - Given auto-accept shares has been disabled - And these users have been created with default attributes and without skeleton files: + Given these users have been created with default attributes and without skeleton files: | username | | Alice | | Brian | diff --git a/tests/acceptance/features/coreApiShareOperationsToShares1/gettingSharesReceivedFilteredEmpty.feature b/tests/acceptance/features/coreApiShareOperationsToShares1/gettingSharesReceivedFilteredEmpty.feature index ec0205aae..2c9533be3 100644 --- a/tests/acceptance/features/coreApiShareOperationsToShares1/gettingSharesReceivedFilteredEmpty.feature +++ b/tests/acceptance/features/coreApiShareOperationsToShares1/gettingSharesReceivedFilteredEmpty.feature @@ -5,8 +5,7 @@ Feature: get the received shares filtered by type (user, group etc) So that I can reduce the amount of data that has to be transferred to be just the data that I need Background: - Given auto-accept shares has been disabled - And these users have been created with default attributes and without skeleton files: + Given these users have been created with default attributes and without skeleton files: | username | | Alice | | Brian | diff --git a/tests/acceptance/features/coreApiShareOperationsToShares1/gettingSharesSharedFiltered.feature b/tests/acceptance/features/coreApiShareOperationsToShares1/gettingSharesSharedFiltered.feature index af7ba6f9d..825c702be 100644 --- a/tests/acceptance/features/coreApiShareOperationsToShares1/gettingSharesSharedFiltered.feature +++ b/tests/acceptance/features/coreApiShareOperationsToShares1/gettingSharesSharedFiltered.feature @@ -5,8 +5,7 @@ Feature: get shares filtered by type (user, group etc) So that I can reduce the amount of data that has to be transferred to be just the data that I need Background: - Given auto-accept shares has been disabled - And these users have been created with default attributes and without skeleton files: + Given these users have been created with default attributes and without skeleton files: | username | | Alice | | Brian | diff --git a/tests/acceptance/features/coreApiShareOperationsToShares2/getWebDAVSharePermissions.feature b/tests/acceptance/features/coreApiShareOperationsToShares2/getWebDAVSharePermissions.feature index 0945bb048..48e7543e0 100644 --- a/tests/acceptance/features/coreApiShareOperationsToShares2/getWebDAVSharePermissions.feature +++ b/tests/acceptance/features/coreApiShareOperationsToShares2/getWebDAVSharePermissions.feature @@ -2,8 +2,7 @@ Feature: sharing Background: - Given auto-accept shares has been disabled - And using OCS API version "1" + Given using OCS API version "1" And these users have been created with default attributes and without skeleton files: | username | | Alice | diff --git a/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature b/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature index 07a79e817..c2752439b 100644 --- a/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature +++ b/tests/acceptance/features/coreApiShareOperationsToShares2/shareAccessByID.feature @@ -2,8 +2,7 @@ Feature: share access by ID Background: - Given auto-accept shares has been disabled - And these users have been created with default attributes and without skeleton files: + Given these users have been created with default attributes and without skeleton files: | username | | Alice | | Brian | diff --git a/tests/acceptance/features/coreApiShareOperationsToShares2/uploadToShare.feature b/tests/acceptance/features/coreApiShareOperationsToShares2/uploadToShare.feature index 77bee1d90..277e604c6 100644 --- a/tests/acceptance/features/coreApiShareOperationsToShares2/uploadToShare.feature +++ b/tests/acceptance/features/coreApiShareOperationsToShares2/uploadToShare.feature @@ -2,8 +2,7 @@ Feature: sharing Background: - Given auto-accept shares has been disabled - And user "Alice" has been created with default attributes and without skeleton files + Given user "Alice" has been created with default attributes and without skeleton files Scenario: Uploading file to a user read-only share folder does not work diff --git a/tests/acceptance/features/coreApiSharePublicLink1/createPublicLinkShareToShares.feature b/tests/acceptance/features/coreApiSharePublicLink1/createPublicLinkShareToShares.feature index 1db0dd965..6cd3e14ab 100644 --- a/tests/acceptance/features/coreApiSharePublicLink1/createPublicLinkShareToShares.feature +++ b/tests/acceptance/features/coreApiSharePublicLink1/createPublicLinkShareToShares.feature @@ -2,8 +2,7 @@ Feature: create a public link share when share_folder is set to Shares Background: - Given auto-accept shares has been disabled - And user "Alice" has been created with default attributes and without skeleton files + Given user "Alice" has been created with default attributes and without skeleton files Scenario Outline: Creating a new public link share of a file gives the correct response diff --git a/tests/acceptance/features/coreApiSharePublicLink3/updatePublicLinkShare.feature b/tests/acceptance/features/coreApiSharePublicLink3/updatePublicLinkShare.feature index e289c9801..6b9cea35b 100644 --- a/tests/acceptance/features/coreApiSharePublicLink3/updatePublicLinkShare.feature +++ b/tests/acceptance/features/coreApiSharePublicLink3/updatePublicLinkShare.feature @@ -249,8 +249,7 @@ Feature: update a public link share Scenario Outline: Adding public upload to a read only shared folder as recipient is not allowed using the public API - Given auto-accept shares has been disabled - And using OCS API version "" + Given using OCS API version "" And user "Brian" has been created with default attributes and without skeleton files And user "Alice" has created folder "/test" And user "Alice" has shared folder "/test" with user "Brian" with permissions "share,read" @@ -273,8 +272,7 @@ Feature: update a public link share Scenario Outline: Adding public upload to a shared folder as recipient is allowed with permissions using the public API - Given auto-accept shares has been disabled - And using OCS API version "" + Given using OCS API version "" And user "Brian" has been created with default attributes and without skeleton files And user "Alice" has created folder "/test" And user "Alice" has shared folder "/test" with user "Brian" with permissions "all" @@ -297,8 +295,7 @@ Feature: update a public link share Scenario Outline: Adding public link with all permissions to a read only shared folder as recipient is not allowed using the public API - Given auto-accept shares has been disabled - And using OCS API version "" + Given using OCS API version "" And user "Brian" has been created with default attributes and without skeleton files And user "Alice" has created folder "/test" And user "Alice" has shared folder "/test" with user "Brian" with permissions "share,read" @@ -321,8 +318,7 @@ Feature: update a public link share Scenario Outline: Adding public link with all permissions to a read only shared folder as recipient is allowed with permissions using the public API - Given auto-accept shares has been disabled - And using OCS API version "" + Given using OCS API version "" And user "Brian" has been created with default attributes and without skeleton files And user "Alice" has created folder "/test" And user "Alice" has shared folder "/test" with user "Brian" with permissions "all" diff --git a/tests/acceptance/features/coreApiShareReshareToShares1/reShare.feature b/tests/acceptance/features/coreApiShareReshareToShares1/reShare.feature index 9cfc6562c..502cd48fd 100644 --- a/tests/acceptance/features/coreApiShareReshareToShares1/reShare.feature +++ b/tests/acceptance/features/coreApiShareReshareToShares1/reShare.feature @@ -2,8 +2,7 @@ Feature: sharing Background: - Given auto-accept shares has been disabled - And these users have been created with default attributes and without skeleton files: + Given these users have been created with default attributes and without skeleton files: | username | | Alice | | Brian | diff --git a/tests/acceptance/features/coreApiShareReshareToShares2/reShareChain.feature b/tests/acceptance/features/coreApiShareReshareToShares2/reShareChain.feature index f91afa8a1..8996a8be1 100644 --- a/tests/acceptance/features/coreApiShareReshareToShares2/reShareChain.feature +++ b/tests/acceptance/features/coreApiShareReshareToShares2/reShareChain.feature @@ -2,8 +2,7 @@ Feature: resharing can be done on a reshared resource Background: - Given auto-accept shares has been disabled - And these users have been created with default attributes and without skeleton files: + Given these users have been created with default attributes and without skeleton files: | username | | Alice | | Brian | diff --git a/tests/acceptance/features/coreApiShareReshareToShares2/reShareDisabled.feature b/tests/acceptance/features/coreApiShareReshareToShares2/reShareDisabled.feature index 35870cdda..b47cf4576 100644 --- a/tests/acceptance/features/coreApiShareReshareToShares2/reShareDisabled.feature +++ b/tests/acceptance/features/coreApiShareReshareToShares2/reShareDisabled.feature @@ -2,8 +2,7 @@ Feature: resharing can be disabled Background: - Given auto-accept shares has been disabled - And these users have been created with default attributes and without skeleton files: + Given these users have been created with default attributes and without skeleton files: | username | | Alice | | Brian | diff --git a/tests/acceptance/features/coreApiShareReshareToShares2/reShareSubfolder.feature b/tests/acceptance/features/coreApiShareReshareToShares2/reShareSubfolder.feature index 2e4dc821c..d16ed828d 100644 --- a/tests/acceptance/features/coreApiShareReshareToShares2/reShareSubfolder.feature +++ b/tests/acceptance/features/coreApiShareReshareToShares2/reShareSubfolder.feature @@ -2,8 +2,7 @@ Feature: a subfolder of a received share can be reshared Background: - Given auto-accept shares has been disabled - And these users have been created with default attributes and without skeleton files: + Given these users have been created with default attributes and without skeleton files: | username | | Alice | | Brian | diff --git a/tests/acceptance/features/coreApiShareReshareToShares3/reShareUpdate.feature b/tests/acceptance/features/coreApiShareReshareToShares3/reShareUpdate.feature index 9e70ae3c0..1403c2456 100644 --- a/tests/acceptance/features/coreApiShareReshareToShares3/reShareUpdate.feature +++ b/tests/acceptance/features/coreApiShareReshareToShares3/reShareUpdate.feature @@ -2,8 +2,7 @@ Feature: sharing Background: - Given auto-accept shares has been disabled - And these users have been created with default attributes and without skeleton files: + Given these users have been created with default attributes and without skeleton files: | username | | Alice | | Brian | diff --git a/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature b/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature index fa695e3bc..d9d9de5c1 100644 --- a/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature +++ b/tests/acceptance/features/coreApiShareReshareToShares3/reShareWithExpiryDate.feature @@ -2,8 +2,7 @@ Feature: resharing a resource with an expiration date Background: - Given auto-accept shares has been disabled - And these users have been created with default attributes and without skeleton files: + Given these users have been created with default attributes and without skeleton files: | username | | Alice | | Brian | diff --git a/tests/acceptance/features/coreApiShareUpdateToShares/updateShare.feature b/tests/acceptance/features/coreApiShareUpdateToShares/updateShare.feature index 0a717a1b3..09187687a 100644 --- a/tests/acceptance/features/coreApiShareUpdateToShares/updateShare.feature +++ b/tests/acceptance/features/coreApiShareUpdateToShares/updateShare.feature @@ -2,8 +2,7 @@ Feature: sharing Background: - Given auto-accept shares has been disabled - And using OCS API version "1" + Given using OCS API version "1" And user "Alice" has been created with default attributes and without skeleton files @smokeTest diff --git a/tests/acceptance/features/coreApiShareUpdateToShares/updateShareGroupAndUserWithSameName.feature b/tests/acceptance/features/coreApiShareUpdateToShares/updateShareGroupAndUserWithSameName.feature index 9d193353f..587331332 100644 --- a/tests/acceptance/features/coreApiShareUpdateToShares/updateShareGroupAndUserWithSameName.feature +++ b/tests/acceptance/features/coreApiShareUpdateToShares/updateShareGroupAndUserWithSameName.feature @@ -2,8 +2,7 @@ Feature: updating shares to users and groups that have the same name Background: - Given auto-accept shares has been disabled - And these users have been created with default attributes and without skeleton files: + Given these users have been created with default attributes and without skeleton files: | username | | Alice | | Brian | diff --git a/tests/acceptance/features/coreApiTrashbin/trashbinSharingToShares.feature b/tests/acceptance/features/coreApiTrashbin/trashbinSharingToShares.feature index 80170355d..bf9bb2353 100644 --- a/tests/acceptance/features/coreApiTrashbin/trashbinSharingToShares.feature +++ b/tests/acceptance/features/coreApiTrashbin/trashbinSharingToShares.feature @@ -2,8 +2,7 @@ Feature: using trashbin together with sharing Background: - Given auto-accept shares has been disabled - And user "Alice" has been created with default attributes and without skeleton files + Given user "Alice" has been created with default attributes and without skeleton files And user "Alice" has uploaded file with content "file to delete" to "/textfile0.txt" @smokeTest diff --git a/tests/acceptance/features/coreApiWebdavLocks2/independentLocksShareToShares.feature b/tests/acceptance/features/coreApiWebdavLocks2/independentLocksShareToShares.feature index ad3387f99..2b5237a59 100644 --- a/tests/acceptance/features/coreApiWebdavLocks2/independentLocksShareToShares.feature +++ b/tests/acceptance/features/coreApiWebdavLocks2/independentLocksShareToShares.feature @@ -3,8 +3,7 @@ Feature: independent locks Make sure all locks are independent and don't interact with other items that have the same name Background: - Given auto-accept shares has been disabled - And user "Alice" has been created with default attributes and without skeleton files + Given 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 diff --git a/tests/acceptance/features/coreApiWebdavLocksUnlock/unlockSharingToShares.feature b/tests/acceptance/features/coreApiWebdavLocksUnlock/unlockSharingToShares.feature index f439cb98e..49c420e3f 100644 --- a/tests/acceptance/features/coreApiWebdavLocksUnlock/unlockSharingToShares.feature +++ b/tests/acceptance/features/coreApiWebdavLocksUnlock/unlockSharingToShares.feature @@ -2,8 +2,7 @@ Feature: UNLOCK locked items (sharing) Background: - Given auto-accept shares has been disabled - And these users have been created with default attributes and without skeleton files: + Given these users have been created with default attributes and without skeleton files: | username | | Alice | | Brian | diff --git a/tests/acceptance/features/coreApiWebdavPreviews/previews.feature b/tests/acceptance/features/coreApiWebdavPreviews/previews.feature index bab79d828..9d5293c75 100644 --- a/tests/acceptance/features/coreApiWebdavPreviews/previews.feature +++ b/tests/acceptance/features/coreApiWebdavPreviews/previews.feature @@ -79,8 +79,7 @@ Feature: previews of files downloaded through the webdav API Scenario: download previews of shared files (to shares folder) - Given auto-accept shares has been disabled - And user "Brian" has been created with default attributes and without skeleton files + Given user "Brian" has been created with default attributes and without skeleton files And user "Alice" has uploaded file "filesForUpload/lorem.txt" to "/parent.txt" And user "Alice" has shared file "/parent.txt" with user "Brian" And user "Brian" has accepted share "/parent.txt" offered by user "Alice" @@ -122,8 +121,7 @@ Feature: previews of files downloaded through the webdav API @issue-2538 Scenario: when owner updates a shared file, previews for sharee are also updated (to shared folder) - Given auto-accept shares has been disabled - And user "Brian" has been created with default attributes and without skeleton files + Given user "Brian" has been created with default attributes and without skeleton files And user "Alice" has uploaded file "filesForUpload/lorem.txt" to "/parent.txt" And user "Alice" has shared file "/parent.txt" with user "Brian" And user "Brian" has accepted share "/parent.txt" offered by user "Alice" @@ -143,8 +141,7 @@ Feature: previews of files downloaded through the webdav API Scenario: updates to a file should change the preview for both sharees and sharers - Given auto-accept shares has been disabled - And user "Brian" has been created with default attributes and without skeleton files + Given user "Brian" has been created with default attributes and without skeleton files And user "Alice" has created folder "FOLDER" And user "Alice" has uploaded file with content "file to upload" to "/FOLDER/lorem.txt" And user "Alice" has shared folder "FOLDER" with user "Brian" @@ -162,8 +159,7 @@ Feature: previews of files downloaded through the webdav API Scenario: updates to a group shared file should change the preview for both sharees and sharers - Given auto-accept shares has been disabled - And group "grp1" has been created + Given group "grp1" has been created And user "Brian" has been created with default attributes and without skeleton files And user "Carol" has been created with default attributes and without skeleton files And user "Brian" has been added to group "grp1" diff --git a/tests/acceptance/features/coreApiWebdavProperties1/copyFile.feature b/tests/acceptance/features/coreApiWebdavProperties1/copyFile.feature index c3f3980c8..d6bda090f 100644 --- a/tests/acceptance/features/coreApiWebdavProperties1/copyFile.feature +++ b/tests/acceptance/features/coreApiWebdavProperties1/copyFile.feature @@ -6,7 +6,6 @@ Feature: copy file Background: Given using OCS API version "1" - And auto-accept shares has been disabled And user "Alice" has been created with default attributes and without skeleton files And user "Alice" has uploaded file with content "ownCloud test text file 0" to "/textfile0.txt" And user "Alice" has uploaded file with content "ownCloud test text file 1" to "/textfile1.txt" diff --git a/tests/acceptance/features/coreApiWebdavProperties1/createFileFolderWhenSharesExist.feature b/tests/acceptance/features/coreApiWebdavProperties1/createFileFolderWhenSharesExist.feature index 949f42e54..4445d0f5d 100644 --- a/tests/acceptance/features/coreApiWebdavProperties1/createFileFolderWhenSharesExist.feature +++ b/tests/acceptance/features/coreApiWebdavProperties1/createFileFolderWhenSharesExist.feature @@ -5,8 +5,7 @@ Feature: create file or folder named similar to Shares folder So that I can organise the files in my file system Background: - Given auto-accept shares has been disabled - And these users have been created with default attributes and without skeleton files: + Given these users have been created with default attributes and without skeleton files: | username | | Alice | | Brian | diff --git a/tests/acceptance/features/coreApiWebdavUploadTUS/uploadFileMtimeShares.feature b/tests/acceptance/features/coreApiWebdavUploadTUS/uploadFileMtimeShares.feature index 8704bc16a..55c587d9b 100644 --- a/tests/acceptance/features/coreApiWebdavUploadTUS/uploadFileMtimeShares.feature +++ b/tests/acceptance/features/coreApiWebdavUploadTUS/uploadFileMtimeShares.feature @@ -5,8 +5,7 @@ Feature: upload file So that I can find files by their real creation date Background: - Given auto-accept shares has been disabled - And these users have been created with default attributes and without skeleton files: + Given these users have been created with default attributes and without skeleton files: | username | | Alice | | Brian | diff --git a/tests/acceptance/features/coreApiWebdavUploadTUS/uploadToShare.feature b/tests/acceptance/features/coreApiWebdavUploadTUS/uploadToShare.feature index 9e96c8bf1..b6ff91fe7 100644 --- a/tests/acceptance/features/coreApiWebdavUploadTUS/uploadToShare.feature +++ b/tests/acceptance/features/coreApiWebdavUploadTUS/uploadToShare.feature @@ -3,8 +3,7 @@ Feature: upload file to shared folder Background: - Given auto-accept shares has been disabled - And these users have been created with default attributes and without skeleton files: + Given these users have been created with default attributes and without skeleton files: | username | | Alice | | Brian | diff --git a/tests/parallelDeployAcceptance/features/apiShareManagement/acceptShares.feature b/tests/parallelDeployAcceptance/features/apiShareManagement/acceptShares.feature index 70555cc4e..829a6505d 100644 --- a/tests/parallelDeployAcceptance/features/apiShareManagement/acceptShares.feature +++ b/tests/parallelDeployAcceptance/features/apiShareManagement/acceptShares.feature @@ -7,7 +7,6 @@ Feature: sharing files and folders Background: Given using "oc10" as owncloud selector - And auto-accept shares has been disabled And using OCS API version "1" And using new DAV path And user "Alice" has been created with default attributes and without skeleton files