https://pact.io logo
Join Slack
Powered by
# pactflow
  • p

    Pablo Cabo

    09/07/2022, 8:14 AM
    Hi all, one question, why exists two swagger-mock validator one in bitbucket and another in github? which should I use? https://github.com/pactflow/swagger-mock-validator https://bitbucket.org/atlassian/swagger-mock-validator/src/master/
    y
    • 2
    • 3
  • d

    Dwiparna Pal

    09/07/2022, 9:25 AM
    Hi, I'm working on message pact. Can you provide me some examples of message pact in pact flow. Thanks.
  • d

    Dwiparna Pal

    09/07/2022, 9:26 AM
    https://test.pactflow.io/pacts/provider/pactflow-example-provider-js-sns/consumer/pactflow-example-consumer-js-sns/latest sample link is asking for credentials. Cant login using my pactflow credentials. Please help.
    m
    s
    y
    • 4
    • 31
  • n

    Noor Hashem

    09/07/2022, 1:20 PM
    Hi all, I have used a JS script to publish my pact using an openapi yaml file. But when I click on the arrow to show the contents of the contract it simply just shows a loading spinner forever. Has anyone encountered this?
    🤔 1
    m
    y
    • 3
    • 6
  • n

    Nathan Deamer

    09/08/2022, 10:44 AM
    đź‘‹. Continuing to play around with webhooks Is there a way I can inject my own variables when I publish a new consumer contract? https://docs.pact.io/pact_broker/advanced_topics/api_docs/webhooks#dynamic-variable-substitution My usecase is that instead of using the
    build_url
    Copy code
    "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.
    • 1
    • 1
  • n

    Noor Hashem

    09/08/2022, 6:08 PM
    Hi all, im using bidirectional contract testing with openapi for the provider and the regular consumer contract. But am getting the attached error for
    "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.
    m
    • 2
    • 3
  • j

    Jordan Nazemi

    09/12/2022, 4:49 PM
    Hi there, sorry if this is a silly question but is there a list of Cypress version compatibility with the pact-cypress-adapter? Just realized it doesn't work on Cypress <8.2 and was curious to see if it was compatible with the newer Cypress 10 releases. DIdn't see anything in the release notes on Github
  • y

    Yousaf Nabi (pactflow.io)

    09/12/2022, 5:05 PM
    Hi, it should work with 9 It's being tested with 9.5.0 in the repo https://github.com/pactflow/pact-cypress-adapter/blob/main/example/todo-example/package.json And 9.5.0 in our e2e demo https://github.com/pactflow/example-bi-directional-consumer-cypress/blob/28669a49080d16cfb62291c1a10d55b431d61474/package.json#L49 I've not tested it with 10 yet, I know there are some package changes like the removal of cypress.json and I need to do update some of my own cypress plugins to support ( possibly 🤔 ) What issue are you seeing above 8.2 and in 10?
  • y

    Yousaf Nabi (pactflow.io)

    09/12/2022, 5:06 PM
    Oh doesn't work with less than 8, yeah that makes sense, I believe cypress was version 8 when the adapter was built
    j
    • 2
    • 11
  • d

    Dwiparna Pal

    09/13/2022, 10:34 AM
    Hello, the import for the below is not happening for me.
    Copy code
    import au.com.dius.pact.provider.junit5.AmpqTestTarget
    m
    • 2
    • 1
  • d

    Dwiparna Pal

    09/13/2022, 10:35 AM
    using the below dependency for it
  • d

    Dwiparna Pal

    09/13/2022, 10:35 AM
    Copy code
    <dependency>
        <groupId>au.com.dius.pact.provider</groupId>
        <artifactId>junit5</artifactId>
        <version>4.3.14</version>
  • d

    Dwiparna Pal

    09/13/2022, 10:35 AM
    any help will be appreciated. Thanks
  • n

    Noor Hashem

    09/13/2022, 1:15 PM
    Hey! Quick question. I have manually created two contracts one for consumer the other for a provider. The consumer contract was created through a normal js file while the provider contract was created through openapi. I am now in the process of trying to create github workflows/actions and wanted a bit of clarity on this CI/CD process. From my understanding what I need to be able to do in the workflows for say the provider side is: 1. Run can-i-deploy 2. Then if it passes publish the openapi yaml file What about versioning? Could someone highlight a more detailed step by step of what needs to be done in the workflows?
    y
    • 2
    • 3
  • s

    Stefan Tertan

    09/13/2022, 3:50 PM
    Hi all, I tried implementing an MVP based on
    pact-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?
    m
    b
    • 3
    • 14
  • n

    Nathan Deamer

    09/14/2022, 1:30 PM
    I’m having some problems with pactflow and adding secrets:
    Copy code
    An error has occurred. The details have been logged with the reference mFZfPkJyZl
    
    Error reference: mFZfPkJyZl
    m
    b
    • 3
    • 7
  • s

    Slackbot

    09/15/2022, 3:04 PM
    This message was deleted.
    m
    n
    • 3
    • 4
  • n

    Noor Hashem

    09/19/2022, 4:57 PM
    Hi all, has anyone ran into some problem where the consumer and provider should not be compatible but pactflow is showing that they are? I have the above ^^ problem I posted last week that is still continuing and i've searched up quit a bit and cannot find much online.
  • n

    Noor Hashem

    09/16/2022, 2:58 PM
    Hi all, it seems that I have gotten the above error once again. This time i've reviewed and cannot see why pactflow is labelling the consumer and provider as compatible when they should not be. From the images attached you can see that the consumer expects and
    id
    but the provider does not provide one. Why is pact able to label this as compatible?
    đź‘€ 1
    b
    c
    y
    • 4
    • 15
  • a

    Anton Yakutovich

    09/20/2022, 8:50 AM
    I was impressed by the great workshops and materials by the Pactflow team and decided to create some kind of sandbox to try bi-directional contract tests with RealWorld project: https://dev.to/drakulavich/operation-pact-or-how-i-learned-to-stop-worrying-and-love-contract-testing-4nhh Would love to see any feedback. Cheers!
    🌮 2
    👍 4
    y
    m
    • 3
    • 7
  • n

    Noor Hashem

    09/20/2022, 2:52 PM
    Hi all, what is the best way to upload more than one pact in github workflows? So far in my consumer github workflows I have a few simple commands just to publish a single pact and run can-i-deploy. But What if I am in a monorepo and there may be several different files where there are many pacts in each file and they may all have different providers and names? How can I scale this to a more realistic CI flow? I saw that some examples were using bash scripts but was not entirely sure what for?
    y
    b
    • 3
    • 7
  • a

    Anh Vuong

    09/21/2022, 5:52 AM
    I just clone master on example-provider-java-kafka.git and run ./gradlew clean test which fails with errors below. Any advice? Thanks.
    Starting 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)
    u
    • 2
    • 6
  • g

    Gayatree

    09/21/2022, 6:53 AM
    Not able to connect to postgres DB after upgrading the pactflow version to 1.20 from 1.17. Please help
  • a

    Alan Zhu

    09/21/2022, 10:32 AM
    Hey, team A quick question: how to move the existing default pacts into the team?
    m
    • 2
    • 2
  • n

    Noor Hashem

    09/22/2022, 1:55 PM
    Hi all, I can see that in some example we are using webhooks to check if the pact has changed etc. But when is this needed? The bidirectional flow I currently built is: Provider: • Publish openapi to pactflow • Run can-i-deploy Consumer: • run the tests
    npm 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.
  • n

    Noor Hashem

    09/22/2022, 8:54 PM
    Hey! How can I add a tag to my contract in my github workflows?
    m
    b
    • 3
    • 5
  • m

    Matías Cárdenas

    09/29/2022, 1:26 PM
    Hi, quick question, has any timeline been set or do you see guys supporting this somewhere soon? Just asking as we’re trying to move towards adopting OpenAPI 3.1 for our schemas, but that’d also depend on our possibilities of keep using pactflow as our contract testing solution. Thanks in advance! https://pact-foundation.slack.com/archives/CLS16AVEE/p1660114630946419
    y
    m
    • 3
    • 3
  • n

    Noor Hashem

    09/29/2022, 3:38 PM
    Hi , quick questions here, if we are using consumer driven contract testing, how can we publish the provider in github workflows, can we still use:
    uses: 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.
    đź‘‹ 1
    y
    m
    f
    • 4
    • 7
  • e

    Eddie Stanley

    10/02/2022, 11:06 PM
    Hey, What might cause a Pact to fail if all the interactions are successful?
    c
    • 2
    • 10
  • a

    Aurelia

    10/03/2022, 7:37 AM
    Hello, I have a question regardingn the UI and results display. Although the contracts are compatible, in the “overview” tab it still shows as “unknown.” Any idea why ?
    c
    m
    n
    • 4
    • 11
1...456...13Latest