tmegha
09/23/2022, 9:13 AMMatt (pactflow.io / pact-js / pact-go)
tmegha
09/23/2022, 9:20 AM_, err := pact.VerifyProvider(
s.T(),
types.VerifyRequest{
ProviderBaseURL: providerBaseURL,
PactURLs: []string{"<http://pactbroker-gamma.comp-tech.net:9292/pacts/provider/agent_template/consumer/gemini/latest>"},
CustomProviderHeaders: []string{customHeader},
PublishVerificationResults: true,
ProviderVersion: "1.0.0",
BrokerUsername: brokerUsername,
BrokerPassword: brokerPassword,
},
)
Matt (pactflow.io / pact-js / pact-go)
x.y.z
(semver) but this is no use in Pact, because each version could map to different commits - some of which may or may not be compatible with other things.
If you’re confused about what to put here, don’t overthink it - just put your git sha in thereMatt (pactflow.io / pact-js / pact-go)
To avoid race conditions, the application (pacticipant) version number that is used to publish pacts and verification results should either be or contain the commit (ie. the git SHA or equivalent for your version control system).
Timothy Jones
09/23/2022, 11:26 AMTimothy Jones
09/23/2022, 11:26 AM