mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-08 04:20:59 -05:00
5efc3c51a1
* refactored the user creation given statement from provisioning to graph api added getUser steps that covers the steps for user with user light role * added userlight step tests to check drive information and updated expected failure files * added usercreation initiation code * deleted seperate tests for user light role * remove unnecesary changes * add user not initialize step * corrected the testcode * moved the steps from graph to provisioning file * fix creating single ldap user * fix: user check method * initialize user via graph * addressing reviews --------- Co-authored-by: Saw-jan <saw.jan.grg3e@gmail.com>
91 lines
3.7 KiB
Gherkin
91 lines
3.7 KiB
Gherkin
@issue-1313 @skipOnGraph
|
|
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 and without skeleton files
|
|
|
|
|
|
Scenario Outline: retrieving folder quota when no quota is set
|
|
Given using <dav-path-version> DAV path
|
|
When the administrator gives unlimited quota to user "Alice" using the provisioning 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 |
|
|
|
|
@smokeTest
|
|
Scenario Outline: retrieving folder quota when quota is set
|
|
Given using <dav-path-version> DAV path
|
|
When the administrator sets the quota of user "Alice" to "10 MB" using the provisioning API
|
|
Then the HTTP status code should be "200"
|
|
And as user "Alice" folder "/" should contain a property "d:quota-available-bytes" with value "10485406"
|
|
Examples:
|
|
| dav-path-version |
|
|
| old |
|
|
| new |
|
|
| spaces |
|
|
|
|
|
|
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 without skeleton files
|
|
And user "Alice" has been given unlimited quota
|
|
And the quota of user "Brian" has been set to "10 MB"
|
|
And user "Brian" has created folder "/testquota"
|
|
And user "Brian" has created a share with settings
|
|
| path | testquota |
|
|
| shareType | user |
|
|
| permissions | all |
|
|
| shareWith | Alice |
|
|
When user "Alice" gets the following properties of folder "/testquota" using the WebDAV API
|
|
| propertyName |
|
|
| d:quota-available-bytes |
|
|
Then the HTTP status code should be "200"
|
|
And the single response should contain a property "d:quota-available-bytes" with value "10485406"
|
|
Examples:
|
|
| dav-path-version |
|
|
| old |
|
|
| new |
|
|
| spaces |
|
|
|
|
|
|
Scenario Outline: retrieving folder quota when quota is set and a file was uploaded
|
|
Given using <dav-path-version> DAV path
|
|
And the quota of user "Alice" has been set to "1 KB"
|
|
And user "Alice" has uploaded file "/prueba.txt" of size 93 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 "201"
|
|
And the single response should contain a property "d:quota-available-bytes" with value "577"
|
|
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 without skeleton files
|
|
And the quota of user "Brian" has been set to "1 KB"
|
|
And user "Alice" has uploaded file "/Alice.txt" of size 93 bytes
|
|
And user "Alice" has shared file "Alice.txt" with user "Brian"
|
|
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 "200"
|
|
And the single response should contain a property "d:quota-available-bytes" with value "670"
|
|
Examples:
|
|
| dav-path-version |
|
|
| old |
|
|
| new |
|
|
| spaces |
|