protean icon indicating copy to clipboard operation
protean copied to clipboard

add configurable behaviour for out of the box sim on success and error responses

Open rossajmcd opened this issue 8 years ago • 5 comments

currently we randomly select a success response

it would be useful if we could configure a more reproducible behaviour e.g. selecting the first success response defined in the codex

this could perhaps be configured from defaults.edn

rossajmcd avatar Apr 12 '17 12:04 rossajmcd

I think the behaviour should be configured through sim implementation. Though a more reproducible behaviour should probably be the default.

colin-lamed avatar Apr 12 '17 12:04 colin-lamed

in this case I'm thinking of the instances where we have no sim implementation, so out of the box I'm not sure where we have apart from defaults to configure for out of the box behaviour (but then I'm rusty)

rossajmcd avatar Apr 12 '17 13:04 rossajmcd

I think so far we only use defaults for codex definitions, not sim behaviour.

My preference would be to encourage sim implementations when out-of-the-box behaviour is not enough (meaning we should provide an extensive sim-lib to support this) - rather than supporting this both sims and in codex defaults.

colin-lamed avatar Apr 12 '17 13:04 colin-lamed

I think I understand you now, a minimal sim implementation (which perhaps in this case is only a piece of config governing behaviour around success response). If we did some work on the simlib etc and enabled this kind of solution I think that would work, and agree it would be preferable to tinkering with defaults.

I would definitely prefer if we could keep that sim implementation to be a delta diff over the out of the box setup (just a very small config piece at its simplest). Keen not to have to put much work in at all to make tiny changes to out of the box behaviour.

wdyt ?

rossajmcd avatar Apr 12 '17 13:04 rossajmcd

Sounds good!

colin-lamed avatar Apr 12 '17 13:04 colin-lamed