masakari/masakari/tests
pooja jadhav 4048b1fd8e Add db purge support
Added db purge support to delete the soft-deleted records from tables.
In case of tables 'hosts' and 'failover_segments' the decision to purge
the record is made on the basis of 'deleted' and 'deleted_at' column's
value. However in case of 'notifications' table it is decided on the
basis of 'updated_at' column's value as notifications don't have
'delete' API.

Operator can use the below command to purge the records:

"masakari-manage db purge --age_in_days <days> --max_rows <rows>"

Implements: blueprint db-purge-support

Co-author: Pooja Jadhav <pooja.jadhav@nttdata.com>
Change-Id: Id959b0e2b84d5d2587d6b70b8f695f69634a1d17
2018-04-18 13:03:06 +05:30
..
unit Add db purge support 2018-04-18 13:03:06 +05:30
__init__.py Initial Cookiecutter Commit. 2016-06-28 13:28:27 +09:00
base.py Add support for wsgi framework 2016-07-12 13:10:10 +05:30
fixtures.py Add database related test cases 2016-12-09 18:30:55 +05:30
uuidsentinel.py Remove redundant str typecasting 2016-09-23 12:55:49 +05:30