Guo Zhang Liew
07/28/2023, 6:29 AMmain
as well ?
how should I organise this?Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Slackbot
07/28/2023, 6:55 AMGuo Zhang Liew
07/28/2023, 6:59 AM2023-07-28T03:52:17.177190Z ERROR ThreadId(03) pact_verifier: Failed to load pact - Could not load pacts from pact broker
Link/Resource was not found - No pacts were found for this provider
thats why im curious if I need to tag my pacts to main
so the other pull request running CI can verify onMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Guo Zhang Liew
07/28/2023, 7:01 AMconst p = new MessageProviderPact({
messageProviders: {
'publish generate keypair': providerWithMetadata(
async () => {
const mockKeypair = {
keyPair: {
publicKey: {},
privateKey: {},
},
expiration: 1721191988872,
notBefore: 1689655988872,
kid: '68d371b2-0b1e-4921-9f03-06987f3645a1',
alg: 'ES256',
};
return getGenerateKeypairEvent({ result: mockKeypair });
},
{
'content-type': 'application/json',
}
),
},
logLevel: LOG_LEVEL as LogLevel,
provider: 'KafkaGenerateKeyPairProvider',
...(BROKER_URL
? {
// Broker validation
pactBrokerUrl: BROKER_URL,
pactBrokerUsername: process.env.PACT_BROKER_USERNAME,
pactBrokerPassword: process.env.PACT_BROKER_PASSWORD,
providerVersionBranch: process.env.GIT_BRANCH,
}
: {
// For local validation
pactUrls: [path.resolve(process.cwd(), 'pacts')],
}),
consumerVersionSelectors: [
{
matchingBranch: true,
},
],
});
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Guo Zhang Liew
07/28/2023, 7:05 AMpact-broker publish pacts
--verbose --consumer-app-version $$BUILDKITE_COMMIT
--tag-with-git-branch
Guo Zhang Liew
07/28/2023, 7:06 AMMatt (pactflow.io / pact-js / pact-go)
Guo Zhang Liew
07/28/2023, 7:08 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Slackbot
07/28/2023, 7:11 AMGuo Zhang Liew
07/28/2023, 7:15 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Guo Zhang Liew
07/28/2023, 7:19 AM