The aodh.tests.functional.api.v2.test_query Module

Test the methods related to query.

class aodh.tests.functional.api.v2.test_query.TestQuery(*args, **kwds)[source]

Bases: oslotest.base.BaseTestCase

setUp()[source]
test_get_value_as_type_boolean_expression_without_type()[source]
test_get_value_as_type_integer_expression_without_type()[source]
test_get_value_as_type_with_bad_type()[source]
test_get_value_as_type_with_bad_value()[source]
test_get_value_as_type_with_boolean()[source]
test_get_value_as_type_with_boolean_without_type()[source]
test_get_value_as_type_with_datetime()[source]
test_get_value_as_type_with_float()[source]
test_get_value_as_type_with_float_without_type()[source]
test_get_value_as_type_with_integer()[source]
test_get_value_as_type_with_integer_without_type()[source]
test_get_value_as_type_with_string()[source]
test_get_value_as_type_with_string_without_type()[source]
test_get_value_as_type_with_syntax_error()[source]
test_get_value_as_type_with_syntax_error_colons()[source]
class aodh.tests.functional.api.v2.test_query.TestQueryToKwArgs(*args, **kwds)[source]

Bases: aodh.tests.base.BaseTestCase

setUp()[source]
test_get_alarm_changes_filter_valid_fields()[source]
test_get_alarms_filter_valid_fields()[source]
test_sample_filter_exclude_internal()[source]
test_sample_filter_invalid_field()[source]
test_sample_filter_invalid_op()[source]
test_sample_filter_multi()[source]
test_sample_filter_non_equality_on_metadata()[source]
test_sample_filter_self_always_excluded()[source]
test_sample_filter_single()[source]
test_sample_filter_timestamp()[source]
test_sample_filter_timestamp_invalid_op()[source]
test_sample_filter_translation()[source]
test_timestamp_validation()[source]