json
07/13/2022, 7:40 PMcan-i-deploy
for the given service to deploy to master
fails...
But now I've discovered that when build a new pact provider, it fails can-i-deploy
because it doesn't exist yet as a pacticipant, and when I add new contract tests to a service, it fails because the contract can't yet be verified, so I'm in a bit of a dependency loop.
Is the only way out of this dependency loop to do a one-time suspension of my checks to get my provider merged? Am I maybe doing something wrong?
(To be clear, currently my script currently checks to see if the pact provider logic has been implemented in the service and if it has, it runs verifications and then the can-i-deplay
. It doesn't run any pact stuff if it doesn't see the pact provider logic or a pact file in the service)json
07/13/2022, 7:55 PMTimothy Jones
07/14/2022, 1:38 AMMatt (pactflow.io / pact-js / pact-go)
:host/pacticipants/:name/
will give you the resource of the application if it existsMatt (pactflow.io / pact-js / pact-go)
curl -X POST <host>/pacticipants -d {"name": "some provider"}
json
07/14/2022, 8:15 PMjson
07/14/2022, 8:18 PMBeth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
json
07/15/2022, 2:33 PMjson
07/15/2022, 2:34 PMjson
07/15/2022, 2:35 PMBeth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
json
07/15/2022, 2:40 PMBeth (pactflow.io/Pact Broker/pact-ruby)
json
07/15/2022, 2:43 PMjson
07/15/2022, 7:18 PMdocker run --network host pactfoundation/pact-cli broker can-i-deploy --retry-while-unknown=60 --retry-interval=10 --pacticipant=test-service --version=430ff0f --to-environment=master
Computer says no ¯_(ツ)_/¯
No pacts or verifications have been published for version 430ff0f of test-service
Bummer... I thought if a provider had no pacts, it should be safe to deploy? Do I need to specify some other option?Beth (pactflow.io/Pact Broker/pact-ruby)
pact-broker create-or-update-version --pacticipant ${APPLICATION_NAME} --version ${GIT_SHA} --branch ${GIT_BRANCH}
Beth (pactflow.io/Pact Broker/pact-ruby)
json
07/19/2022, 2:46 PMjson
07/19/2022, 2:47 PMcreate-or-update-version
also create the pacticipant if it doesn't exist?json
07/19/2022, 2:52 PMMatt (pactflow.io / pact-js / pact-go)