pact-foundation / roadmap

Developer Relations @ Pact - Your map to the Pact landscape for all-comers (maintainers, contributors, users, newbies)
https://pact.io/
MIT License
39 stars 6 forks source link

Allow the interaction for a particular provider state to be selected where multiple responses are found #33

Open canny[bot] opened 6 days ago

canny[bot] commented 6 days ago

If a pact has "a request for an order" given "an order exists" and, "a request for an order", given "an order does not exist", the first successful response will always be returned, meaning that you can't use the stub server to test error flows. The stub server could provide an endpoint to allow the response to the next request to be pre-selected by the provider state name.

https://pact.canny.io/admin/board/feature-requests/p/allow-the-interaction-for-a-particular-provider-state-to-be-selected-where-multi

canny[bot] commented 6 days ago

This issue has been linked to a Canny post: Allow the interaction for a particular provider state to be selected where multiple responses are found :tada: