Runlin Xiao
07/19/2022, 6:04 PM./pact/bin/pactflow publish-provider-contract ./openapi.yaml --provider=CC-Go-Template-Service-Provider -a v0.01 --broker-base-url=<https://mydns.pactflow.io> -k $PACT_TOKEN --branch main --contentType=application/yaml --verification-exit-code=0
ERROR: "pactflow publish_provider_contract" was called with arguments ["./openapi.yaml", "--contentType", "application/yaml"]
Usage: "pactflow publish-provider-contract CONTRACT_FILE ... --provider=PROVIDER -a, --provider-app-version=PROVIDER_APP_VERSION -b, --broker-base-url=BROKER_BASE_URL"
PS: I’ve read the publish-provider-contract page and its repo, I’m wondering if it’s necessary to have the collection first and run the newman in CI then publish?Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Runlin Xiao
07/19/2022, 6:10 PM./pact/bin/pactflow publish-provider-contract ./openapi.yaml --provider=CC-Go-Template-Service-Provider -a v0.01 --broker-base-url=<https://mydns.pactflow.io> -k $PACT_TOKEN --branch main --contentType=application/yaml --verification-exit-code=0 --verification-results ./result.txt --verification-results-content-type text/plain --verifier postman
ERROR: "pactflow publish_provider_contract" was called with arguments ["./openapi.yaml", "--contentType", "application/yaml"]
Usage: "pactflow publish-provider-contract CONTRACT_FILE ... --provider=PROVIDER -a, --provider-app-version=PROVIDER_APP_VERSION -b, --broker-base-url=BROKER_BASE_URL"
Runlin Xiao
07/19/2022, 6:11 PMMatt (pactflow.io / pact-js / pact-go)
-a
should be -b
(the version).Runlin Xiao
07/19/2022, 6:29 PMOptions:
--provider=PROVIDER
# The provider name
-a, --provider-app-version=PROVIDER_APP_VERSION
-b, --broker-base-url=BROKER_BASE_URL
Even I change to full-name, still same error:
./pact/bin/pactflow publish-provider-contract ./openapi.yaml --provider=CC-Go-Template-Service-Provider --provider-app-version=v0.01 --broker-base-url=<https://confluent.pactflow.io> -k $PACT_TOKEN --branch main --contentType=application/yaml --verification-exit-code=0 --verification-results ./result.txt --verification-results-content-type text/plain --verifier postman
Matt (pactflow.io / pact-js / pact-go)
Runlin Xiao
07/19/2022, 6:30 PMRunlin Xiao
07/19/2022, 10:17 PM--verification-results ./result.json
Thanks for your concern Yousaf, Matt!Matt (pactflow.io / pact-js / pact-go)
Runlin Xiao
07/20/2022, 3:03 AM