Build: https://drone.owncloud.com/owncloud/encryption/2564/14/11
Build: https://drone.owncloud.com/owncloud/encryption/2564/15/11
Build: https://drone.owncloud.com/owncloud/encryption/2564/20/11
Build: https://drone.owncloud.com/owncloud/encryption/2564/21/11
@api @issue-40140
Feature: quota
Background: # /var/www/owncloud/testrunner/apps/encryption/tests/acceptance/features/apiEncryption/quotaOc10Issue40140.feature:4
Given using OCS API version "1" # FeatureContext::usingOcsApiVersion()
And user "Alice" has been created with default attributes and without skeleton files # FeatureContext::userHasBeenCreatedWithDefaultAttributesAndWithoutSkeletonFiles()
@files_sharing-app-required
Scenario: share receiver with insufficient quota should not be able to copy received shared file to home folder # /var/www/owncloud/testrunner/apps/encryption/tests/acceptance/features/apiEncryption/quotaOc10Issue40140.feature:9
Given the administrator has set the default folder for received shares to "Shares" # OccContext::theAdministratorHasSetTheDefaultFolderForReceivedSharesTo()
And auto-accept shares has been disabled # FeatureContext::autoAcceptSharesHasBeenDisabled()
And user "Brian" has been created with default attributes and without skeleton files # FeatureContext::userHasBeenCreatedWithDefaultAttributesAndWithoutSkeletonFiles()
And the quota of user "Brian" has been set to "10 B" # FeatureContext::theQuotaOfUserHasBeenSetTo()
And the quota of user "Alice" has been set to "10 MB" # FeatureContext::theQuotaOfUserHasBeenSetTo()
And user "Alice" has uploaded file with content "test-content-15" to "/testquota.txt" # FeatureContext::userHasUploadedAFileWithContentTo()
And user "Alice" has shared file "/testquota.txt" with user "Brian" # FeatureContext::userHasSharedFileWithUserUsingTheSharingApi()
And user "Brian" has accepted share "/testquota.txt" offered by user "Alice" # FeatureContext::userHasReactedToShareOfferedBy()
When user "Brian" copies file "/Shares/testquota.txt" to "/testquota.txt" using the WebDAV API # FeatureContext::userCopiesFileUsingTheAPI()
Then the HTTP status code should be "201" # FeatureContext::thenTheHTTPStatusCodeShouldBe()
HTTP status code 507 is not the expected value 201
Failed asserting that 507 matches expected '201'.
And as "Brian" file "/testquota.txt" should exist # FeatureContext::asFileOrFolderShouldExist()
@files_sharing-app-required
Scenario: share receiver with insufficient quota should not be able to copy file from shared folder to home folder # /var/www/owncloud/testrunner/apps/encryption/tests/acceptance/features/apiEncryption/quotaOc10Issue40140.feature:27
Given the administrator has set the default folder for received shares to "Shares" # OccContext::theAdministratorHasSetTheDefaultFolderForReceivedSharesTo()
And auto-accept shares has been disabled # FeatureContext::autoAcceptSharesHasBeenDisabled()
And user "Brian" has been created with default attributes and without skeleton files # FeatureContext::userHasBeenCreatedWithDefaultAttributesAndWithoutSkeletonFiles()
And the quota of user "Brian" has been set to "10 B" # FeatureContext::theQuotaOfUserHasBeenSetTo()
And the quota of user "Alice" has been set to "10 MB" # FeatureContext::theQuotaOfUserHasBeenSetTo()
And user "Alice" has created folder "shareFolder" # FeatureContext::userHasCreatedFolder()
And user "Alice" has uploaded file with content "test-content-15" to "/shareFolder/testquota.txt" # FeatureContext::userHasUploadedAFileWithContentTo()
And user "Alice" has shared folder "/shareFolder" with user "Brian" # FeatureContext::userHasSharedFileWithUserUsingTheSharingApi()
And user "Brian" has accepted share "/shareFolder" offered by user "Alice" # FeatureContext::userHasReactedToShareOfferedBy()
When user "Brian" copies file "/Shares/shareFolder/testquota.txt" to "/testquota.txt" using the WebDAV API # FeatureContext::userCopiesFileUsingTheAPI()
Then the HTTP status code should be "201" # FeatureContext::thenTheHTTPStatusCodeShouldBe()
HTTP status code 507 is not the expected value 201
Failed asserting that 507 matches expected '201'.
And as "Brian" file "/testquota.txt" should exist # FeatureContext::asFileOrFolderShouldExist()
@files_sharing-app-required
Scenario: share receiver of a share with insufficient quota should not be able to copy file from home folder to the received shared folder # /var/www/owncloud/testrunner/apps/encryption/tests/acceptance/features/apiEncryption/quotaOc10Issue40140.feature:46
Given the administrator has set the default folder for received shares to "Shares" # OccContext::theAdministratorHasSetTheDefaultFolderForReceivedSharesTo()
And auto-accept shares has been disabled # FeatureContext::autoAcceptSharesHasBeenDisabled()
And user "Brian" has been created with default attributes and without skeleton files # FeatureContext::userHasBeenCreatedWithDefaultAttributesAndWithoutSkeletonFiles()
And the quota of user "Brian" has been set to "10 MB" # FeatureContext::theQuotaOfUserHasBeenSetTo()
And the quota of user "Alice" has been set to "10 B" # FeatureContext::theQuotaOfUserHasBeenSetTo()
And user "Alice" has created folder "shareFolder" # FeatureContext::userHasCreatedFolder()
And user "Alice" has shared folder "/shareFolder" with user "Brian" # FeatureContext::userHasSharedFileWithUserUsingTheSharingApi()
And user "Brian" has accepted share "/shareFolder" offered by user "Alice" # FeatureContext::userHasReactedToShareOfferedBy()
And user "Brian" has uploaded file with content "test-content-15" to "/testquota.txt" # FeatureContext::userHasUploadedAFileWithContentTo()
When user "Brian" copies file "/testquota.txt" to "/Shares/shareFolder/testquota.txt" using the WebDAV API # FeatureContext::userCopiesFileUsingTheAPI()
Then the HTTP status code should be "201" # FeatureContext::thenTheHTTPStatusCodeShouldBe()
HTTP status code 507 is not the expected value 201
Failed asserting that 507 matches expected '201'.
And as "Brian" file "/testquota.txt" should exist # FeatureContext::asFileOrFolderShouldExist()
And as "Alice" file "/shareFolder/testquota.txt" should exist # FeatureContext::asFileOrFolderShouldExist()
Note: This is a bug demonstration feature for encryption app. As the quota handling is improved and fixed with this PR owncloud/core#39895. we can remove the bug demonstration feature as it is running from core api.
Build: https://drone.owncloud.com/owncloud/encryption/2564/14/11
Build: https://drone.owncloud.com/owncloud/encryption/2564/15/11
Build: https://drone.owncloud.com/owncloud/encryption/2564/20/11
Build: https://drone.owncloud.com/owncloud/encryption/2564/21/11
Note: This is a bug demonstration feature for encryption app. As the quota handling is improved and fixed with this PR owncloud/core#39895. we can remove the bug demonstration feature as it is running from core api.