mistral.tests.unit.api.v2 package¶
Submodules¶
mistral.tests.unit.api.v2.test_action_executions module¶
-
class
mistral.tests.unit.api.v2.test_action_executions.
TestActionExecutionsController
(*args, **kwds)¶ Bases:
mistral.tests.unit.api.base.APITest
-
setUp
()¶
-
test_basic_get
(*args, **keywargs)¶
-
test_delete
(*args, **keywargs)¶
-
test_delete_action_exeuction_complete_cancelled
(*args, **keywargs)¶
-
test_delete_action_exeuction_complete_error
(*args, **keywargs)¶
-
test_delete_action_exeuction_not_complete
(*args, **keywargs)¶
-
test_delete_action_exeuction_with_task
(*args, **keywargs)¶
-
test_delete_not_allowed
(*args, **keywargs)¶
-
test_delete_not_found
(*args, **keywargs)¶
-
test_get
(*args, **keywargs)¶
-
test_get_all
(*args, **keywargs)¶
-
test_get_all_empty
(*args, **keywargs)¶
-
test_get_not_found
(*args, **keywargs)¶
-
test_post
(*args, **keywargs)¶
-
test_post_bad_input
(*args, **keywargs)¶
-
test_post_bad_json_input
(*args, **keywargs)¶
-
test_post_bad_result
(*args, **keywargs)¶
-
test_post_json
(*args, **keywargs)¶
-
test_post_without_input
(*args, **keywargs)¶
-
test_put
(*args, **keywargs)¶
-
test_put_bad_result
(*args, **keywargs)¶
-
test_put_bad_state
(*args, **keywargs)¶
-
test_put_cancelled
(*args, **keywargs)¶
-
test_put_error_with_output
(*args, **keywargs)¶
-
test_put_error_with_unknown_reason
(*args, **keywargs)¶
-
test_put_error_with_unknown_reason_output_none
(*args, **keywargs)¶
-
test_put_no_action_ex
(*args, **keywargs)¶
-
test_put_without_result
(*args, **keywargs)¶
-
mistral.tests.unit.api.v2.test_actions module¶
-
class
mistral.tests.unit.api.v2.test_actions.
TestActionsController
(*args, **kwds)¶ Bases:
mistral.tests.unit.api.base.APITest
-
test_delete
(*args, **keywargs)¶
-
test_delete_not_found
(*args, **keywargs)¶
-
test_delete_system
(*args, **keywargs)¶
-
test_get
(*args, **keywargs)¶
-
test_get_all
(*args, **keywargs)¶
-
test_get_all_empty
(*args, **keywargs)¶
-
test_get_all_pagination
(*args, **keywargs)¶
-
test_get_all_pagination_invalid_sort_dirs_length
()¶
-
test_get_all_pagination_limit_negative
()¶
-
test_get_all_pagination_limit_not_integer
()¶
-
test_get_all_pagination_unknown_direction
()¶
-
test_get_by_id
(*args, **keywargs)¶
-
test_get_by_id_not_found
(*args, **keywargs)¶
-
test_get_not_found
(*args, **keywargs)¶
-
test_post
(*args, **keywargs)¶
-
test_post_dup
(*args, **keywargs)¶
-
test_post_public
(*args, **keywargs)¶
-
test_post_wrong_scope
(*args, **keywargs)¶
-
test_put
(*args, **keywargs)¶
-
test_put_not_found
(*args, **keywargs)¶
-
test_put_public
(*args, **keywargs)¶
-
test_put_system
(*args, **keywargs)¶
-
test_validate
()¶
-
test_validate_dsl_parse_exception
()¶
-
test_validate_empty
()¶
-
test_validate_invalid_model_exception
()¶
-
test_validate_yaql_parse_exception
()¶
-
mistral.tests.unit.api.v2.test_cron_triggers module¶
-
class
mistral.tests.unit.api.v2.test_cron_triggers.
TestCronTriggerController
(*args, **kwds)¶ Bases:
mistral.tests.unit.api.base.APITest
-
test_delete
(*args, **keywargs)¶
-
test_delete_not_found
(*args, **keywargs)¶
-
test_get
(*args, **keywargs)¶
-
test_get_all
(*args, **keywargs)¶
-
test_get_all_empty
(*args, **keywargs)¶
-
test_get_not_found
(*args, **keywargs)¶
-
test_post
(*args, **keywargs)¶
-
test_post_dup
(*args, **keywargs)¶
-
test_post_same_wf_and_input
(*args, **keywargs)¶
-
mistral.tests.unit.api.v2.test_environment module¶
-
class
mistral.tests.unit.api.v2.test_environment.
TestEnvironmentController
(*args, **kwds)¶ Bases:
mistral.tests.unit.api.base.APITest
-
test_delete
(*args, **keywargs)¶
-
test_delete_not_found
(*args, **keywargs)¶
-
test_get
(*args, **keywargs)¶
-
test_get_all
(*args, **keywargs)¶
-
test_get_all_empty
()¶
-
test_get_not_found
(*args, **keywargs)¶
-
test_post
(*args, **keywargs)¶
-
test_post_default_scope
(*args, **keywargs)¶
-
test_post_dup
(*args, **keywargs)¶
-
test_post_with_illegal_field
(*args, **keywargs)¶
-
test_put
(*args, **keywargs)¶
-
test_put_default_scope
(*args, **keywargs)¶
-
test_put_not_found
(*args, **keywargs)¶
-
test_resource
()¶
-
mistral.tests.unit.api.v2.test_event_trigger module¶
-
class
mistral.tests.unit.api.v2.test_event_trigger.
TestEventTriggerController
(*args, **kwds)¶ Bases:
mistral.tests.unit.api.base.APITest
-
test_delete
(*args, **keywargs)¶
-
test_delete_not_found
(*args, **keywargs)¶
-
test_get
(*args, **keywargs)¶
-
test_get_all
(*args, **keywargs)¶
-
test_get_not_found
(*args, **keywargs)¶
-
test_post
(*args, **keywargs)¶
-
test_post_no_workflow_id
()¶
-
test_post_workflow_not_found
(*args, **keywargs)¶
-
test_put
(*args, **keywargs)¶
-
test_put_field_not_allowed
()¶
-
mistral.tests.unit.api.v2.test_executions module¶
-
class
mistral.tests.unit.api.v2.test_executions.
TestExecutionsController
(*args, **kwds)¶ Bases:
mistral.tests.unit.api.base.APITest
-
test_delete
(*args, **keywargs)¶
-
test_delete_not_found
(*args, **keywargs)¶
-
test_get
(*args, **keywargs)¶
-
test_get_all
(*args, **keywargs)¶
-
test_get_all_empty
(*args, **keywargs)¶
-
test_get_all_executions_with_output
(*args, **keywargs)¶
-
test_get_all_executions_without_output
(*args, **keywargs)¶
-
test_get_all_pagination
(*args, **keywargs)¶
-
test_get_all_pagination_invalid_sort_dirs_length
(*args, **keywargs)¶
-
test_get_all_pagination_limit_negative
(*args, **keywargs)¶
-
test_get_all_pagination_limit_not_integer
(*args, **keywargs)¶
-
test_get_all_pagination_unknown_direction
(*args, **keywargs)¶
-
test_get_not_found
(*args, **keywargs)¶
-
test_get_sub_wf_ex
(*args, **keywargs)¶
-
test_get_task_workflow_executions
(*args, **keywargs)¶
-
test_post
(*args, **keywargs)¶
-
test_post_throws_exception
(*args, **keywargs)¶
-
test_post_without_workflow_id_and_name
(*args, **keywargs)¶
-
test_put_description
(*args, **keywargs)¶
-
test_put_empty
(*args, **keywargs)¶
-
test_put_env
(*args, **keywargs)¶
-
test_put_env_and_description
(*args, **keywargs)¶
-
test_put_env_wrong_state
(*args, **keywargs)¶
-
test_put_invalid_state
(*args, **keywargs)¶
-
test_put_not_found
(*args, **keywargs)¶
-
test_put_state_and_description
(*args, **keywargs)¶
-
test_put_state_cancelled
(*args, **keywargs)¶
-
test_put_state_error
(*args, **keywargs)¶
-
test_put_state_info_unset
(*args, **keywargs)¶
-
test_put_state_paused
(*args, **keywargs)¶
-
test_put_state_resume
(*args, **keywargs)¶
-
mistral.tests.unit.api.v2.test_keycloak_auth module¶
-
class
mistral.tests.unit.api.v2.test_keycloak_auth.
TestKeyCloakOIDCAuth
(*args, **kwds)¶ Bases:
mistral.tests.unit.base.DbTestCase
-
setUp
()¶
-
test_get_workflow_failed_auth
(*args, **kwargs)¶
-
test_get_workflow_success_auth
(*args, **kwargs)¶
-
mistral.tests.unit.api.v2.test_members module¶
-
class
mistral.tests.unit.api.v2.test_members.
TestMembersController
(*args, **kwds)¶ Bases:
mistral.tests.unit.api.base.APITest
-
setUp
()¶
-
test_create_duplicate_membership
(*args, **keywargs)¶
-
test_create_membership_nonexistent_wf
(*args, **keywargs)¶
-
test_create_membership_public_wf
(*args, **keywargs)¶
-
test_create_membership_untransferable
(*args, **keywargs)¶
-
test_create_resource_member
(*args, **keywargs)¶
-
test_delete_membership
(*args, **keywargs)¶
-
test_delete_membership_not_owner
(*args, **keywargs)¶
-
test_get_memberships_nonexistent_wf
(*args, **keywargs)¶
-
test_get_other_membership
(*args, **keywargs)¶
-
test_get_other_memberships
(*args, **keywargs)¶
-
test_get_resource_memberips
(*args, **keywargs)¶
-
test_membership_api_without_auth
()¶
-
test_update_membership
(*args, **keywargs)¶
-
test_update_membership_invalid_status
(*args, **keywargs)¶
-
mistral.tests.unit.api.v2.test_root module¶
-
class
mistral.tests.unit.api.v2.test_root.
TestRootController
(*args, **kwds)¶ Bases:
mistral.tests.unit.api.base.APITest
-
test_index
()¶
-
test_v2_root
()¶
-
-
class
mistral.tests.unit.api.v2.test_root.
TestRootControllerWithAuth
(*args, **kwds)¶ Bases:
mistral.tests.unit.api.test_auth.TestKeystoneMiddleware
-
test_index
()¶
-
test_v2_root
()¶
-
mistral.tests.unit.api.v2.test_services module¶
-
class
mistral.tests.unit.api.v2.test_services.
TestServicesController
(*args, **kwds)¶ Bases:
mistral.tests.unit.api.base.APITest
-
test_get_all
()¶
-
test_get_all_with_get_members_error
(*args, **keywargs)¶
-
test_get_all_without_backend
()¶
-
mistral.tests.unit.api.v2.test_tasks module¶
-
class
mistral.tests.unit.api.v2.test_tasks.
TestTasksController
(*args, **kwds)¶ Bases:
mistral.tests.unit.api.base.APITest
-
test_get
(*args, **keywargs)¶
-
test_get_all
(*args, **keywargs)¶
-
test_get_all_empty
(*args, **keywargs)¶
-
test_get_not_found
(*args, **keywargs)¶
-
test_put
(*args, **keywargs)¶
-
test_put_current_task_in_error
(*args, **keywargs)¶
-
test_put_current_task_not_in_error
(*args, **keywargs)¶
-
test_put_env
(*args, **keywargs)¶
-
test_put_invalid_reset
(*args, **keywargs)¶
-
test_put_invalid_state
(*args, **keywargs)¶
-
test_put_match_task_name
(*args, **keywargs)¶
-
test_put_mismatch_task_name
(*args, **keywargs)¶
-
test_put_mismatch_workflow_name
(*args, **keywargs)¶
-
test_put_missing_reset
(*args, **keywargs)¶
-
test_put_with_items
(*args, **keywargs)¶
-
mistral.tests.unit.api.v2.test_workbooks module¶
-
class
mistral.tests.unit.api.v2.test_workbooks.
TestWorkbooksController
(*args, **kwds)¶ Bases:
mistral.tests.unit.api.base.APITest
-
test_delete
(*args, **keywargs)¶
-
test_delete_not_found
(*args, **keywargs)¶
-
test_get
(*args, **keywargs)¶
-
test_get_all
(*args, **keywargs)¶
-
test_get_all_empty
(*args, **keywargs)¶
-
test_get_not_found
(*args, **keywargs)¶
-
test_post
(*args, **keywargs)¶
-
test_post_dup
(*args, **keywargs)¶
-
test_post_invalid
()¶
-
test_put
(*args, **keywargs)¶
-
test_put_invalid
()¶
-
test_put_not_found
(*args, **keywargs)¶
-
test_validate
()¶
-
test_validate_dsl_parse_exception
()¶
-
test_validate_empty
()¶
-
test_validate_invalid_model_exception
()¶
-
test_validate_yaql_parse_exception
()¶
-
mistral.tests.unit.api.v2.test_workflows module¶
-
class
mistral.tests.unit.api.v2.test_workflows.
TestWorkflowsController
(*args, **kwds)¶ Bases:
mistral.tests.unit.api.base.APITest
-
test_delete
(*args, **keywargs)¶
-
test_delete_not_found
(*args, **keywargs)¶
-
test_delete_system
(*args, **keywargs)¶
-
test_get
(*args, **keywargs)¶
-
test_get_all
(*args, **keywargs)¶
-
test_get_all_empty
(*args, **keywargs)¶
-
test_get_all_pagination
(*args, **keywargs)¶
-
test_get_all_pagination_invalid_sort_dirs_length
()¶
-
test_get_all_pagination_limit_negative
()¶
-
test_get_all_pagination_limit_not_integer
()¶
-
test_get_all_pagination_unknown_direction
()¶
-
test_get_all_projects_admin
(*args, **keywargs)¶
-
test_get_all_projects_normal_user
()¶
-
test_get_all_with_fields_filter
(*args, **keywargs)¶
-
test_get_all_with_invalid_field
()¶
-
test_get_not_found
(*args, **keywargs)¶
-
test_get_with_input
(*args, **keywargs)¶
-
test_post
(*args, **keywargs)¶
-
test_post_dup
(*args, **keywargs)¶
-
test_post_invalid
()¶
-
test_post_public
(*args, **keywargs)¶
-
test_post_wrong_scope
(*args, **keywargs)¶
-
test_put
(*args, **keywargs)¶
-
test_put_invalid
()¶
-
test_put_more_workflows_with_uuid
()¶
-
test_put_not_found
(*args, **keywargs)¶
-
test_put_public
(*args, **keywargs)¶
-
test_put_system
(*args, **keywargs)¶
-
test_put_with_input
(*args, **keywargs)¶
-
test_put_with_uuid
(*args, **keywargs)¶
-
test_validate
()¶
-
test_validate_dsl_parse_exception
()¶
-
test_validate_empty
()¶
-
test_validate_invalid_model_exception
()¶
-
test_validate_yaql_parse_exception
()¶
-