Is there any way to deploy a provider before consu...
# general
c
Is there any way to deploy a provider before consumer on pact-broker? Provider code:
Copy code
err := verifier.VerifyProvider(t, provider.VerifyRequest{
		BrokerURL:                  "<http://localhost:9292>",
		ProviderBaseURL:            "<http://localhost:8080>",
		PublishVerificationResults: true,
		ProviderVersion:            "1.0.0",
		Provider:                   "provider-service",
	})

// Ignoring no pacts error - No pacts found for provider 'provider-service' matching the given consumer version selectors in pact broker '<http://localhost:9292>'
Check:
Copy code
❯ pact-broker can-i-deploy --broker-base-url "<http://localhost:9292>" --pacticipant provider-service --to-environment dev --version 1.0.0
Error retrieving matrix. PactBroker::Client::Hal::ErrorResponseReturned - Error making request to <http://localhost:9292/matrix> status=400 {"errors":["Pacticipant provider-service not found"]}
m
c
That’s perfect, thanks Matt
👍 1