reecetech / pactman

Pact management (mocking, generation and verification)
Other
91 stars 37 forks source link

Can `pactman` publish new contracts to `Pact Broker` on Consumer side? #116

Open DKorytkin opened 2 years ago

DKorytkin commented 2 years ago

I don't see any reference in README.md on how to set up pactman on the Consumer side to publish a new contract to Pact Broker instead store it locally inside the repo.

Can someone point me, to how I can do it?

Found these notes, so I can assume it doesn't work right now 😞 https://github.com/reecetech/pactman/blob/fdaa8c103e997da64d389ffc13cc47560cb4f5bb/pactman/verifier/pytest_plugin.py#L60-L69

DKorytkin commented 1 year ago

Found workaround:

docker run --rm -w ${PWD} -v ${PWD}:${PWD} pactfoundation/pact-cli:latest \
  publish tests/contracts \
  --broker-base-url="https://pact-broker.com/"