@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 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 | @smokeTest Scenario Outline: retrieving folder quota when quota is set Given using 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 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 | And user "Alice" has a share "testquota" synced When user "Alice" gets the following properties of folder "" 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 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 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 | And user "Brian" has a share "Alice.txt" synced 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 |