Tools for Unit Testing Workflows

Registered by Ryan Brady on 2016-06-28

1) As a developer, I want to write a unit test for a workflow and execute on my local machine or in CI using tox.

- I think this can be accomplished by creating a tool that uses Mistral workflow execution machinery to call workflow and taking care of data transformations, fulfilling security and execution context etc (whatever the minimum that is needed).

- The actions listed in the workflow should already have unit tests associated with them and so they can be mocked in this workflow execution context.

- The developer will then be able to run this tool within their local tox env during development

2) As a developer, I want to validate a workflow on my local machine or in CI using tox without having a running instance of Mistral.

- Currently for Python development in OpenStack, we have a pep8 env in tox that allows us to validate our code locally. The workflow validation tool would provide a similar experience for workflows.

Blueprint information

Status:
Not started
Approver:
Renat Akhmerov
Priority:
Undefined
Drafter:
Ryan Brady
Direction:
Needs approval
Assignee:
None
Definition:
Discussion
Series goal:
None
Implementation:
Not started
Milestone target:
None

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.