Base classes for DB backend implementation test
-
class ceilometer.tests.functional.storage.test_storage_scenarios.BigIntegerTest(*args, **kwds)[source]
Bases: ceilometer.tests.db.TestBase
-
test_metadata_bigint(*args, **kwargs)[source]
-
class ceilometer.tests.functional.storage.test_storage_scenarios.ComplexSampleQueryTest(*args, **kwds)[source]
Bases: ceilometer.tests.functional.storage.test_storage_scenarios.DBTestBase
-
setUp(*args, **kwargs)[source]
-
test_no_filter(*args, **kwargs)[source]
-
test_no_filter_with_limit(*args, **kwargs)[source]
-
test_no_filter_with_zero_limit(*args, **kwargs)[source]
-
test_query_complex_filter(*args, **kwargs)[source]
-
test_query_complex_filter_with_complex_orderby(*args, **kwargs)[source]
-
test_query_complex_filter_with_in(*args, **kwargs)[source]
-
test_query_complex_filter_with_limit(*args, **kwargs)[source]
-
test_query_complex_filter_with_list(*args, **kwargs)[source]
-
test_query_complex_filter_with_list_with_limit(*args, **kwargs)[source]
-
test_query_complex_filter_with_list_with_simple_orderby(*args, **kwargs)[source]
-
test_query_complex_filter_with_regexp(*args, **kwargs)[source]
-
test_query_complex_filter_with_regexp_metadata(*args, **kwargs)[source]
-
test_query_complex_filter_with_simple_orderby(*args, **kwargs)[source]
-
test_query_complex_filter_with_wrong_order_in_orderby(*args, **kwargs)[source]
-
test_query_complex_filterwith_list_with_complex_orderby(*args, **kwargs)[source]
-
test_query_complex_metadata_filter(*args, **kwargs)[source]
-
test_query_mixed_data_and_metadata_filter(*args, **kwargs)[source]
-
test_query_negate_not_equal(*args, **kwargs)[source]
-
test_query_negated_complex_expression(*args, **kwargs)[source]
-
test_query_negated_in_op(*args, **kwargs)[source]
-
test_query_negated_metadata(*args, **kwargs)[source]
-
test_query_non_existing_metadata_with_result(*args, **kwargs)[source]
-
test_query_non_existing_metadata_without_result(*args, **kwargs)[source]
-
test_query_simple_filter(*args, **kwargs)[source]
-
test_query_simple_filter_with_not_equal_relation(*args, **kwargs)[source]
-
test_query_simple_metadata_filter(*args, **kwargs)[source]
-
test_query_simple_metadata_with_in_op(*args, **kwargs)[source]
-
test_query_with_double_negation(*args, **kwargs)[source]
-
class ceilometer.tests.functional.storage.test_storage_scenarios.CounterDataTypeTest(*args, **kwds)[source]
Bases: ceilometer.tests.functional.storage.test_storage_scenarios.DBTestBase
-
prepare_data()[source]
-
test_storage_can_handle_float_values(*args, **kwargs)[source]
-
test_storage_can_handle_large_values(*args, **kwargs)[source]
-
class ceilometer.tests.functional.storage.test_storage_scenarios.DBTestBase(*args, **kwds)[source]
Bases: ceilometer.tests.db.TestBase
-
create_and_store_sample(timestamp=datetime.datetime(2017, 7, 17, 12, 5, 5, 989184), metadata=None, name='instance', sample_type='cumulative', unit='', volume=1, user_id='user-id', project_id='project-id', resource_id='resource-id', source=None)[source]
-
static create_side_effect(method, exception_type, test_exception)[source]
-
prepare_data()[source]
-
setUp(*args, **kwargs)[source]
-
class ceilometer.tests.functional.storage.test_storage_scenarios.MeterTest(*args, **kwds)[source]
Bases: ceilometer.tests.functional.storage.test_storage_scenarios.DBTestBase
-
test_get_meters(*args, **kwargs)[source]
-
test_get_meters_by_empty_metaquery(*args, **kwargs)[source]
-
test_get_meters_by_metaquery(*args, **kwargs)[source]
-
test_get_meters_by_project(*args, **kwargs)[source]
-
test_get_meters_by_user(*args, **kwargs)[source]
-
class ceilometer.tests.functional.storage.test_storage_scenarios.MongoAutoReconnectTest(*args, **kwds)[source]
Bases: ceilometer.tests.functional.storage.test_storage_scenarios.DBTestBase
-
setUp(*args, **kwargs)[source]
-
test_mongo_client(*args, **kwargs)[source]
-
test_mongo_cursor_next(*args, **kwargs)[source]
-
test_mongo_find_and_modify(*args, **kwargs)[source]
-
test_mongo_insert(*args, **kwargs)[source]
-
test_mongo_update(*args, **kwargs)[source]
-
class ceilometer.tests.functional.storage.test_storage_scenarios.MongoTimeToLiveTest(*args, **kwds)[source]
Bases: ceilometer.tests.functional.storage.test_storage_scenarios.DBTestBase
-
test_ensure_index(*args, **kwargs)[source]
-
test_modification_of_index(*args, **kwargs)[source]
-
class ceilometer.tests.functional.storage.test_storage_scenarios.RawSampleTest(*args, **kwds)[source]
Bases: ceilometer.tests.functional.storage.test_storage_scenarios.DBTestBase
-
prepare_data()[source]
-
test_clear_metering_data(*args, **kwargs)[source]
-
test_clear_metering_data_expire_samples_only(*args, **kwargs)[source]
-
test_clear_metering_data_no_data_to_remove(*args, **kwargs)[source]
-
test_get_sample_counter_volume(*args, **kwargs)[source]
-
test_get_samples_by_both_times(*args, **kwargs)[source]
-
test_get_samples_by_end_time(*args, **kwargs)[source]
-
test_get_samples_by_metaquery(*args, **kwargs)[source]
-
test_get_samples_by_metaquery_key_with_dot_in_metadata(*args, **kwargs)[source]
-
test_get_samples_by_name(*args, **kwargs)[source]
-
test_get_samples_by_name2(*args, **kwargs)[source]
-
test_get_samples_by_project(*args, **kwargs)[source]
-
test_get_samples_by_resource(*args, **kwargs)[source]
-
test_get_samples_by_source(*args, **kwargs)[source]
-
test_get_samples_by_start_time(*args, **kwargs)[source]
-
test_get_samples_by_user(*args, **kwargs)[source]
-
test_get_samples_by_user_limit(*args, **kwargs)[source]
-
test_get_samples_by_user_limit_bigger(*args, **kwargs)[source]
-
test_get_samples_in_default_order(*args, **kwargs)[source]
-
test_get_samples_limit(*args, **kwargs)[source]
-
test_get_samples_limit_zero(*args, **kwargs)[source]
-
test_record_metering_data_retry_failure_on_deadlock(*args, **kwargs)[source]
-
test_record_metering_data_retry_success_on_deadlock(*args, **kwargs)[source]
-
class ceilometer.tests.functional.storage.test_storage_scenarios.ResourceTest(*args, **kwds)[source]
Bases: ceilometer.tests.functional.storage.test_storage_scenarios.DBTestBase
-
prepare_data()[source]
-
test_get_resources(*args, **kwargs)[source]
-
test_get_resources_both_timestamps(*args, **kwargs)[source]
-
test_get_resources_by_alternate_user(*args, **kwargs)[source]
-
test_get_resources_by_empty_metaquery(*args, **kwargs)[source]
-
test_get_resources_by_metaquery(*args, **kwargs)[source]
-
test_get_resources_by_metaquery_key_with_dot_in_metadata(*args, **kwargs)[source]
-
test_get_resources_by_project(*args, **kwargs)[source]
-
test_get_resources_by_source(*args, **kwargs)[source]
-
test_get_resources_by_user(*args, **kwargs)[source]
-
test_get_resources_end_timestamp(*args, **kwargs)[source]
-
test_get_resources_most_recent_metadata_all(*args, **kwargs)[source]
-
test_get_resources_most_recent_metadata_single(*args, **kwargs)[source]
-
test_get_resources_start_timestamp(*args, **kwargs)[source]
-
class ceilometer.tests.functional.storage.test_storage_scenarios.ResourceTestOrdering(*args, **kwds)[source]
Bases: ceilometer.tests.functional.storage.test_storage_scenarios.DBTestBase
-
prepare_data()[source]
-
test_get_resources_ordering_all(*args, **kwargs)[source]
-
test_get_resources_ordering_single(*args, **kwargs)[source]
-
class ceilometer.tests.functional.storage.test_storage_scenarios.StatisticsGroupByTest(*args, **kwds)[source]
Bases: ceilometer.tests.functional.storage.test_storage_scenarios.DBTestBase
-
prepare_data()[source]
-
test_group_by_end_timestamp(*args, **kwargs)[source]
-
test_group_by_end_timestamp_before(*args, **kwargs)[source]
-
test_group_by_metadata(*args, **kwargs)[source]
-
test_group_by_metadata_with_period(*args, **kwargs)[source]
-
test_group_by_metadata_with_query_filter(*args, **kwargs)[source]
-
test_group_by_metadata_with_query_filter_and_period(*args, **kwargs)[source]
-
test_group_by_metadata_with_query_filter_multiple(*args, **kwargs)[source]
-
test_group_by_multiple_metadata(*args, **kwargs)[source]
-
test_group_by_multiple_regular(*args, **kwargs)[source]
-
test_group_by_multiple_regular_metadata(*args, **kwargs)[source]
-
test_group_by_project(*args, **kwargs)[source]
-
test_group_by_resource(*args, **kwargs)[source]
-
test_group_by_source(*args, **kwargs)[source]
-
test_group_by_start_end_timestamp(*args, **kwargs)[source]
-
test_group_by_start_end_timestamp_with_period(*args, **kwargs)[source]
-
test_group_by_start_end_timestamp_with_query_filter(*args, **kwargs)[source]
-
test_group_by_start_end_timestamp_with_query_filter_and_period(*args, **kwargs)[source]
-
test_group_by_start_timestamp(*args, **kwargs)[source]
-
test_group_by_start_timestamp_after(*args, **kwargs)[source]
-
test_group_by_unknown_field(*args, **kwargs)[source]
-
test_group_by_user(*args, **kwargs)[source]
-
test_group_by_with_period(*args, **kwargs)[source]
-
test_group_by_with_query_filter(*args, **kwargs)[source]
-
test_group_by_with_query_filter_and_period(*args, **kwargs)[source]
-
test_group_by_with_query_filter_multiple(*args, **kwargs)[source]
-
class ceilometer.tests.functional.storage.test_storage_scenarios.StatisticsTest(*args, **kwds)[source]
Bases: ceilometer.tests.functional.storage.test_storage_scenarios.DBTestBase
-
prepare_data()[source]
-
test_by_meter(*args, **kwargs)[source]
-
test_by_project(*args, **kwargs)[source]
-
test_by_user(*args, **kwargs)[source]
-
test_by_user_period(*args, **kwargs)[source]
-
test_by_user_period_start_end(*args, **kwargs)[source]
-
test_by_user_period_with_timezone(*args, **kwargs)[source]
-
test_no_period_in_query(*args, **kwargs)[source]
-
test_one_resource(*args, **kwargs)[source]
-
test_period_is_int(*args, **kwargs)[source]
-
test_with_no_sample(*args, **kwargs)[source]
-
class ceilometer.tests.functional.storage.test_storage_scenarios.TestBatchRecordingMetering(*args, **kwds)[source]
Bases: ceilometer.tests.db.TestBase
-
test_batch_recording_metering_data(*args, **kwargs)[source]
-
class ceilometer.tests.functional.storage.test_storage_scenarios.TestRecordUnicodeSamples(*args, **kwds)[source]
Bases: ceilometer.tests.functional.storage.test_storage_scenarios.DBTestBase
-
prepare_data()[source]
-
test_unicode_sample(*args, **kwargs)[source]