keystone/keystone/tests
Brant Knudson 01a6c7db3e Fix using non-default default_domain_id
Changing the default_domain_id to something other than the
default would cause several operations to not work correctly.
This is because the value of default_domain_id was read and
cached in several parts on import, which is before the call to
CONF() so the cached value is the original default ('default')
rather than the value that the operator has in the config file.

This change removes the cached default_domain_id and instead
reads the value when it's needed at runtime so that the
user-configured value is used instead of the original default.

Change-Id: I9543e2108866ed66000d75f868bbd2b1ed978b97
Closes-Bug: #1265108
2014-01-16 10:01:36 -06:00
..
contrib Introduce basic Pecan/WSME framework for KDS 2014-01-07 08:15:09 -06:00
fixtures Rewrites the serveapp method into a fixture 2013-11-19 02:27:42 +00:00
tmp Move 'tests' directory into 'keystone' package 2013-08-14 01:30:01 -03:00
__init__.py Move gettextutils installation in tests to core 2013-09-10 14:20:13 -05:00
_ldap_livetest.py Don't run non-tests 2013-12-05 13:10:11 +00:00
_ldap_tls_livetest.py Don't run non-tests 2013-12-05 13:10:11 +00:00
_sql_livetest.py Cleanup tests imports so not relative 2013-09-10 18:55:44 +00:00
auth_plugin_external_default_legacy.conf Fix external auth (REMOTE_USER) plugin support 2014-01-10 16:26:23 -06:00
auth_plugin_external_disabled.conf Move 'tests' directory into 'keystone' package 2013-08-14 01:30:01 -03:00
auth_plugin_external_domain.conf Add external.Base class to external plugins 2013-10-21 09:52:01 +02:00
auth_plugin_external_domain_legacy.conf Fix external auth (REMOTE_USER) plugin support 2014-01-10 16:26:23 -06:00
backend_db2.conf Use oslo.db sessions 2013-12-18 16:17:26 -06:00
backend_ldap.conf Move 'tests' directory into 'keystone' package 2013-08-14 01:30:01 -03:00
backend_ldap_sql.conf Use oslo.db sessions 2013-12-18 16:17:26 -06:00
backend_liveldap.conf Move 'tests' directory into 'keystone' package 2013-08-14 01:30:01 -03:00
backend_multi_ldap_sql.conf Use oslo.db sessions 2013-12-18 16:17:26 -06:00
backend_mysql.conf Use oslo.db sessions 2013-12-18 16:17:26 -06:00
backend_pam.conf Move 'tests' directory into 'keystone' package 2013-08-14 01:30:01 -03:00
backend_postgresql.conf Use oslo.db sessions 2013-12-18 16:17:26 -06:00
backend_rules.conf Allow use of rules Policy driver 2013-11-18 00:33:48 -06:00
backend_sql.conf Use oslo.db sessions 2013-12-18 16:17:26 -06:00
backend_sql_disk.conf Use oslo.db sessions 2013-12-18 16:17:26 -06:00
backend_tls_liveldap.conf Move 'tests' directory into 'keystone' package 2013-08-14 01:30:01 -03:00
core.py Documentation cleanup 2014-01-12 10:56:59 -06:00
default_catalog.templates Move 'tests' directory into 'keystone' package 2013-08-14 01:30:01 -03:00
default_fixtures.py Fix using non-default default_domain_id 2014-01-16 10:01:36 -06:00
deprecated.conf Use oslo.db sessions 2013-12-18 16:17:26 -06:00
deprecated_override.conf Use oslo.db sessions 2013-12-18 16:17:26 -06:00
fakeldap.py Make common log import consistent 2014-01-11 16:55:59 -08:00
keystone.Default.conf Implement domain specific Identity backends 2013-08-15 23:41:15 +01:00
keystone.domain1.conf Implement domain specific Identity backends 2013-08-15 23:41:15 +01:00
keystone.domain2.conf Implement domain specific Identity backends 2013-08-15 23:41:15 +01:00
legacy_d5.mysql Move 'tests' directory into 'keystone' package 2013-08-14 01:30:01 -03:00
legacy_d5.sqlite Move 'tests' directory into 'keystone' package 2013-08-14 01:30:01 -03:00
legacy_diablo.mysql Move 'tests' directory into 'keystone' package 2013-08-14 01:30:01 -03:00
legacy_diablo.sqlite Move 'tests' directory into 'keystone' package 2013-08-14 01:30:01 -03:00
legacy_essex.mysql Move 'tests' directory into 'keystone' package 2013-08-14 01:30:01 -03:00
legacy_essex.sqlite Move 'tests' directory into 'keystone' package 2013-08-14 01:30:01 -03:00
matchers.py Refactor assertEqualXML into a testtools matcher 2013-12-04 03:25:49 +00:00
rest.py Tests use cleanUp rather than tearDown 2014-01-09 19:38:49 -06:00
test_associate_project_endpoint_extension.conf Detangle v3 RestfulTestCase setup 2013-11-13 19:05:20 +00:00
test_associate_project_endpoint_extension.py Cleanup test_associate_project_endpoint_extension 2014-01-10 12:27:21 -06:00
test_auth.py Fix using non-default default_domain_id 2014-01-16 10:01:36 -06:00
test_auth_plugin.conf Move 'tests' directory into 'keystone' package 2013-08-14 01:30:01 -03:00
test_auth_plugin.py Don't run non-tests 2013-12-05 13:10:11 +00:00
test_backend.py Merge "Documentation cleanup" 2014-01-14 00:30:57 +00:00
test_backend_kvs.py Convert Token KVS backend to new KeyValueStore Impl 2014-01-13 09:53:00 -08:00
test_backend_ldap.py Fix using non-default default_domain_id 2014-01-16 10:01:36 -06:00
test_backend_memcache.py Merge "reduce default token duration to one hour" 2014-01-16 03:48:42 +00:00
test_backend_pam.py Don't run non-tests 2013-12-05 13:10:11 +00:00
test_backend_rules.py Don't run non-tests 2013-12-05 13:10:11 +00:00
test_backend_sql.py Merge "Flush tokens in batches with DB2" 2014-01-13 16:53:13 +00:00
test_backend_templated.py Cleanup tests imports so not relative 2013-09-10 18:55:44 +00:00
test_base64utils.py Utilites for manipulating base64 & PEM 2013-11-19 18:18:42 -05:00
test_cache.py Allow caching to be disabled and tests still pass 2013-12-03 10:45:40 -08:00
test_catalog.py Fix errors for create_endpoint api in version2 2013-12-11 16:24:16 +08:00
test_cert_setup.py Tests use cleanUp rather than tearDown 2014-01-09 19:38:49 -06:00
test_config.py Use oslo.db sessions 2013-12-18 16:17:26 -06:00
test_content_types.py Merge "Return an error when a non-existing tenant is added to a user" 2013-11-22 19:34:22 +00:00
test_contrib_s3_core.py Cleanup tests imports so not relative 2013-09-10 18:55:44 +00:00
test_contrib_stats_core.py Tests use "from keystone import tests" 2013-09-09 20:46:50 -07:00
test_exception.py Try decoding string to UTF-8 on error message fail 2013-11-25 11:09:24 +10:00
test_injection.py Tests use cleanUp rather than tearDown 2014-01-09 19:38:49 -06:00
test_ipv6.py Rewrites the serveapp method into a fixture 2013-11-19 02:27:42 +00:00
test_keystoneclient.py Cleanup from business logic refactor 2014-01-07 13:35:22 -08:00
test_keystoneclient_sql.py Move deletion business logic out of controllers 2014-01-03 13:46:32 -08:00
test_kvs.py Base Implementation of KVS Dogpile Refactor 2013-12-11 17:43:53 -08:00
test_matchers.py Refactor assertEqualXML into a testtools matcher 2013-12-04 03:25:49 +00:00
test_middleware.py Fix misused assertTrue in unit tests 2013-09-16 20:45:15 -07:00
test_no_admin_token_auth.py Tests use cleanUp rather than tearDown 2014-01-09 19:38:49 -06:00
test_notifications.py Uses fixtures for mox and stubs 2013-10-31 15:33:05 +00:00
test_overrides.conf Base Implementation of KVS Dogpile Refactor 2013-12-11 17:43:53 -08:00
test_pemutils.py Replace xrange in for loop with range 2013-12-17 09:03:04 +08:00
test_pki_token_provider.conf Move 'tests' directory into 'keystone' package 2013-08-14 01:30:01 -03:00
test_policy.py Tests use cleanUp rather than tearDown 2014-01-09 19:38:49 -06:00
test_s3_token_middleware.py assertEquals is deprecated, use assertEqual (H602) 2013-09-27 16:54:03 +02:00
test_serializer.py Refactor assertEqualXML into a testtools matcher 2013-12-04 03:25:49 +00:00
test_singular_plural.py Migrating ec2 credentials to credential. 2013-08-22 10:19:31 -07:00
test_sizelimit.py Cleanup tests imports so not relative 2013-09-10 18:55:44 +00:00
test_sql_migrate_extensions.py Documentation cleanup 2014-01-12 10:56:59 -06:00
test_sql_upgrade.py Merge "Remove unused token.valid index" 2014-01-07 23:50:53 +00:00
test_ssl.py Don't run non-tests 2013-12-05 13:10:11 +00:00
test_token_bind.py Add WSGI environment to context 2013-11-12 10:21:39 -05:00
test_token_provider.py reduce default token duration to one hour 2014-01-14 15:25:19 -06:00
test_url_middleware.py Cleanup tests imports so not relative 2013-09-10 18:55:44 +00:00
test_utils.py Merge "Uses oslo's deprecated decorator; removes ours" 2013-12-17 05:31:01 +00:00
test_uuid_token_provider.conf Move 'tests' directory into 'keystone' package 2013-08-14 01:30:01 -03:00
test_v3.py Merge "Fix external auth (REMOTE_USER) plugin support" 2014-01-12 00:39:06 +00:00
test_v3_auth.py Fix using non-default default_domain_id 2014-01-16 10:01:36 -06:00
test_v3_catalog.py Cleanup tests imports so not relative 2013-09-10 18:55:44 +00:00
test_v3_credential.py Cleanup of new credential_api delete methods 2014-01-03 11:32:33 -08:00
test_v3_identity.py Enhance tests for non-default default_domain_id 2014-01-16 09:39:05 -06:00
test_v3_oauth1.py Formalize deprecation of token_api.list_tokens 2013-12-04 17:13:35 -08:00
test_v3_policy.py Cleanup tests imports so not relative 2013-09-10 18:55:44 +00:00
test_v3_protection.py Documentation cleanup 2014-01-12 10:56:59 -06:00
test_versions.py Refactor assertEqualXML into a testtools matcher 2013-12-04 03:25:49 +00:00
test_wsgi.py Tests use cleanUp rather than tearDown 2014-01-09 19:38:49 -06:00