Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflow test command #1

Open
jkeifer opened this issue Nov 10, 2022 · 0 comments
Open

Workflow test command #1

jkeifer opened this issue Nov 10, 2022 · 0 comments

Comments

@jkeifer
Copy link
Member

jkeifer commented Nov 10, 2022

Should be able to build this with the currently implemented primitives, needs to do roughly the following given an input template file, an output template file, and timeout:

  • template input
  • get ID from input payload
  • process templated input
  • poll payload state using ID (for up to timeout)
  • Once in a non-PROCESSING state get the execution output
  • if success, template output and compare to expected

Ideally this would be implemented on the Deployment class using something like async so multiple tests can run in parallel within the same process. The cli would support only one at a time.

The templating portions and output comparison should probably be composed in the cli function. That is, the main workflow runner method should take only a templated input payload. It should return a workflow Response object (this is a new thing) that hold state such as the final state, the output payload, and other useful things (tbd). Then it can be left up to the user how to compare when using this programatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant