The ceilometer.tests.unit.api.v2.test_complex_query Module

The ceilometer.tests.unit.api.v2.test_complex_query Module

Test the methods related to complex query.

class ceilometer.tests.unit.api.v2.test_complex_query.FakeComplexQuery(db_model, additional_name_mapping=None, metadata=False)[source]

Bases: ceilometer.api.controllers.v2.query.ValidatedComplexQuery

class ceilometer.tests.unit.api.v2.test_complex_query.TestComplexQuery(*args, **kwds)[source]

Bases: oslotest.base.BaseTestCase

setUp()[source]
test_convert_operator_to_lower_case()[source]
test_convert_orderby()[source]
test_invalid_complex_filter_wrong_field_names()[source]
test_invalid_filter_misstyped_field_name_samples()[source]
test_replace_isotime_in_complex_filter()[source]
test_replace_isotime_in_complex_filter_with_unbalanced_tree()[source]
test_replace_isotime_timezone_removed()[source]
test_replace_isotime_utc()[source]
test_replace_isotime_wrong_syntax()[source]
test_validate_orderby_empty_direction()[source]
test_validate_orderby_empty_field_name()[source]
test_validate_orderby_metadata_is_not_allowed()[source]
test_validate_orderby_wrong_field_name()[source]
test_validate_orderby_wrong_field_name_multiple_item_orderby()[source]
test_validate_orderby_wrong_multiple_item_order_string()[source]
test_validate_orderby_wrong_order_string()[source]
class ceilometer.tests.unit.api.v2.test_complex_query.TestFilterSyntaxValidation(*args, **kwds)[source]

Bases: oslotest.base.BaseTestCase

setUp()[source]
test_and_or()[source]
test_and_or_with_one_child_is_invalid()[source]
test_complex_operator_with_in()[source]
test_complex_operator_with_zero_child_is_invalid()[source]
test_empty_expression_is_invalid()[source]
test_empty_in_query_not_passing()[source]
test_invalid_complex_operator()[source]
test_invalid_field_name()[source]
test_invalid_simple_operator()[source]
test_missing_field_after_simple_op_is_invalid()[source]
test_more_than_one_complex_operator_is_invalid()[source]
test_more_than_one_field_is_invalid()[source]
test_more_than_one_operator_is_invalid()[source]
test_not()[source]
test_not_with_more_than_one_child_is_invalid()[source]
test_not_with_zero_child_is_invalid()[source]
test_simple_operator()[source]
test_valid_value_types()[source]
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.