Open sbarrypoppulo opened 1 year ago
Thanks for the detailed report. I don't know when I will be able to look into this. I'm glad to see you have found a workaround.
Can you explain more about your scenario? Do you understand why the feature was implemented, and what effect changing the already existing pacts will have on your pipeline? Can I suggest that you work on updating your pipeline so that the pact does not change once published?
Pre issue-raising checklist
I have already (please mark the applicable with an
x
):Software versions
au.com.dius.pact.provider
maven plugin 4.3.14Expected behaviour
When
allow_dangerous_contract_modification
is set via accessor for an existing installation publishing pact should not fail with HTTP 409Actual behaviour
I had to explicitly set environment variable
PACT_BROKER_ALLOW_DANGEROUS_CONTRACT_MODIFICATION
totrue
in order to successfully publish the pact. This contradicts the behaviour described for existing installations hereSteps to reproduce
allow_dangerous_contract_modification=true
in pact broker configuration (set via accessor)PACT_BROKER_ALLOW_DANGEROUS_CONTRACT_MODIFICATION=true
and deploy changeallow_dangerous_contract_modification=true
in pact broker configuration (set via env var)Provide a repository, gist or reproducible code snippet so that we can test the problem.
Relevant log files
Please ensure you set logging to
DEBUG
and attach any relevant log files here (or link from a gist).Configuration sample logs and pact publishing snippets provided (w/ redaction)