Replace use of 'udec' with 'smart_unicode'
snf_django: Factor out resource reconcile
Generalize the checks operated during resource reconciliation so that theycan be used in all Synnefo components.
Adapt checks for user/project limits, include checks for project limits.
pithos: Add support for project originated quota
Introduce ``project`` container policy. The value of this policy denotesthe project from which the container quota originate.
cyclades: Validate fields of API requests
Make sure that all fields of a request (user input) have a valid type.This commit validates 'ports', 'servers' and 'floating_ips' APIs.
Refs #4979
cyclades: Detach serial from resource when resolved
snf_django: Change error status code if request method is not valid
Return 405 (NotAllowed) instead of 400 (BadRequest)Add Allow header in the response containing the list of valid methods
Add a new function to assert success code 201
Merge branch 'feature-cyclades-networks' into develop
Conflicts: snf-cyclades-app/synnefo/api/management/commands/server-inspect.py snf-cyclades-app/synnefo/app_settings/urls.py snf-cyclades-app/synnefo/logic/backend.py snf-cyclades-app/synnefo/logic/backend_allocator.py...
Fix pep8 errors
astakosclient: Separate public/private POST /tokens
Introduce function authenticate(), which performs POST /tokens inprivate mode, i.e. giving a token to be checked for authentication.Function get_endpoints() performs the call in public mode, in orderto retrieve the endpoints....
astakos: Remove call GET /authenticate
Use POST /tokens to authenticate. Delete AstakosClient.get_user_info()and replace its uses by AstakosClient.authenticate().
django-lib: Use the new AstakosClient
django-lib: Add assertConflict (409) in testing.py
cyclades: Fix the os-floating-ips API
Rewrite the of-floating-ips API to match with the new DB schema.
cyclades: Fix and add new tests for /networks
Also, delete tests for old networks.
Request Django=>1.4, <1.5
Drop support for Django 1.2. Remove compatibility code that were used inorder to support Django 1.2 and 1.4. Finally update django documentationlink in the docs.
Merge branch 'hotfix-0.14.8' into develop
Merge hotfix-0.14.8 which ports Synnefo to wheezy and Django 1.4.5
Conflicts: ci/ci_squeeze.conf ci/ci_wheezy.conf ci/schemas/one_node_squeeze/packages.conf ci/schemas/one_node_squeeze/squeeze.conf ci/schemas/one_node_squeeze/wheezy.conf...
snf_django: Decode the mocked userid to a unicode object
wheezy: urls module doesn't export defaults
Fix missing import and broken test
snf-django: Add missing import
snf-django: pep8 fixes
snf_django: Fix encoding in mocked userid
Merge branch 'hotfix-0.14.6' into develop
Conflicts: Changelog docs/admin-guide.rst snf-cyclades-app/synnefo/api/management/commands/network-remove.py snf-cyclades-app/synnefo/api/servers.py snf-cyclades-app/synnefo/api/tests/servers.py snf-cyclades-app/synnefo/logic/backend.py...
cyclades: Mock vm removal if creation fails
In case creating a VM fails before the OP_INSTANCE_CREATE job isenqueued in Ganeti, the VM and its NICs must be deleted, and theresources must be released from Quotaholder, which is exactly what isdone when a VM is deleted from Ganeti. Instead of duplicating the code,...
common: Strip trailing slash from endpoints
Remove trailing slash from the endpoints' publicURL field in servicedefinitions. These values end up in the response of POST /tokens, and,according to the keystone API, should not end in slash. A trailing slash...
pithos: Add tests
pithos: update tests
pithos: WIP - rewrite pithos tests
cyclades: Major refactor to api and logic apps
Major refactor to cyclades api and logic apps that removes most codefrom the api views and moves it to logic app, so that the same logiccode can be used by different apps (e.g. EC2 API). Code is moved into...
snf_django: Fix bug in BaseAPITest
Include 202 in success responses.
snf_django: Mock quotaholder to BaseAPITest
Mock quotaholder in all of BaseAPITest calls.
django-lib: Additional BaseAPITest helper assertion
Introduce assertMethodNotAllowed method in BaseAPITest class. The methodasserts that provided response is a valid ``Method not allowed`` API response.
djangolib: Improve root redirect handling
- avoid registering root url in case <base_path> equals to root url- additional helper redirect for non trailing slash <base_path> endpoint
djangolib: Append trailling slash on default root redirects
django_lib: Component's urlpatterns utilty
extend_with_root_redirects can be used by components to easily extend theregistered urlpatterns with utility redirect views for the root urls.
astakos: Adapt tests to 2.6-style unittest
Define assertGreater, assertIn, assertRaises in snf_django.utils.testing
Improve mocked quotaholder
Mock 'resolve_commissions' call.
Mock quotaholder for Cyclades tests
Create 'mocked_quotaholder' context manager to bypass commission and useit in Cyclades tests. Also this commit does some various fixes to othertests.
Move common test code to snf_django.lib.testing