List provider states for a provider
closed
Beth
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.
Yousaf Nabi
closed
Tracking via linked GitHub issue - https://github.com/pact-foundation/roadmap/issues/57
Matt Fellows
See also this conversation in Slack: https://pact-foundation.slack.com/archives/C5F4KFKR8/p1643294644093300
The gist of it is, it would be helpful for consumers to be able to see the provider states when authoring tests, to reduce the coordination that needs to go on when authoring them.
In an extreme version of this view, it could be that the provider advertises all of its available states, and the consumer contract could be validated prior to publishing that the states don't exist and the contract is invalid. I can see further possibilities of local code / IDE support to help this situation.