mistral.tests.unit.db.v2 package

Submodules

mistral.tests.unit.db.v2.test_insert_or_ignore module

class mistral.tests.unit.db.v2.test_insert_or_ignore.InsertOrIgnoreTest(*args, **kwds)

Bases: mistral.tests.unit.base.DbTestCase

setUp()
test_insert_or_ignore_with_conflicts()
test_insert_or_ignore_without_conflicts()

mistral.tests.unit.db.v2.test_locking module

class mistral.tests.unit.db.v2.test_locking.SQLiteLocksTest(*args, **kwds)

Bases: mistral.tests.unit.base.DbTestCase

setUp()
test_acquire_release_sqlite_lock()
test_correct_locking()

mistral.tests.unit.db.v2.test_sqlalchemy_db_api module

class mistral.tests.unit.db.v2.test_sqlalchemy_db_api.ActionDefinitionTest(*args, **kwds)

Bases: mistral.tests.unit.db.v2.test_sqlalchemy_db_api.SQLAlchemyTest

setUp()
test_action_definition_repr()
test_create_action_definition_duplicate_without_auth()
test_create_and_get_and_load_action_definition()
test_create_or_update_action_definition()
test_delete_action_definition_with_name()
test_delete_action_definition_with_uuid()
test_filter_action_definitions_by_equal_value()
test_filter_action_definitions_by_greater_than_equal_value()
test_filter_action_definitions_by_greater_than_value()
test_filter_action_definitions_by_less_than_equal_value()
test_filter_action_definitions_by_less_than_value()
test_filter_action_definitions_by_multiple_columns()
test_filter_action_definitions_by_not_equal_value()
test_filter_action_definitions_by_values_in_list()
test_filter_action_definitions_by_values_notin_list()
test_get_action_definition_with_uuid()
test_get_action_definitions()
test_update_action_definition_with_name()
test_update_action_definition_with_uuid()
class mistral.tests.unit.db.v2.test_sqlalchemy_db_api.ActionExecutionTest(*args, **kwds)

Bases: mistral.tests.unit.db.v2.test_sqlalchemy_db_api.SQLAlchemyTest

test_action_execution_repr()
test_create_and_get_and_load_action_execution()
test_create_or_update_action_execution()
test_delete_action_execution()
test_delete_other_tenant_action_execution()
test_get_action_executions()
test_trim_status_info()
test_update_action_execution()
class mistral.tests.unit.db.v2.test_sqlalchemy_db_api.CronTriggerTest(*args, **kwds)

Bases: mistral.tests.unit.db.v2.test_sqlalchemy_db_api.SQLAlchemyTest

setUp()
test_create_and_get_and_load_cron_trigger()
test_create_cron_trigger_duplicate_without_auth()
test_create_or_update_cron_trigger()
test_cron_trigger_repr()
test_delete_cron_trigger()
test_get_cron_triggers()
test_get_cron_triggers_other_tenant()
test_update_cron_trigger()
class mistral.tests.unit.db.v2.test_sqlalchemy_db_api.EnvironmentTest(*args, **kwds)

Bases: mistral.tests.unit.db.v2.test_sqlalchemy_db_api.SQLAlchemyTest

setUp()
test_create_and_get_and_load_environment()
test_create_environment_duplicate_without_auth()
test_create_or_update_environment()
test_delete_environment()
test_environment_repr()
test_get_environments()
test_update_environment()
class mistral.tests.unit.db.v2.test_sqlalchemy_db_api.EventTriggerTest(*args, **kwds)

Bases: mistral.tests.unit.db.v2.test_sqlalchemy_db_api.SQLAlchemyTest

setUp()
test_create_and_get_event_trigger()
test_delete_event_triggers()
test_get_event_triggers_insecure()
test_get_event_triggers_not_insecure()
test_update_event_trigger()
class mistral.tests.unit.db.v2.test_sqlalchemy_db_api.LockTest(*args, **kwds)

Bases: mistral.tests.unit.db.v2.test_sqlalchemy_db_api.SQLAlchemyTest

test_create_lock()
test_with_named_lock()
class mistral.tests.unit.db.v2.test_sqlalchemy_db_api.ResourceMemberTest(*args, **kwds)

Bases: mistral.tests.unit.db.v2.test_sqlalchemy_db_api.SQLAlchemyTest

test_create_and_get_resource_member()
test_create_resource_member_duplicate()
test_delete_nonexistent_resource_member()
test_delete_resource_member()
test_delete_resource_member_already_deleted()
test_delete_resource_member_not_owner()
test_get_resource_members_by_owner()
test_get_resource_members_not_owner()
test_update_resource_member_by_member()
test_update_resource_member_by_owner()
class mistral.tests.unit.db.v2.test_sqlalchemy_db_api.SQLAlchemyTest(*args, **kwds)

