From bed3d9f53b25723e575c8c67b0a5bfbc6430837e Mon Sep 17 00:00:00 2001 From: Viktor Scharf Date: Thu, 19 May 2022 11:05:36 +0200 Subject: [PATCH] add test with no restriction quota (#3814) --- ...pected-failures-localAPI-on-OCIS-storage.md | 2 ++ .../features/apiSpaces/changeSpaces.feature | 18 +++++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md b/tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md index 7ce27c67ffd..7a9ab3dbf24 100644 --- a/tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md +++ b/tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md @@ -19,3 +19,5 @@ The expected failures in this file are from features in the owncloud/ocis repo. - [apiArchiver/downloadById.feature:134](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiArchiver/downloadById.feature#L134) - [apiArchiver/downloadById.feature:135](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiArchiver/downloadById.feature#L135) +### [User can not upload file after setting the quota without restriction](https://github.com/owncloud/ocis/issues/3810) +- [apiSpaces/changeSpaces.feature:138](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiSpaces/changeSpaces.feature#L138) diff --git a/tests/acceptance/features/apiSpaces/changeSpaces.feature b/tests/acceptance/features/apiSpaces/changeSpaces.feature index b068cba7787..a3937755524 100644 --- a/tests/acceptance/features/apiSpaces/changeSpaces.feature +++ b/tests/acceptance/features/apiSpaces/changeSpaces.feature @@ -120,4 +120,20 @@ Feature: Change data of space | special@@@0@@@file@@@mimeType | image/png | | special@@@0@@@id | %file_id% | | special@@@0@@@eTag | %eTag% | - \ No newline at end of file + + + Scenario Outline: An admin user set no restriction quota of a Space via the Graph API + Given user "Alice" has created a space "Project Earth" of type "project" with quota "20" + When user "Alice" changes the quota of the "Project Earth" space to "" + Then the HTTP status code should be "200" + When user "Alice" uploads a file inside space "Project Earth" with content "some content" to "file.txt" using the WebDAV API + Then the HTTP status code should be "201" + When user "Alice" lists all available spaces via the GraphApi + Then the json responded should contain a space "Project Earth" with these key and value pairs: + | key | value | + | name | Project Earth | + | quota@@@used | 12 | + Examples: + | quotaValue | + | 0 | + | -1 |