Integration testing flows
Marvin Addison
marvin.addison at gmail.com
Tue Jun 30 08:59:11 EDT 2015
>
> So how do you guys test your flows?
I'm actively working on some custom post-authentication flows and the
approach I've taken is to model after idp-conf. The AbstractFlowTest class
allows you to do much of what the Spring-provided
AbstractXmlFlowExecutionTests can do. The aspect I have found most helpful
is that idp-conf supports loading resources from the classpath for testing
and loading from the filesystem under %{idp.home} at runtime, so one layout
works for both contexts.
> Do you
> have support classes to bootstrap a minimal SWF test context, assert
> states are reached, set starting state, trigger events, etc.?
>
AbstractFlowTest can do everything above exception manually setting a
starting state; for that you'll have to extend along the lines of the
Spring-provided class. I did a little bit of that for my needs and it
wasn't too difficult.
M
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/dev/attachments/20150630/c9d59f79/attachment-0001.html>
More information about the dev
mailing list