keystone.tests.unit.catalog package

Submodules

keystone.tests.unit.catalog.test_backends module

class keystone.tests.unit.catalog.test_backends.CatalogTests[source]

Bases: object

test_avoid_creating_circular_references_in_regions_update()
test_cache_layer_delete_service_with_endpoint()
test_cache_layer_region_crud(*args, **kwargs)
test_cache_layer_service_crud(*args, **kwargs)
test_circular_regions_can_be_deleted(*args, **keywargs)
test_create_endpoint()
test_create_endpoint_nonexistent_region()
test_create_endpoint_nonexistent_service()
test_create_region_invalid_parent_region_returns_not_found()
test_create_region_with_duplicate_id()
test_delete_endpoint_returns_not_found()
test_delete_region_returns_not_found()
test_delete_service_returns_not_found()
test_delete_service_with_endpoint()
test_get_catalog_endpoint_disabled()

Get back only enabled endpoints when get the v2 catalog.

test_get_endpoint_returns_not_found()
test_get_region_returns_not_found()
test_get_service_returns_not_found()
test_get_v3_catalog_endpoint_disabled()

Get back only enabled endpoints when get the v3 catalog.

test_invalidate_cache_when_updating_endpoint(*args, **kwargs)
test_invalidate_cache_when_updating_region(*args, **kwargs)
test_invalidate_cache_when_updating_service(*args, **kwargs)
test_list_endpoints()
test_list_regions_filtered_by_parent_region_id()
test_region_crud()
test_service_crud()
test_service_filtering()
test_update_endpoint()
test_update_endpoint_nonexistent_region()
test_update_endpoint_nonexistent_service()

keystone.tests.unit.catalog.test_core module

class keystone.tests.unit.catalog.test_core.FormatUrlTests(*args, **kwargs)[source]

Bases: keystone.tests.unit.core.BaseTestCase

test_formatting_a_non_string()
test_raises_malformed_on_incomplete_format()
test_raises_malformed_on_missing_key()
test_raises_malformed_on_wrong_type()
test_substitution_with_allowed_project_keyerror()
test_substitution_with_allowed_tenant_keyerror()
test_substitution_with_key_not_allowed()
test_successful_formatting()

Module contents