tests: Rename default database name
common: Make tests use postgresql
Modify default settings for tests to use postgresql by default.
Merge branch 'hotfix-0.14.3' into develop
Conflicts: Changelog snf-astakos-app/astakos/im/messages.py snf-pithos-app/pithos/api/manage_accounts/__init__.py snf-pithos-app/pithos/api/management/commands/reconcile-resources-pithos.py snf-pithos-app/pithos/api/settings.py...
Replace regexp in cleanse middleware
Replace the regexp in mail_admins_safe() with manual parsing of the message.
common: Parameterize DB test settings
Consult environment variables in order to connect to the database.
Add greenlet tracing code in snf-common
Add greenlet tracing code in snf-common, useful for debugging stuckgevent gunicorn workers.
If the environmental variable SYNNEFO_TRACE is set to a non-emptystring, the tracing code will install a SIGTRAP signal handler for the...
pithos: Update/extend tests
pithos: Fix tests to run with sqlalchemy backend/sqlite engine
pithos: Restore sqlite backend module
pithos: Fix & update tests (premature commit)
pithos: Fix tests challenging ETag
pithos: remove hardcoded urls in tests
pithos: WIP - rewrite pithos tests
common: Include and document SERVER_EMAIL, CONTACT_EMAIL settings
in snf-common settings
common: fix lib url handling and doctests
Revert "common: do not overwrite test database setting"
This reverts commit b6eb72e5ccef38cfabf13f6fdf2acf53438ab34e.
common: make service public urls end in '/'
common: Add a get_service_path() function
common: do not overwrite test database setting
cloudbar: Automatic active service detection
automatically detect which cloudbar menu is active by matching the currentwindow location with the registered service url.
common: get_public_endpoint() helper for service URLs
snf-common: update test settings
Add cloudbar settings in the test settingsto prevent tests from failingif cyclades are not installed
common: add list index support in keypath util
tests: Set default BASE_URL settings
common: Export only services specified as public
Employ helper function `filter_public' in service-export-* commands.Also set `pithos_ui' service to non-public and clear version of`astakos_ui'.
astakos: Update references to astakos urls
/im/ renamed to /ui/.Updated all references in default settings, documentation and constants.
service catalogs: autofill endpoints from BASE_URL
common: join_url helper improvements
- Handle single arguments- Avoid lstrip'ing first argument
common: more improvements in join_urls
common: get/set/del path utility for nested dicts
cyclades: initialize settings from service catalog
common: Support multiple arguments in join_urls util
make synnefo URLs consistent and configurable
https://service.deployment.vendor.tld/service-base/api-prefix/hard/path |___________________________________| |__________| |________| |_______| BASE_HOST BASE_PATH PREFIX Hardcoded...
astakos: Convert list-like settings to tuple
Settings ADMINS, MANAGERS, and HELPDESK are tuples even though they couldnaturally be lists. If one sets by mistake one of these to list, thistriggers an error in notification code, which tries to concatenate them:...
astakos: move get_services back to astakos im services
astakos: Support units in resource-related commands
Add library synnefo.util.units for parsing numerical valueswith an optional unit suffix and printing integer values basedon a given style.
Styles `b', `kb', `mb', etc allow printing in the respective multiples...
astakos: move get_menu service under astakos im services
get_menu is used only by astakos cloudbar:it should not be under astakos api services
Merge branch 'feature-branding' into develop
Conflicts: snf-astakos-app/astakos/im/templates/im/account_pending_moderation_notification.txt snf-astakos-app/astakos/im/templates/im/group_creation_notification.txt snf-astakos-app/astakos/im/views.py
Merge branch 'develop' into feature-astakos-userflow
common: Disable proxy in tests
Do not follow redirections in im tests.
astakos: User activation flow improvements
Major refactoring on user email verification/activation process---------------------------------------------------------------Activation logic moved from dispersed code in functions/view modules toActivationBackend methods. All user activation handling code in astakos views...
Use custom method for joining urls
Implement 'join_urls' method for joining a base URL with a path,without worrying about redundant or missing "/". Do not use'urlparse.urljoin', since it has different semantics.
pep8 fixes
Merge branch 'develop' into feature-branding
Conflicts: snf-astakos-app/astakos/im/static/im/cloudbar/cloudbar.js snf-astakos-app/astakos/im/templates/im/base.html snf-astakos-app/astakos/im/templates/im/landing.html snf-astakos-app/astakos/im/views.py...
common: Remove obsolete 'queue' module
Remove synnefo.lib.commissioning
astakos: WIP move all api calls under ``/astakos/api``
Refs: #3340
Synnefo branding: settings improvements
Remove synnefo.lib.quotaholder
Use astakosclient to access the quotaholder instead.
common: Recursive dictionary merge helper method
Merge branch 'develop' into feature-quotas
Conflicts: astakosclient/astakosclient/__init__.py astakosclient/astakosclient/errors.py astakosclient/astakosclient/tests.py docs/index.rst
common: Fix resolving of SOUTH_TESTS_MIGRATE
in synnefo.settings.test
common: Test settings improvements
- 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...
amqp_puka: Fix wrong import of ordereddict
Move transaction.py to snf_django package
Move intdecimalfield.py to snf_django package
Rename it to fields.py and update all migrations that reference the field.
Move managers.py to snf_django package
Conflicts: snf-astakos-app/astakos/im/api/service.py snf-quotaholder-app/quotaholder_django/quotaholder_app/callpoint.py
Move astakos lib from snf-common to snf-django-lib
Move code and PEP8 fixes
Use 'python-objpool' instead of 'synnefo.lib.pool'
Use the python-objpool package for pooling resources as object, insteadof the pooling code that existed in snf-common ('synnefo.lib.pool')
Refs #3524
Remove override_users option from astakos options
Remove obsolete Ganeti RAPI client from snf-common
This Ganeti RAPI client has been moved to snf-cyclades-app.
Move parsedate module to snf_django
Move common test code to snf_django.lib.testing
wip Restructure astakos views
Replace custom transaction context with:
- decorator `commit_on_success_strict', which uses transaction.commit_manually and ensures that the transaction rolls back on any exception
- context ExceptionHandler, which logs and...
Merge branch 'release-0.13' into develop
Conflicts: snf-astakos-app/astakos/im/messages.py snf-astakos-app/astakos/im/views.py version
Merge branch 'tmp-common-email-recipients' into develop
Merge branch 'feature-astakos-authpolicies' into develop
Conflicts: snf-cyclades-app/synnefo/api/management/commands/flavor-create.py version
Pep8 fixes
Introduce CONTACT_EMAIL setting
applications can use the setting as to point users in which emailaddress they should get in contact for support.
Provide additional user lists in common settings
To be used as recipients in applications notification messages
pool context manager, http pool AssertionError fix
Refs #3492
- Introduce a generic PooledObject class to act both as a context manager for getting and putting back an object from a pool.
- Implement a class PooledHTTPConnection(PooledObject) as a sublcass of the one in (1)...
remove obsolete example code module http_request
Merge branch 'release-0.13' into feature-astakos-authpolicies
Fix deref before None check in http pool
Return EmptyQuerySet on an EmptyResultSet
Refs #3489
Call to as_sql() raises EmptyResultSet in a couple of occasions,more importantly when filtering based on an empty list: filter(field__in=[]).
Move managers.py in synnefo.lib.db
This makes it easier to maintain, since it is used in multiple applications(astakos.im and quotaholder_app).
Move UserCache from cyclades.common to lib.astakos
Move UserCache from synnefo.management.common to synnefo.lib.astakos.Also, update ListCommand with 'astakos_url' and 'astakos_token' classattributes, which must be declared only when 'user_uuid_field' is used.
Common synnefo testing utils lib
New synnefo.util.testing lib added. Currently including helper decorator andcontext processor to override django settings.
Fix inadvertent use of shared objects
Fix inadvertent use of shared objects in synnefo/lib/astakos.py andpithos/api/delegate.py, since current use is racy when running multiplerequests under gunicorn. Create a private, per-request copy instead.
Fix+move HTTP quotaholder client in synnefo.lib
Allow per-service configuration of the (http) quotaholder client.Kamaki is no longer needed in service (or ganeti) nodes,because the client has been moved to snf-common.
Also fix the default quotaholder settings for pithos backend to be disabled...
fix quotaholder nested exception JSON failure
also, log http 500 on server side
pep8 fixes and copyright notice
udec: decode an object into a unicode object
Simplify handler's call
Remove mac2eui64 dependency
Import mac2eui64 code which is already shipped under util/mac2eui64 insteadof shipping it as a seperate script.
pep8 fixes to snf-common
Rollback, even if transaction is not dirty
This is a temporary bug fix forhttps://code.djangoproject.com/ticket/9964 .Django prior to 1.3 does not set a transactiondirty when the DB throws an exception, and thusdoes not trigger rollback, resulting in a...
Grammar fix
uenc: convert to repr(utf8) if encoding fails.
Do not postprocess if it's marked for rollback
Run postprocess in a transaction context too
Change error handling in uuid to displayname pithos path migration.
Stop migraton if it fails to retrieve a uuid/displayname.
uenc: utility function for encoding unicode to str
1. Motivation.
Too often a programmer outputs an object that can either be str orunicode. The default python encoding of 'ascii' cannot handle all ofunicode text, but this will not crash until such a text is encountered....
strbigdec: smart big decimal number-to-string
Cleanup transaction context
Cleanse middleware fix
patch only once
Remove a debugging print
Custom transaction context
A context which can be used as a decorator;it commits the transaction if no exception was raised andthe rollback flag was not checked.Executes customizable code after committing.