[tests-only][full-ci]Add step to set quota with env OCIS_SPACES_MAX_QUOTA (#6402)

* Add step to set ocis max spaces quota with env

* Add env-config tag to scenario for ocis roll back

* Fix red CI and and test for spaces

* Review address

* Reuse step for single env

* Remove doubtful scenario
This commit is contained in:
Sagar Gurung
2023-06-06 11:57:04 +05:45
committed by GitHub
parent bad52af536
commit 7bac14d61c
4 changed files with 18 additions and 7 deletions
@@ -1,4 +1,4 @@
@api
@api
Feature: State of the quota
As a user
I want to be able to see the state of the quota
@@ -122,3 +122,11 @@ Feature: State of the quota
| /filesForUpload/lorem-big.txt | /ocs/v1.php/cloud/users/%username% | 100 | 91.17 |
| /filesForUpload/lorem.txt | /ocs/v2.php/cloud/users/%username% | 200 | 6.99 |
| /filesForUpload/lorem-big.txt | /ocs/v2.php/cloud/users/%username% | 200 | 91.17 |
@env-config
Scenario: upload a file by setting OCIS spaces max quota
Given the config "OCIS_SPACES_MAX_QUOTA" has been set to "10"
And user "Brian" has been created with default attributes and without skeleton files
When user "Brian" uploads file with content "more than 10 bytes content" to "lorem.txt" using the WebDAV API
Then the HTTP status code should be "507"