Bases: mistral.tests.unit.base.DbTestCase

setUp()
class mistral.tests.unit.db.v2.test_sqlalchemy_db_api.TXTest(*args, **kwds)

Bases: mistral.tests.unit.db.v2.test_sqlalchemy_db_api.SQLAlchemyTest

test_commit()
test_commit_multiple_objects()
test_commit_transaction()
test_rollback()
test_rollback_multiple_objects()
test_rollback_transaction()
class mistral.tests.unit.db.v2.test_sqlalchemy_db_api.TaskExecutionTest(*args, **kwds)

Bases: mistral.tests.unit.db.v2.test_sqlalchemy_db_api.SQLAlchemyTest

test_action_executions()
test_create_and_get_and_load_task_execution()
test_create_or_update_task_execution()
test_delete_task_execution()
test_get_incomplete_task_executions()
test_get_task_executions()
test_task_execution_repr()
test_update_task_execution()
class mistral.tests.unit.db.v2.test_sqlalchemy_db_api.WorkbookTest(*args, **kwds)

Bases: mistral.tests.unit.db.v2.test_sqlalchemy_db_api.SQLAlchemyTest

test_create_and_get_and_load_workbook()
test_create_or_update_workbook()
test_create_workbook_duplicate_without_auth()
test_delete_workbook()
test_filter_workbooks_by_equal_value()
test_filter_workbooks_by_greater_than_equal_value()
test_filter_workbooks_by_greater_than_value()
test_filter_workbooks_by_less_than_equal_value()
test_filter_workbooks_by_less_than_value()
test_filter_workbooks_by_multiple_columns()
test_filter_workbooks_by_not_equal_value()
test_filter_workbooks_by_values_in_list()
test_filter_workbooks_by_values_notin_list()
test_get_workbooks()
test_update_workbook()
test_workbook_private()
test_workbook_public()
test_workbook_repr()
test_workbooks_in_two_projects()
class mistral.tests.unit.db.v2.test_sqlalchemy_db_api.WorkflowDefinitionTest(*args, **kwds)

Bases: mistral.tests.unit.db.v2.test_sqlalchemy_db_api.SQLAlchemyTest

test_create_and_get_and_load_workflow_definition()
test_create_or_update_workflow_definition()
test_create_workflow_definition_duplicate_without_auth()
test_delete_other_project_workflow_definition()
test_delete_workflow_definition()
test_delete_workflow_definition_has_event_trigger()
test_filter_workflow_definition_by_greater_than_equal_value()
test_filter_workflow_definition_by_greater_than_value()
test_filter_workflow_definition_by_less_than_equal_value()
test_filter_workflow_definition_by_less_than_value()
test_filter_workflow_definition_by_multiple_columns()
test_filter_workflow_definition_by_not_equal_valiue()
test_filter_workflow_definition_by_values_in_list()
test_filter_workflow_definition_by_values_notin_list()
test_filter_workflow_definitions_by_equal_value()
test_get_workflow_definition_with_uuid()
test_get_workflow_definitions()
test_update_other_project_workflow_definition()
test_update_wf_scope_cron_trigger_associated_in_diff_tenant()
test_update_wf_scope_cron_trigger_associated_in_same_tenant()
test_update_wf_scope_event_trigger_associated_in_diff_tenant()
test_update_wf_scope_event_trigger_associated_in_same_tenant()
test_update_workflow_definition()
test_workflow_definition_private()
test_workflow_definition_public()
test_workflow_definition_repr()
class mistral.tests.unit.db.v2.test_sqlalchemy_db_api.WorkflowExecutionTest(*args, **kwds)

Bases: mistral.tests.unit.db.v2.test_sqlalchemy_db_api.SQLAlchemyTest

test_create_and_get_and_load_workflow_execution()
test_create_or_update_workflow_execution()
test_delete_workflow_execution()
test_get_workflow_executions()
test_task_executions()
test_trim_status_info()
test_update_workflow_execution()
test_workflow_execution_repr()
class mistral.tests.unit.db.v2.test_sqlalchemy_db_api.WorkflowSharingTest(*args, **kwds)

Bases: mistral.tests.unit.db.v2.test_sqlalchemy_db_api.SQLAlchemyTest

test_get_shared_workflow()
test_owner_delete_shared_workflow()
test_owner_delete_shared_workflow_has_crontrigger()

mistral.tests.unit.db.v2.test_sqlite_transactions module

class mistral.tests.unit.db.v2.test_sqlite_transactions.SQLiteTransactionsTest(*args, **kwds)

Bases: mistral.tests.unit.base.DbTestCase

The purpose of this test is to research transactions of SQLite.

setUp()
test_dirty_reads()

Module contents