Hello All :wave: I am still exploring Pact and I j...
# general
p
Hello All 👋 I am still exploring Pact and I just wanted to share this little demo of "How to use the
--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 🤩
🤩 4
❤️ 1
y
This is excellent Patrice, thanks for sharing back with us all.