mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-12-05 05:43:36 -05:00
* test: wait for the share sync in the Given steps that create shares Shares are synced (auto-accepted) asynchronously by the sharing service, so the scenarios waited for it with "user ... has a share ... synced" after each share. Where they didn't, the following steps could race with it, e.g. a hide sent before the auto-accept was overwritten by it. The Given steps that create user and group shares now wait until the share is synced for each user it was sent to (the members of a group), unless the user has auto-sync turned off. The "has a share ... synced" steps that only followed such a Given step are removed, and the line references of the expected failures are updated. Assisted-by: Claude Code:claude-opus-5-5 * test: don't wait for the sync of a share with the role Denied A share with the role Denied gives no access, so it never shows up in the shared-with-me list of the sharee, and the wait for its sync timed out. Assisted-by: Claude Code:claude-opus-5-5
98 lines
4.3 KiB
Gherkin
98 lines
4.3 KiB
Gherkin
@issue-1313 @skipOnReva
|
|
Feature: get quota
|
|
As a user
|
|
I want to be able to find out my available storage quota
|
|
So that I can manage the use of my allocated storage
|
|
|
|
Background:
|
|
Given using OCS API version "1"
|
|
And user "Alice" has been created with default attributes
|
|
|
|
|
|
Scenario Outline: retrieving folder quota when unlimited quota is set
|
|
Given using <dav-path-version> DAV path
|
|
When user "Admin" changes the quota of the personal space of user "Alice" to "0" using the Graph API
|
|
Then the HTTP status code should be "200"
|
|
And as user "Alice" folder "/" should contain a property "d:quota-available-bytes" with value "-3"
|
|
Examples:
|
|
| dav-path-version |
|
|
| old |
|
|
| new |
|
|
| spaces |
|
|
|
|
|
|
Scenario Outline: retrieving folder quota when quota is set
|
|
Given using <dav-path-version> DAV path
|
|
When user "Admin" changes the quota of the personal space of user "Alice" to "10000" using the Graph API
|
|
Then the HTTP status code should be "200"
|
|
And as user "Alice" folder "/" should contain a property "d:quota-available-bytes" with value "10000"
|
|
Examples:
|
|
| dav-path-version |
|
|
| old |
|
|
| new |
|
|
| spaces |
|
|
|
|
@issue-8197
|
|
Scenario Outline: retrieving folder quota of shared folder with quota when no quota is set for recipient
|
|
Given using <dav-path-version> DAV path
|
|
And user "Brian" has been created with default attributes
|
|
And user "Admin" has changed the quota of the personal space of user "Alice" to "0"
|
|
And user "Admin" has changed the quota of the personal space of user "Brian" to "10000"
|
|
And user "Brian" has created folder "/testquota"
|
|
And user "Brian" has uploaded file "/testquota/Brian.txt" of size 1000 bytes
|
|
And user "Brian" has sent the following resource share invitation:
|
|
| resource | testquota |
|
|
| space | Personal |
|
|
| sharee | Alice |
|
|
| shareType | user |
|
|
| permissionsRole | Editor |
|
|
When user "Alice" gets the following properties of folder "<folder-name>" inside space "Shares" using the WebDAV API
|
|
| propertyName |
|
|
| d:quota-available-bytes |
|
|
Then the HTTP status code should be "207"
|
|
And the single response should contain a property "d:quota-available-bytes" with value "9000"
|
|
Examples:
|
|
| dav-path-version | folder-name |
|
|
| old | /Shares/testquota |
|
|
| new | /Shares/testquota |
|
|
| spaces | /testquota |
|
|
|
|
@issue-8197
|
|
Scenario Outline: retrieving folder quota when quota is set and a file was uploaded
|
|
Given using <dav-path-version> DAV path
|
|
And user "Admin" has changed the quota of the personal space of user "Alice" to "10000"
|
|
And user "Alice" has uploaded file "/prueba.txt" of size 1000 bytes
|
|
When user "Alice" gets the following properties of folder "/" using the WebDAV API
|
|
| propertyName |
|
|
| d:quota-available-bytes |
|
|
Then the HTTP status code should be "207"
|
|
And the single response should contain a property "d:quota-available-bytes" with value "9000"
|
|
Examples:
|
|
| dav-path-version |
|
|
| old |
|
|
| new |
|
|
| spaces |
|
|
|
|
|
|
Scenario Outline: retrieving folder quota when quota is set and a file was received
|
|
Given using <dav-path-version> DAV path
|
|
And user "Brian" has been created with default attributes
|
|
And user "Admin" has changed the quota of the personal space of user "Brian" to "10000"
|
|
And user "Alice" has uploaded file "/Alice.txt" of size 93 bytes
|
|
And user "Alice" has sent the following resource share invitation:
|
|
| resource | Alice.txt |
|
|
| space | Personal |
|
|
| sharee | Brian |
|
|
| shareType | user |
|
|
| permissionsRole | File Editor |
|
|
When user "Brian" gets the following properties of folder "/" using the WebDAV API
|
|
| propertyName |
|
|
| d:quota-available-bytes |
|
|
Then the HTTP status code should be "207"
|
|
And the single response should contain a property "d:quota-available-bytes" with value "10000"
|
|
Examples:
|
|
| dav-path-version |
|
|
| old |
|
|
| new |
|
|
| spaces |
|