Hey folks, I'm working with a new client here, hel...
# general
b
Hey folks, I'm working with a new client here, helping them on their contract testing journey. They have an event-driven system where the provider has many different states and fairly complex business logic. They're looking for example repositories they could learn from, but the examples that they have found only have providers that are more or less stateless. Can anybody point me (and by proxy, them) to an example with more complex providers?
m
Hmm we do lack bigger more complicated public examples.
If I understand your needs, you need a complex example for message pact?
There is this: https://github.com/pact-foundation/pact-workshop-message Which is quite new and possibly helpful, although not explicitly what you're after
b
Thanks, I’ll have a look at that tomorrow. A lot of this stuff is pretty new to me still and I’m working solely based off their questions and documentation at the moment (which will change) but who knows this might be helpful!
y
It’s noted that in the verifier cli https://github.com/pact-foundation/pact-reference/tree/master/rust/pact_verifier_cli#state-change-requests
NOTE: For verifying messages fetched via HTTP, the provider state is also passed in the request to fetch the message, so the state change URL is not required.
But I don’t believe there are many examples of message tests, which also demonstrate a provider state, influencing what the provider does. It should be able to support setup/teardown hooks. I’ve added an issue to track adding provider states to the workshop
m
@Bas Dijkstra u’ve seen this right?
b
Hey @Murat Ozcan, I haven't (I'm not really active on LinkedIn these days). Thanks for sharing this. At first glance it's not really what I'm looking for, though, but I'll have a better look when I've got more time. Again, thanks 🙂