cr-connect-workflow/tests/workflow
Dan 576aebab19 Sometimes a workflow can be completely broken and unloadable. For instance, it starts off with a engine step / script task that will not execute. So the failure happens the second it is processed. When calling reset on a workflow, we should catch the failure, and reset the workflow, so we aren't trapped in an unrecoverable state.
To do so, I changed the WorkflowProcessor's reset method to be static, it will try to instantiate the current workflow and execute a cancel_notify event, but if that fails, it will continue and always return a new workflow processor using the latest spec.
2021-03-09 11:52:55 -05:00
..
__init__.py Some minor cleanup on the study status and automatic events. I wanted to avoid having one database model automatically generating other database models as a side effect. The study service now has full responsiblity to recording study events. 2020-08-17 14:56:00 -04:00
test_duplicate_workflow_spec_file.py Users cannot upload a workflow_spec_file that already exists. We raise an error that is displayed on the fron end. 2021-01-04 15:47:45 -05:00
test_workflow_boolean_default.py Test and workflow for new code. 2021-02-03 09:50:37 -05:00
test_workflow_customer_error.py Customer Error is in a place that we can try it out on testing. 2021-03-01 16:41:55 -05:00
test_workflow_enum_default_value_expression.py Test and data for cleaning up my smell. We now test explicitly whether a task has both a default_value and value_expression. If so, we raise an error. 2021-01-27 10:22:43 -05:00
test_workflow_enum_empty_list.py Test, workflow, and empty spreadsheet for the new code. The workflow references the spreadsheet, which has no rows. 2021-02-08 15:12:11 -05:00
test_workflow_form_field_name.py Merge branch 'dev' into customer-error-messages-192. 2021-03-01 10:29:10 -05:00
test_workflow_form_field_type.py Fixed 3 tests to reflect a change in crc.api.workflow.validate_workflow_specification. 2021-02-19 15:55:40 -05:00
test_workflow_hidden_required_field.py We now include field.id in the ApiError message for hidden and default validation. (The field must have a default value or value expression) 2021-03-04 10:42:13 -05:00
test_workflow_missing_form_key.py Test and workflow file for missing form key. Ticket 163 2021-01-22 12:14:59 -05:00
test_workflow_processor.py Sometimes a workflow can be completely broken and unloadable. For instance, it starts off with a engine step / script task that will not execute. So the failure happens the second it is processed. When calling reset on a workflow, we should catch the failure, and reset the workflow, so we aren't trapped in an unrecoverable state. 2021-03-09 11:52:55 -05:00
test_workflow_processor_multi_instance.py fixing some failing tests related to changes in the underlying spiffworkflow library. 2020-12-14 11:27:38 -05:00
test_workflow_restart.py Added tests to test_workflow_restart to make sure we call cancel_notify events when appropriate. 2021-01-29 14:48:35 -05:00
test_workflow_service.py Validating that field properties are valid - they must exist as constants on the Task model. 2020-08-27 14:00:14 -04:00
test_workflow_spec_api.py Modified test to check for display_order within workflow category. 2021-01-27 11:08:28 -05:00
test_workflow_spec_validation_api.py Fixed 3 tests to reflect a change in crc.api.workflow.validate_workflow_specification. 2021-02-19 15:55:40 -05:00
test_workflow_value_expression.py Fixing a bug that prevented proper evaluation of a enum field where the default value was null or empty. 2021-03-08 14:00:03 -05:00