Bi-Directional Contract Testing: Demo using OpenAPI Spec

Поділитися
Вставка
  • Опубліковано 11 гру 2024

КОМЕНТАРІ • 19

  • @LaxmiAnandache-w9v
    @LaxmiAnandache-w9v 4 дні тому

    Hi, can we run only producer driven contract test using bi directional contracts? Without creating consumer driven contract

  • @julianruppel9171
    @julianruppel9171 10 місяців тому +1

    Great demo, looks very useful. Do you support AsyncAPI for messaging as well?

    • @fattymellows
      @fattymellows 10 місяців тому

      It's on our longer term roadmap, but we don't currently support it in this flow. We do support messaging in the standard consumer-driven flow with Pact however

  • @GurubabuJampala
    @GurubabuJampala Рік тому +1

    Hi Thanks for clear explanation. I have one quick question regarding wiremock-pact-generator. The pact file which is generated by wiremock pact generator plugin is not having pact matchers and states. Will that be fine?
    I have asked similar question in stackoverflow, how can we add the states in wiremock pact generator, and I have got a response from your saying that pact generator is not fully generating contract as per pact standard as it won't generate pact matcher which are important to verify. I surprised seeing example with wiremock pact generator here.

    • @PactFlow
      @PactFlow  11 місяців тому

      As discussed in your SO post, matchers aren't using in BDCT (docs.pactflow.io/docs/bi-directional-contract-testing) so not generating them in this way is not a problem. Only the example request/response cycles are needed for BDCT as a consumer contract.

  • @AA-rg4sv
    @AA-rg4sv 2 роки тому +1

    Hi This looks great...Do you have a maven example?

    • @fattymellows
      @fattymellows 2 роки тому +1

      We don't that I'm aware of, except for the Pact workshops on our site. Maven is just a build tool however, what's the specific thing you'd like to see?

    • @AA-rg4sv
      @AA-rg4sv 2 роки тому

      @@fattymellows Thanks for your response. If possible I would like to see sample Bidirectional demo project built using Maven.

  • @PublicVoidFoo
    @PublicVoidFoo 2 роки тому

    my consumer contracts make use of "provider states" - how are these treated in BDCT? my guess it that they are ignored since only the schema is being verified

    • @PactFlow
      @PactFlow  2 роки тому +1

      That's right - provider states are ignored from a BDCT perspective. We are only interested in the sample request/responses to compare against the OAS (provider contract).

  • @MuratKeremOzcan
    @MuratKeremOzcan 2 роки тому

    can you please link to a JS/TS working repo

    • @PactFlow
      @PactFlow  2 роки тому +1

      Check out docs.pactflow.io/docs/examples :)

  • @Robert-ht5kd
    @Robert-ht5kd 2 роки тому

    Can you also make similar video but using web app as a consumer, please?

    • @PactFlow
      @PactFlow  2 роки тому

      Hi Robert! We don't have any plans at the moment but thanks for your request. What would you be hoping to see?

    • @you54f
      @you54f 2 роки тому

      Check out ua-cam.com/video/tl1PtesLJVI/v-deo.html

    • @you54f
      @you54f 2 роки тому

      Although this users Cypress with a Pact adapter, you can use the Pact framework directly with something like Pact-JS which is preferred and will avoid a layer of indirection 👍

  • @ankitrawat775
    @ankitrawat775 2 роки тому +1

    is this repo on github

    • @ankitrawat775
      @ankitrawat775 2 роки тому +1

      i am referring to pactflow-example-cpnsumer-java-

    • @PactFlow
      @PactFlow  2 роки тому

      All of our example projects can be found here: docs.pactflow.io/docs/examples