This repository was archived by the owner on Dec 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
This repository was archived by the owner on Dec 3, 2019. It is now read-only.
Invalid quota entry is not being cleared #100
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
- Go to the Users page
- Select
Other...from the Quota dropdown for a user - Enter an invalid value, like
-1KB
Invalid quota value "-1KB"
is displayed - good
But the displayed quota for the user shows the invalid value -1KB - problem
Refresh the page, and the quota of the user is shown correctly as the previous value.
This is causing the webUI acceptance tests "Scenario Outline: change quota to an invalid value" in tests/acceptance/features/webUIManageQuota/manageUserQuota.feature to always fail.
https://drone.owncloud.com/owncloud/user_management/334/48
Scenario Outline: change quota to an invalid value # /var/www/owncloud/apps/user_management/tests/acceptance/features/webUIManageQuota/manageUserQuota.feature:37
When the administrator changes the quota of user "user1" to "<wished_quota>" using the webUI # WebUIUsersContext::theAdministratorSetsTheQuotaOfUserUsingTheWebUI()
Then a notification should be displayed on the webUI with the text 'Invalid quota value "<wished_quota>"' # WebUIGeneralContext::aNotificationShouldBeDisplayedOnTheWebUIWithTheText()
And the quota of user "user1" should be set to "Default" on the webUI # WebUIUsersContext::quotaOfUserShouldBeSetToOnTheWebUI()
Examples:
| wished_quota |
| stupidtext |
Users quota is set to "stupidtext" but expected "Default"
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Default'
+'stupidtext'
SCENARIO RESULT: (fail)
| 34,54GB |
Users quota is set to "34,54GB" but expected "Default"
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Default'
+'34,54GB'
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working