Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nightly fail on apiMain/quota.feature on assertion #352

Closed
SagarGi opened this issue Jul 20, 2022 · 1 comment
Closed

Nightly fail on apiMain/quota.feature on assertion #352

SagarGi opened this issue Jul 20, 2022 · 1 comment
Labels

Comments

@SagarGi
Copy link
Member

SagarGi commented Jul 20, 2022

Build: https://drone.owncloud.com/owncloud/encryption/2564/31/19

Scenario: apiMain/quota.feature:358

 @files_sharing-app-required @skipOnOcV10.8 @skipOnOcV10.9 @skipOnOcV10.10
  Scenario: share receiver of a share with insufficient quota should not be able to copy from home folder to the received shared file # /var/www/owncloud/testrunner/tests/acceptance/features/apiMain/quota.feature:358
    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 uploaded file with content "short" to "/testquota.txt"                                                       # FeatureContext::userHasUploadedAFileWithContentTo()
    And user "Brian" has uploaded file with content "longer line of text" 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 "/testquota.txt" to "/Shares/testquota.txt" using the WebDAV API                                    # FeatureContext::userCopiesFileUsingTheAPI()
    Then the HTTP status code should be "507"                                                                                         # FeatureContext::thenTheHTTPStatusCodeShouldBe()
    And the DAV exception should be "Sabre\DAV\Exception\InsufficientStorage"                                                         # FeatureContext::theDavElementShouldBe()
    And as "Brian" file "/Shares/testquota.txt" should exist                                                                          # FeatureContext::asFileOrFolderShouldExist()
    And as "Alice" file "/testquota.txt" should exist                                                                                 # FeatureContext::asFileOrFolderShouldExist()
    And the content of file "/testquota.txt" for user "Alice" should be "short"                                                       # FeatureContext::contentOfFileForUserShouldBe()
      The downloaded content was expected to be 'short', but actually is '<?xml'. HTTP status was 500
      Failed asserting that two strings are equal.
      --- Expected
      +++ Actual
      @@ @@
      -'short'
      +'<?xml'

Recently the quota handling issue has been fixed owncloud/core#40140. Needs investigation

@kiranparajuli589 kiranparajuli589 changed the title NIghtly fail on apiMain/quota.feature on assertion Nightly fail on apiMain/quota.feature on assertion Jul 20, 2022
@grgprarup
Copy link
Contributor

The findings of an investigation on this issue are reported here #357. @SagarGi For now we can skip this scenario for the encryption app as suggested in #354 (comment). So closing this issue, we can follow up on the reported issue.

@grgprarup grgprarup removed their assignment Jul 21, 2022
@SagarGi SagarGi assigned SagarGi and unassigned SagarGi Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants