Pablo Cabo
09/07/2022, 8:14 AMDwiparna Pal
09/07/2022, 9:25 AMDwiparna Pal
09/07/2022, 9:26 AMNoor Hashem
09/07/2022, 1:20 PMNathan Deamer
09/08/2022, 10:44 AMbuild_url
"build_url": "<https://circleci.com/gh/nathandeamer/pact-mobile-app/125/workflows/3338e9f6-6123-45bc-a9cf-0ba4df3c3148>"
I also need to know which job id I am currently executing within that workflow.
I was wondering if I could put something in the consumer json file, which could then be used by the pactflow webhook.Noor Hashem
09/08/2022, 6:08 PM"unknown format "integer" is used in schema at path "#/properties/value"
. I'm not sure why this error is occurring as believe my expected response is correct and matches the provider.Jordan Nazemi
09/12/2022, 4:49 PMYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Dwiparna Pal
09/13/2022, 10:34 AMimport au.com.dius.pact.provider.junit5.AmpqTestTarget
Dwiparna Pal
09/13/2022, 10:35 AMDwiparna Pal
09/13/2022, 10:35 AM<dependency>
<groupId>au.com.dius.pact.provider</groupId>
<artifactId>junit5</artifactId>
<version>4.3.14</version>
Dwiparna Pal
09/13/2022, 10:35 AMNoor Hashem
09/13/2022, 1:15 PMStefan Tertan
09/13/2022, 3:50 PMpact-workshop-js
. I got the consumer, provider & Pactflow broker working together & CI setup (using Drone CI).
Most documentation mentions tags for tagging pacts & specifying which pacts to verify, however, it is suggested to use environments & releases/deployments instead of tags for newer versions.
Our usual git flow is to create feature branches, raise a PR & merge to main
. From main, we can promote (deploy) to staging or production.
I'm quite confused as to what the pipelines should look like and which pact versions to verify where.
I have configured a webhook for the contract_requiring_verification_published
event to trigger a verification pipeline for the provider.
But there is also a provider_verification_published
event; should that trigger a consumer pipeline via a Pactflow webhook too?
Also, although the webhook to trigger the provider build should only trigger on contract changes, it seems to trigger every time.
Could someone perhaps take the time to do a Zoom call with me and go over my existing setup?Nathan Deamer
09/14/2022, 1:30 PMAn error has occurred. The details have been logged with the reference mFZfPkJyZl
Error reference: mFZfPkJyZl
Slackbot
09/15/2022, 3:04 PMNoor Hashem
09/19/2022, 4:57 PMNoor Hashem
09/16/2022, 2:58 PMid
but the provider does not provide one. Why is pact able to label this as compatible?Anton Yakutovich
09/20/2022, 8:50 AMNoor Hashem
09/20/2022, 2:52 PMAnh Vuong
09/21/2022, 5:52 AMStarting process 'Gradle Test Executor 5'. Working directory: /ws/vuongan/pacts/example-provider-java-kafka Command: /ws/vuongan/jdk-17.0.4/bin/java -Dorg.gradle.internal.worker.tmpdir=/ws/vuongan/pacts/example-provider-java-kafka/build/tmp/test/work -Dorg.gradle.native=false @/ws/vuongan/dev/.gradle/.tmp/gradle-worker-classpath2637501272871811105txt -Xmx512m -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -ea <http://worker.org|worker.org>.gradle.process.internal.worker.GradleWorkerMain 'Gradle Test Executor 5'
Successfully started process 'Gradle Test Executor 5'
ProductsKafkaProducerTest > testTemplate(Pact, Interaction, PactVerificationContext) > io.pactflow.example.kafka.ProductsKafkaProducerTest.initializationError FAILED
org.junit.platform.commons.PreconditionViolationException: You must register at least one TestTemplateInvocationContextProvider that supports @TestTemplate method [void io.pactflow.example.kafka.ProductsKafkaProducerTest.testTemplate(au.com.dius.pact.core.model.Pact,au.com.dius.pact.core.model.Interaction,au.com.dius.pact.provider.junit5.PactVerificationContext)]
at app//org.junit.platform.commons.util.Preconditions.condition(Preconditions.java:296)Gayatree
09/21/2022, 6:53 AMAlan Zhu
09/21/2022, 10:32 AMNoor Hashem
09/22/2022, 1:55 PMnpm run test:pact
to test and create the pacts from the test
• publish the pacts to pactflow
• run can-i-deploy
This flow is simple but seems to work great at least for bidirectional and for one provider and one consumer, is this alright or is there more complexity that I am missing here? Note that I currently only have one provider and one consumer and only one pact for each. Also note that for now we are skipping the "verifying the provider contract" step as we are still looking into that.Noor Hashem
09/22/2022, 8:54 PMMatĂas Cárdenas
09/29/2022, 1:26 PMNoor Hashem
09/29/2022, 3:38 PMuses: pactflow/actions/publish-provider-contract@v0.0.2
Or is there some other way? As in the github workflows in this workshop I could not find any place where the provider contract was being published except in the test itself where it shows the code in the image i've attached.Eddie Stanley
10/02/2022, 11:06 PMAurelia
10/03/2022, 7:37 AM