Hi, Did anyone approach Pact+DAPR pub/sub contract...
# general
m
Hi, Did anyone approach Pact+DAPR pub/sub contract testing? Everything in this setup is twisted and I am confused how to approach it in the best way. The consumer is invoked through REST API by DAPR sidecar, while producer is invoking REST API of Dapr sidecar. Anyone can share experience?
m
hmm it sounds like the pattern is pub/sub, but implementation is REST. If it’s REST, can it not be tested in the usual way? If the REST bit is simply implementation detail (e.g. hidden away by infrastructure), the bit you care about is the message that is sent and received, in which case, the usual “message pact” advice applies
see some examples here 👇 (howtoexamples)
s