Patrice Krakow
02/23/2022, 5:25 PM--provider-state-header-name
option of the pact-stub-server
in order to select one specific provider state in case multiple matching interactions are found" | https://github.com/patricekrakow/play-with-pact/blob/main/misc/select-provider-state.md
Sometimes, as a consumer, you want the API to return a different response for the exact same API request depending on the provider state. By default, when the pact-stub-server
received a request for which there are multiple matching interactions, it will just select the first one. However, you can specify the provider state you want via a custom HTTP header, I love it 🤩Yousaf Nabi (pactflow.io)