In the past I've asked about
managing pacts and tests execution for applications with a vast number of APIs (running a very large monolithic application with 1000+ APIs) but didn't really get an answer to how I can run multiple sets of tests for the same provider in parallel
Since I'm using Java + Spring + Maven I was thinking of running multiple dedicated test of my provider and "namespace" them differently:
• "MyProvider-A" - to test subset A of the APIs the provider offers
• "MyProvider-B" - to test subset B of the APIs the provider offers
• etc,
this is not ideal though because it means that the consumers will need to know under which name the provider manages (subsets) the APIs - essentially treating it as a different provider so I'm looking for a better way to do this
I was thinking that maybe I could download the pacts from Pact Broker myself and split them myself as I see fit + use the
@Folder
for different test instances to pick up different parts of the verifications but from what I can tell the communication with Pact Broker is all done within the Pact Provider tooling
I looked at the
pact broker client but I can only see a list-latest-pact-versions function there without the ability to obtain the actual pacts
is there an easy way to obtain all pacts for a specific provider?