List provider states #438
Replies: 2 comments 4 replies
-
Want. I get this request frequently in calls with customers/prospects. A view of this in the Pactflow UI would also be really nice. Related to this, perhaps more difficult, would be the ability to see the current "interface" expected by the provider team. i.e. the union of all contracts. |
Beta Was this translation helpful? Give feedback.
-
I'm also interested in this feature. We'd like consumers to be able to self-serve test creation. At present there isn't a way for them to know which states are supported by the provider, or what values are returned in the provider-state callback. I was hoping the broker would keep a copy of the registered states, perhaps on publish of a new provider version. This would allow consumers to query what's already available, as well as know what values to pull into their requests via |
Beta Was this translation helpful? Give feedback.
-
Re-using existing provider states can allow a new interaction to be successfully verified without having to make a change to the provider code. It is currently not easy to get a list of all the provider states for a particular provider. A new endpoint/CLI command would make it easy to discover and reuse provider states.
Potential usage:
Beta Was this translation helpful? Give feedback.
All reactions