-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
it would be nice to be able to choose a sample input message and to test out a single step in an existing flow. Eventually we could package this up as a REST API we can use from consoles but starting with a CLI would be great.
e.g. something like:
$ funktion test-step myflow 3 -f sampleMessage.json -oyaml
testing myflow step setHeader:foo=bar
output:
foo: 1234
Under the covers we'd need to create a new temporary flow for something like:
funktion create flow mytmp http://localhost setHeader:foo=bar
i.e. pull out the step to be tested and add a http endpoint in front. Then the funktion test-step
would wait for a pod to start, when its up, POST the sampleMessage.json
to the pod's HTTP port and output/save the results (then removing the flow). We could use a temporary namespace for these 'tests' to avoid it confusing end users too?
Metadata
Metadata
Assignees
Labels
No labels