Nathan
07/19/2024, 9:20 PM┌─────────────────────────────────┐ ┌──────────────────────────┐
│Service A │ │Service B │
│ ┌──────────┐ ┌──────────┐ │ │ ┌───────────┐ │
│ │ServiceB │ │ServiceB │ │ │ │REST API │ │
│ │Manager │►│Client ├─┼───┤►│ │ │
│ │ │ │ │ │ │ │Team B │ │
│ │Team A │ │Team B │ │ │ └───────────┘ │
│ └──────────┘ └──────────┘ │ │ │
│Team A │ │Team B │
└─────────────────────────────────┘ └──────────────────────────┘
The Pact philosophy suggests that the Pact consumer tests should be on ServiceBClient. However, that is maintained by Team B which violates the principle that Pact is about the contract between the consumer and the producer.
However, writing the Pact tests against ServiceBManager violates the principle that each consumer test should test a single call.
Thoughts on the correct course of action here?James P
07/21/2024, 4:22 PMMatt (pactflow.io / pact-js / pact-go)
Nathan
07/22/2024, 2:43 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)