Simon
08/17/2023, 4:57 PM@Consumer only allows one consumer per test class.
I see that @PactBroker annotation has the consumerVersionSelectors field, but that is apparently deprecated. The @PactBrokerConsumerVersionSelectors method with SelectorBuilder doesn't appear to have any way to select multiple consumer names.
Is there a better approach?Yousaf Nabi (pactflow.io)
rawSelectorJson(json: String)
and pass the consumer name selectors
https://docs.pact.io/pact_broker/advanced_topics/consumer_version_selectors#advanced
it takes an array of selectors, so you can provide scope your selector with the consumer nameYousaf Nabi (pactflow.io)
Simon
08/17/2023, 5:13 PMYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Simon
08/17/2023, 5:17 PMYousaf Nabi (pactflow.io)
Simon
08/17/2023, 5:18 PMuglyog
Simon
08/17/2023, 11:25 PMProviderATest (consumed by consumer-a ) and ProviderBTest (consumed by consumer-b) in the same monolithic project, each with their own states since they're pretty disjoint features. Pact was then complaining that ProviderATest didn't have the states that ProviderBTest verified and vice versaSimon
08/17/2023, 11:26 PMYousaf Nabi (pactflow.io)
Phillip Lo
08/18/2023, 4:34 PM@Provider(Monolith) annotationSimon
08/18/2023, 4:38 PMYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Phillip Lo
08/18/2023, 5:08 PMthe only pain point i see if when you want to deploy the mono but one of the services inside isn't compat.Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Phillip Lo
08/18/2023, 5:16 PMPhillip Lo
08/18/2023, 5:18 PMYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)