Hello, if my provider has 2 endpoints (/products a...
# general
t
Hello, if my provider has 2 endpoints (/products and /statistic) and i have 2 consumers 1/*online-store* that uses the /products end point, 2/*analytic-service* that uses /statistic end point can both consumer pact tests have the same provider name? Would the pact files generated by the consumer tests get combined when uploaded to pact broker or one will replace the other?
m
Yea you should use the same provider name. The pacts aren't combined as we need to track each consumer and provider separately, but this is how it's supposed to work
1
t
thank you for confirming
👍 1
t
We should make a documentation page that explains this. It's kiiind of inferred on the versioning in the pact broker page here https://docs.pact.io/getting_started/versioning_in_the_pact_broker , but it would be good to have a diagram that just talks about consumer / provider names and their relationship to pact
👌 1
👍 1