deb-glance/glance/tests/functional/db
GeetikaBatra 38563b0555 Add a soft delete functionality for tasks.
Currently there is no mechanism for deleting tasks on regular basis.
This patch adds a new function that is called in the tasks_get_all
function, so that everytime tasks lists are called, the function
checks if tasks in the database have surpassed the expired_at value.
If that is the case, then it sets the deleted value as 1 for all the
expired tasks.

Co-Authored-By: Mike Fedosin <mfedosin@mirantis.com>

Implements https://review.openstack.org/#/c/324648/
Change-Id: I0bde982de948901f6bfbfab9e57cf84891c22052
2016-06-07 11:23:30 +05:30
..
__init__.py Updates OpenStack LLC with OpenStack Foundation 2013-02-17 19:19:43 -08:00
base.py Add a soft delete functionality for tasks. 2016-06-07 11:23:30 +05:30
base_glare.py Move Glance Artifact Repository API to separate endpoint 2016-02-10 18:34:55 +03:00
base_metadef.py Fix order of arguments in assertEqual 2015-09-16 02:55:33 -07:00
test_registry.py Move from oslo.db to oslo_db 2015-01-12 19:03:20 +00:00
test_rpc_endpoint.py Drop use of 'oslo' namespace package 2015-04-28 18:57:45 +00:00
test_simple.py test: make enforce_type=True in CONF.set_override 2015-11-19 20:45:56 +08:00
test_sqlalchemy.py Remove verbose option from glance tests 2016-05-26 15:00:11 +00:00