In script/data/reproduce-issue.rb you will find an example fluent API script that allows you to simulate client libraries interacting with the Pact Broker.
You can use it to easily reproduce issues. You will need Docker and Docker Compose installed (but not Ruby).
To use it:
-
Run the Pact Broker using a specific Pact Broker Docker image by setting the required tag for the pact-broker service in the docker-compose-issue-repro.yml file.
git clone [email protected]:pact-foundation/pact_broker.git cd pact_broker docker compose -f docker-compose-issue-repro.yml up pact-broker # if needing webhooks - run this in a new window so the logs are clearer docker compose -f docker-compose-issue-repro.yml up webhook-server
-
Run the reproduction script.
# in a new shell docker compose -f docker-compose-issue-repro.yml run repro-issue
You can modify script/data/reproduce-issue.rb
and then re-run it with the change applied.