userdata: Improve public key submission
- Validate key submission content size. Maximum allowed content size is configurable in userdata settings (USERDATA_SSH_KEY_MAX_CONTENT_LENGTH).- Return 422 status code on submission validation errors.
userdata: Update unit tests
Add some missing Copyright notices
Also add 2013 in package COPYRIGHT files.
Fix pep8 errors
astakos: Remove call GET /authenticate
Use POST /tokens to authenticate. Delete AstakosClient.get_user_info()and replace its uses by AstakosClient.authenticate().
snf-cyclades-app: Use the new AstakosClient
Change AstakosClient to use ASTAKOS_AUTH_URL as entry point to theAstakos service, instead of ASTAKOS_BASE_URL it was using until now.
Remove ASTAKOS_BASE_URL from Cyclades settings, replace it withASTAKOS_AUTH_URL. Modify Cyclades to determine ASTAKOS_ACCOUNT_URL and...
cyclades: pep8 fixes
cyclades: Fix userdata tests
Mock the 'snf_django.lib.astakos.get_user' function.The way it was done didn't seem to work.
cyclades: Fix userdata limit check
Argument passed to PublicKeyPair.user_limit_exceeded() was a dictrather that a string (user uuid). Django would happily convert itto a string and pass it through to the database query.
Also fix a minor bug in tests.
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.
wheezy: Rename depricated HttpRequest attribute
From django docs:""" HttpRequest.raw_post_data renamed to HttpRequest.body
This attribute was confusingly named HttpRequest.raw_post_data, but itactually provided the body of the HTTP request. It’s been renamed to...
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...
Revert "wheezy: Rename depricated HttpRequest attribute"
This reverts commit cfc4b87c301504627e6a75ab2e4d32c8cd7a6e15. Thiscommit is reverted because it breaks compatibility with Django 1.2. Thisshould be applied for Synnefo 0.15.
wheezy: urls module doesn't export defaults
pep8 changes
cyclades: Public IP's overlay in UI
- Introduce a new overlay for IP addresses management (create, remove, connect, disconnect).- The overlay is accessible from the UI's options menu.
cyclades: Remove userdata api from ui prefix
- Individualize userdata api by placing module under synnefo namespace and urs under it's own USERDATA_PREFIX