aodh/tests/storage
Fengqian Gao 7e3a528b35 Add pagination parameter to the database backends of storage
Put all parameters for pagination into class named pagination,
add this paramter to the interface of the database driver.
For now, the methods support pagination query include
get_resources, get_meters, get_alarms.
For get_samples function, because it has parameter limit now,
which should be include in pagination class, it is hard to
add the pagination query in this patch(it involves API codes).
We will add that in another patch.

Pagination parameter includes the following members:
1) 'limit': maximum number of items to return.
2) 'primary_sort_dir': sort direction of primary key.
2) 'marker_value': value of the primary key to identify the last
    item of the previous page.
3) 'sort_keys': array of attributes user pass in except the primary key.
4) 'sort_dirs': per-column array of sort_dirs, corresponding to sort_keys.

We update the prototype of sqlalchemy, hbase, mongodb
db2 and logging storage backend.
Pagination query for mongodb is merged already, we need to
reverse it first.

It is part of bp/paginate-db-search.

Implements blueprint paginate-db-search

Change-Id: I6eedcd728427f4ab20f575aa10675822301fd472
2013-08-30 09:50:50 +08:00
..
__init__.py Sketch out a plugin system for saving metering data. 2012-06-08 15:00:47 -04:00
test_base.py Bump hacking to 0.7.0 2013-08-16 13:22:03 +08:00
test_get_engine.py ceilometer tests need to be enabled/cleaned 2013-07-11 09:38:55 -04:00
test_impl_hbase.py Refactored storage tests to use testscenarios 2013-08-26 14:24:22 +02:00
test_impl_log.py ceilometer tests need to be enabled/cleaned 2013-07-11 09:38:55 -04:00
test_impl_mongodb.py alarm: generate alarm_id in API 2013-08-29 11:32:53 +02:00
test_impl_sqlalchemy.py Refactored storage tests to use testscenarios 2013-08-26 14:24:22 +02:00
test_models.py Get all tests to use tests.base.TestCase 2013-05-15 11:37:48 -04:00
test_storage_scenarios.py Add pagination parameter to the database backends of storage 2013-08-30 09:50:50 +08:00