- 24 Apr, 2013 4 commits
-
-
Giorgos Korfiatis authored
Also remove unused `context' argument and replace empty list default values with None.
-
Giorgos Korfiatis authored
-
Giorgos Korfiatis authored
-
Giorgos Korfiatis authored
-
- 23 Apr, 2013 11 commits
-
-
Kostas Papadimitriou authored
in synnefo.settings.test
-
Kostas Papadimitriou authored
-
Giorgos Korfiatis authored
-
Kostas Papadimitriou authored
importing setting names explicitly makes it hard to write tests that depend on specific setting values and polutes the module namespace. In this commit only settings that are currently used in tests where refactored.
-
Kostas Papadimitriou authored
- Avoid settings overrides from conf files inside SYNNEFO_SETTINGS_DIR Tests are expected to succeed with exact setting values defined either in tests modules/cases or in the default synnefo setting modules. To ensure this we temporarily set SYNNEFO_SETTINGS_DIR environmental variable to a non existing directory. - Use DEBUG=False by default. We want our code to be tested in an settings environment as close to what we would set in a production deployment. - Set initial astakos IM_MODULES setting to be able to test third party providers. This will be removed once we manage to dynamically run different tests with different IM_MODULES combinations
-
Kostas Papadimitriou authored
-
Giorgos Korfiatis authored
-
Giorgos Korfiatis authored
So that it follows the naming scheme of other astakosclient calls.
-
Giorgos Korfiatis authored
Assume a resource `astakos.pending_app' related to service `astakos'. On submitting an application, issue a commission that will update the related counter if possible, and accept the commission on success. On approving/denying/cancelling an application, update the counter likewise. We always charge the application `owner'; however, if the `applicant' is a project admin, we issue commission in force mode which succeeds even if it exceeds the limit. In order to pre-emptively check in the UI, follow the same process in `dry run' mode, which issues a commission and rejects it on success. Remove option of user-update to set its limit. Refs #3349
-
Giorgos Korfiatis authored
-
Giorgos Korfiatis authored
It is the API code's task to transform the input dict to list.
-
- 22 Apr, 2013 15 commits
-
-
Giorgos Korfiatis authored
-
Giorgos Korfiatis authored
Class structure is no more needed; there is no need for initialization, since the code is used internally.
-
Giorgos Korfiatis authored
Also merge all migrations from 0026 to 0032.
-
Giorgos Korfiatis authored
-
Giorgos Korfiatis authored
-
Giorgos Korfiatis authored
-
Giorgos Korfiatis authored
-
Giorgos Korfiatis authored
All calls take a request_user (of type AstakosUser) argument.
-
Giorgos Korfiatis authored
-
Giorgos Korfiatis authored
-
Giorgos Korfiatis authored
-
Giorgos Korfiatis authored
-
Giorgos Korfiatis authored
-
Giorgos Korfiatis authored
-
Giorgos Korfiatis authored
Do not update holding limit if there exist user-specific base quota for the particular resource.
-
- 19 Apr, 2013 10 commits
-
-
Giorgos Korfiatis authored
Make sure that no Commission or Provision entry is created when issue_commission fails, even if the transaction is committed.
-
Kostas Papadimitriou authored
-
Giorgos Korfiatis authored
The following indicators are returned for each holding: "limit": the quota limit (as before) "usage": the current usage (pessimistically, includes any pending allocations) "pending": the difference of max and min allocation, indicates that there are pending commissions on this holding
-
Giorgos Korfiatis authored
Replace `available' by two fields: `limit' and `usage'.
-
Giorgos Korfiatis authored
-
Kostas Papadimitriou authored
also include services for which no existing presentation data exist. Admin can use ASTAKOS_SERVICE_META setting to customize the service presentation metadata.
-
Kostas Papadimitriou authored
-
Kostas Papadimitriou authored
-
Kostas Papadimitriou authored
Update view to use the introduced astakos quotas api.
-
Giorgos Korfiatis authored
-