Fix tests, fix side auth cases
All tests now working
Various fixes to make AAI work for real
Refs: #345
Avoid redirect loops
Change shibboleth tokens to their real names
Remove accidentaly commited app entry from settings
Use vkoukis's TEST variable instead of my custom TESTING
Merge branch 'master' into auth-mechanism
Merge branch 'master' of https://code.grnet.gr/git/synnefo
Merge branch 'api-current'
Instructions on how to install a remote 0mq apt repo
Append the django_hudson plugin to the list of apps
Use distribution settings.py.dist for building
Set TEST if running in Hudson's environment
Add docstring in get_rsapi_state()
Add improved documentation on how the API state is derivedbased on the internal state of the VirtualMachine instance.
Change console req/response format, add unit tests
Change the format of JSON requests and replies for gettinga server console over VNC. Fix the cloud command-line tool tounderstand the new format.
Add unit tests for api/actions.py:get_console().
Add a quick-n-dirty method of detecting if we're running unit...
Fix API calls that depend on specific server ids
Fixes #417
Improve metadata tests
Refs: 417
Clarify the units of ram and disk
Wallet renamed to credits in fixtures (db)
Merge branch 'api-current' of https://code.grnet.gr/git/synnefo into api-current
Support dynamic port allocation for VNC console
Add new version of vapclient.py from commit 48b1400effof vncauthproxy (dynamic port pool allocation, JSON controlrequests and replies).
Modify api/actions.py to request dynamic port allocationand handle error conditions gracefully.
Add initial migration with south
Clean-up branch from migrations new_south_test_field = models.IntegerField(default=1) new_south_test_field = models.IntegerField(default=1)
Add tests for server metadata API methods
Fix the remaing tests
Shortcut in the aai module to make tests pass
Introduces a test-time runtime variable which allows REST-based (e.g.api) tests to pass through the authentication module
User-defined exceptions should inherit Exception
Conflicts: api/fixtures/api_test_data.json api/tests.py
Rename auth to aai and put all aai related stuff in it
manage.py had trouble running tests from auth (confirmed with[verigak]), and is also a good idea to have all aai stuff inone reusable place ([vkoukis]'s idea)
Merge branch 'master' of https://code.grnet.gr/git/synnefo into api-current
Merge branch 'master' of https://code.grnet.gr/git/synnefo into south-integration
Work on migration HoWTo in README.develop
Few corrections to the data migration instructions
Corrections when installing CI on new Debian
Finished first version of south migration mini-HowTo.
Added example that renames a field in SynnefoUser model
Writing some introductory south examples based on synnefo models.
Instructions on how to setup Jenkins for CI
Only return the updated metadata
Forgot to import os
Include .. in PYTHON path in manage.py
We have to do this in order to fix namespace inconsistencies (files insynnefo use imports starting with synnefo)refs: #393
Don't reference application that doesn't exist
Add the django-hudson module to the CI environment
Configurations for various databases
Integration with south
Handle errors in API action for VNC console
Handle errors in the get_console() server action and returnappropriate cloudFaults.
Remove the vncauthproxy/ directory, since vncauthproxyhas its own repository under https://code.grnet.gr.
Add new version of util/vapclient.py from commit 035424b630...
Merge branch 'api-tests'
Fix one API test failing with PostgreSQL backend
One API test (test_servers_details) was too restrictive and failedwith the PostgreSQL backend. It assumed consistent, by-id orderingbetween DB and API server list replies, and failed although there was1-1 correspondence between the two replies....
Fix broken db_test_data.json wrt to Image model
Removing the description field from the Image modeland moving it to ImageMetadata broke the fixtures indb_test_data.json and the associated tests of the db app.
Tests for api, db, logic run properly.
All Shibboleth-based tests pass
Now, we need to test it against a real installation
Query for greater since or equal
Make most tests pass
Add a check for the return code
Date header is only required for the test-server
Add a Date header in responses
Make use of it in tests.
Check for values inside servers
Merge branch 'api-current' into api-tests
Add empty models.py
Django requires it.
New test
Conflicts: settings.py.dist
Fixes to pass some shibboleth related tests
We import getfqdn, not socket
Use more specific exceptions
Merge branch 'api-current' of https://code.grnet.gr/git/synnefo into api-tests
Use server's FQDN in API reply for VNC console
Fix breakage in get_console() action
Really delete the VM if CreateInstance() fails
Fix bugs in api/server.py:create_server()
Fix bugs in server creation, in api/server.py:create_server().More specifically: * Make sure to save() the vm object before calling vm.backend_id * Delete the vm instance if the RAPI call fails for any reason * Use different variable names for the server name at the API level...
Have isoparse return naive datetimes, fixes #377
Have api/util.py:isoparse() return naive datetime objects, in UTC.Fixes #377.
Fix Image fixtures, remove size attribute
Fix the fixtures for the Image model, removing referencesto the size attribute, which no longer exists in the Image modelsince commit 838c404d4.
Also fix unloadable fixtures, by removing stray comma charsin JSON.
Add missing fixture file
Immediately convert dates to naive format
Please verify that it fixes #377
Refs: #377
Port tests to the new API
manage.py test api should work now
Add more comments to settings.py.dist
description has been removed from image
Allow create_server to set initial metadata
size has been removed from Image
Add comments for variables in settings.py.dist
Authentication routine, with comments
Authentication token duration settings and autogeneration
Add missing import
Actually fix simplejson wrt util/rapi.py
Broken by previous commit, 3481786
Use Python 2.6's json in util/rapi.py
This was fixed with a237869 but "broken" again via the pull of new RAPIversion from Ganeti (067dda9)
Add a programatic way of setting InnoDB for MySQL
Instead of having a commented-out options init_command section forsetting the InnoDB storage engine, add a programatic way (still insettings.py)
Add describedby links in version details
description field has been removed from Image
Make tests fail gracefully with assertions.
Also correct spelling of the word shibboleth
Revert changes to manage.py and make it executable
manage.py is as-is shipped by Django and hence there's no point inmaking it PEP-8 compliant (as was done in e646ebe5a).
While we're at it, make it also executable.
Add metadata support in Images
Removed description and size from Image model.
Merge branch 'master' of https://code.grnet.gr/git/synnefo into auth-mechanism
Update README with known good package versions
Make vncauthproxy a proper daemon, improve logging
Have vncauthproxy daemonize properly.Introduce pidfile under /var/run/vncauthproxy,logfile under /var/log/vncauthproxy.
Add SIGTERM handling to vncauthproxy
Install a signal handler for fatal signals using gevent.signal().This allows vncauthproxy to unlink its control socket and exitgracefully when SIGTERM is received.
Initial commit of vncauthproxy
Initial commit of vncauthproxy, based on commit5cf1d6553d72 from the git repository on code.grnet.gr.
add description and size as metadata on db/fixtures/images