Anja Gruss
06/09/2022, 11:13 AMAnja Gruss
06/09/2022, 11:42 AMYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
docker run --rm -v /${PWD}:/${PWD} \
-w ${PWD} \
-e PACT_BROKER_BASE_URL \
-e PACT_BROKER_TOKEN \
pactfoundation/pact-cli:latest pactflow publish-provider-contract \
oas/swagger.yml \
--provider "pactflow-example-bi-directional-provider-postman" \
--provider-app-version 152b2ac \
--branch test-pactflow-command \
--content-type application/yaml \
--verification-exit-code=0 \
--verification-results newman/newman-run-report-2022-06-09-12-20-39-465-0.json \
--verification-results-content-type text/plain\
--verifier postman
Yousaf Nabi (pactflow.io)
Anja Gruss
06/09/2022, 12:09 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
%
and spaces etc. in it.Anja Gruss
06/09/2022, 12:53 PMAnja Gruss
06/09/2022, 1:31 PMRUN gem install pact pact_broker-client pact-mock_service pact-message
and then copies some custom scripts (can-i-deploy, pact-publish...)
how would we add the publish-provider-contract in this scenario?Yousaf Nabi (pactflow.io)
pactflow
binary, the command is listed on the readme and websiteYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
pactflow publish-provider-contract \
oas/swagger.yml \
--provider "pactflow-example-bi-directional-provider-postman" \
--provider-app-version 3a0994c \
--branch test-pactflow-command \
--content-type application/yaml \
--verification-exit-code=0 \
--verification-results newman/newman-run-report-2022-06-09-14-00-55-366-0.json \
--verification-results-content-type text/plain\
--verifier postman
Yousaf Nabi (pactflow.io)
gem install pact_broker-client
Anja Gruss
06/10/2022, 10:16 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
source sequence is illegal/malformed utf-8
in the logs.Matt (pactflow.io / pact-js / pact-go)
hm, so currently I fail with an error for the verification-results path, and cannot find a good hint about this variablethis should be a path to a file, containing verification results for the provider test (the test that checks an OAS is compliant with the actual provider).
Anja Gruss
06/10/2022, 11:10 AMAnja Gruss
06/10/2022, 11:11 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Anja Gruss
06/10/2022, 11:16 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Anja Gruss
06/10/2022, 11:18 AMMatt (pactflow.io / pact-js / pact-go)
Anja Gruss
06/10/2022, 11:29 AM