keystone.tests.unit.common package¶
Submodules¶
keystone.tests.unit.common.test_authorization module¶
keystone.tests.unit.common.test_cache module¶
-
class
keystone.tests.unit.common.test_cache.
TestCacheRegion
(*args, **kwargs)[source]¶ Bases:
keystone.tests.unit.core.BaseTestCase
-
test_direct_region_key_invalidation
()[source]¶ Invalidate by manually clearing the region key’s value.
NOTE(dstanek): I normally don’t like tests that repeat application logic, but in this case we need to. There are too many ways that the tests above can erroneosly pass that we need this sanity check.
-
keystone.tests.unit.common.test_database_conflicts module¶
keystone.tests.unit.common.test_injection module¶
keystone.tests.unit.common.test_json_home module¶
keystone.tests.unit.common.test_notifications module¶
-
exception
keystone.tests.unit.common.test_notifications.
ArbitraryException
[source]¶ Bases:
exceptions.Exception
-
class
keystone.tests.unit.common.test_notifications.
AuditNotificationsTestCase
(*args, **kwargs)[source]¶
-
class
keystone.tests.unit.common.test_notifications.
CADFNotificationsDataTestCase
(*args, **kwargs)[source]¶
-
class
keystone.tests.unit.common.test_notifications.
CADFNotificationsForEntities
(*args, **kwargs)[source]¶ Bases:
keystone.tests.unit.common.test_notifications.NotificationsForEntities
-
class
keystone.tests.unit.common.test_notifications.
CADFNotificationsForPCIDSSEvents
(*args, **kwargs)[source]¶ Bases:
keystone.tests.unit.common.test_notifications.BaseNotificationTest
-
class
keystone.tests.unit.common.test_notifications.
CadfNotificationsWrapperTestCase
(*args, **kwargs)[source]¶ Bases:
keystone.tests.unit.test_v3.RestfulTestCase
-
ACTION
= 'authenticate'¶
-
LOCAL_HOST
= 'localhost'¶
-
ROLE_ASSIGNMENT
= 'role_assignment'¶
-
-
class
keystone.tests.unit.common.test_notifications.
NotificationsForEntities
(*args, **kwargs)[source]¶ Bases:
keystone.tests.unit.common.test_notifications.BaseNotificationTest
-
class
keystone.tests.unit.common.test_notifications.
NotificationsTestCase
(*args, **kwargs)[source]¶ Bases:
keystone.tests.unit.core.BaseTestCase
-
test_opt_out_authenticate_event
()[source]¶ Test that authenticate events are successfully opted out.
-
test_send_audit_notification_with_opt_out
()[source]¶ Test the private method _send_audit_notification with opt-out.
Test that _send_audit_notification does not notify when a valid notification_opt_out configuration is provided.
-
-
class
keystone.tests.unit.common.test_notifications.
TestCallbackRegistration
(*args, **kwargs)[source]¶
-
class
keystone.tests.unit.common.test_notifications.
V2Notifications
(*args, **kwargs)[source]¶ Bases:
keystone.tests.unit.common.test_notifications.BaseNotificationTest
keystone.tests.unit.common.test_resource_options_common module¶
keystone.tests.unit.common.test_sql_core module¶
-
class
keystone.tests.unit.common.test_sql_core.
TestModel
(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base
,keystone.common.sql.core.ModelDictMixin
-
id
¶
-
text
¶
-
keystone.tests.unit.common.test_utils module¶
-
class
keystone.tests.unit.common.test_utils.
UtilsTestCase
(*args, **kwargs)[source]¶ Bases:
keystone.tests.unit.core.BaseTestCase
-
OPTIONAL
= <object object>¶
-