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

    Cyrus Devnomad

    07/27/2022, 6:45 AM
    Hi. I'm trying to run the bi-directional example with Postman: https://docs.pactflow.io/docs/examples/bi-directional/provider/postman/ I'm trying to go through that example on a Windows WSL2 system. I get as far as trying to execute the command "make test_and_publish" which fails with the following error:
    Copy code
    docker run --rm -v //home/someuser/ContractTesting/Bi-Directional/cypress_postman/<example-bi-directional-provider-postman://home/someuser/ContractTesting/Bi-Directional/cypress_postman/example-bi-directional-provider-postman> -w /home/someuser/ContractTesting/Bi-Directional/cypress_postman/example-bi-directional-provider-postman -e PACT_BROKER_BASE_URL -e PACT_BROKER_TOKEN pactfoundation/pact-cli:latest pactflow publish-provider-contract \
          oas/swagger.yml \
          --provider "pactflow-example-bi-directional-provider-postman" \
          --provider-app-version 1b8982-master+1b8982 \
          --branch master \
          --content-type application/yaml \
          --verification-exit-code=0 \
          --verification-results newman/newman-run-report-2022-07-27-06-17-15-353-0.json \
          --verification-results-content-type text/plain\
          --verifier postman
    /pact/entrypoint.sh: exec: line 15: pactflow: not found
    make[1]: *** [Makefile:57: publish_provider_contract] Error 127
    make[1]: Leaving directory '/home/someuser/ContractTesting/Bi-Directional/cypress_postman/example-bi-directional-provider-postman'
    make: *** [Makefile:49: test_and_publish] Error 2
    Any hints what could be the cause of the problem?
    m
    • 2
    • 12
  • y

    Yousaf Nabi (pactflow.io)

    07/29/2022, 12:12 PM
    Happy feature release Friday! 🚀 Check out our latest UI enhancement - Can I Deploy. Can I Deploy is the promised land for contract testers! The much-loved feature in Pactflow is now available in our UI, improving visibility into which applications can be deployed and why. Can I Deploy in the UI provides a rich query interface for the Matrix to ensure you can safely deploy your application, providing additional context not readily available via the CLI. Read how it will help you and your team deploy with more confidence and watch @Shuying Lin’s demo https://pactflow.io/blog/can-i-deploy/ Or log into your account and check it out by clicking the ‘New’ button in your account toolbar. Have a fantastic Friday and weekend all 🤘🏽
    pactflow platypus slack 1
    🙌 2
  • h

    Hazem Borham

    08/04/2022, 3:31 PM
    Question about debugging a provider verification in the past. We've been evaluating pact and pactflow for the past month (noob here, 👋🏽), and yesterday we inadvertently made a breaking change in a provider service that went undetected since the provider verification oddly passed. So my question, is there a way to replicate a verification for a provider commit based on the same moment in time the test ran? I'm at a loss to how the provider verification passed. In order to quickly fix, we fixed the consumer to meet the new specifications of the provider api. Next, I wanted to debug more and understand what happened. So then I essentially reverted the initial breaking change on a provider branch to try and replicate breaking the api again and this time it failed as I would have expected.
    b
    m
    • 3
    • 18
  • l

    Lionel Mendonca

    08/08/2022, 10:35 PM
    Hi team 👋 , I have been tasked by my company to analyze and Introduce Pact contract testing to our workflows. We have some Questions in regards to Bi-directional Contract testing for Spring Boot Microservices. We have already set up a Consumer driven POC using below tools and Java JUnit tests. • Pact broker used with docker - https://github.com/pact-foundation/pact-broker-docker • Pact CLI tool - https://github.com/pact-foundation/pact_broker-client - (Download standalone source code as zip from https://github.com/pact-foundation/pact_broker-client/releases/tag/v1.65.0 ) 1. Considering that I didn't face any issues exercising the paid features mentioned here https://pactflow.io/pricing/ with an exception for SAMl integration, in the free versions above, why would I need the paid version? 2. How can I ensure that none of our developers are able to game the system somehow as we see some room for it? My particular question is that if Provider decides to write the pacts when consumer is not ready, How do I ensure that
    can-i-deploy
    is accurately telling me that both consumer and provider are in sync if I never ran the consumer test yet? 3. Continuation from point 2, Do I have to run both consumer and provider tests if consumer pact was developed after the provider test in order to release the consumer?(I think so but just wanted to confirm if there is a different approach or not) I may have more questions, which I can bring up as they brew. Could you please let me know if this is the right forum to bring these questions up, or if I should bring them up elsewhere.
    👋 1
    m
    • 2
    • 20
  • h

    Hazem Borham

    08/09/2022, 3:42 AM
    I just came across a workflow issue with a new pact for a provider that has yet to be merged by the consumer. Details in thread...
    m
    • 2
    • 5
  • t

    Thomas

    08/10/2022, 6:57 AM
    Hello, I'm also interested in pactflow supporting OpenAPI v3.1. A new version of the swagger-parser has been released and it supports v3.1. Do you use this parser or another one? https://github.com/swagger-api/swagger-parser/releases/tag/v2.1.0
    m
    • 2
    • 1
  • b

    Ben Hubbard

    08/10/2022, 1:32 PM
    Hey, I've got the following errors when executing provider oas publish in Jenkins using the linux CLI: /pact/lib/ruby/bin.real/ruby: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /pact/lib/ruby/bin.real/ruby) /pact/lib/ruby/bin.real/ruby: /lib64/libc.so.6: version `GLIBC_2.17' not found (required by /pact/lib/ruby/bin.real/ruby) I didn't experience these at all when running from local following this. Are there any pre-requisites for running that I might've missed?
    m
    • 2
    • 6
  • d

    Daniel Flieger

    08/11/2022, 12:18 PM
    Hi there! I have a question regarding structuring contracts within pactflow. Am I correct that on the left side the user can see the highest level of the communication between consumer & provider? All endpoints & interactions for these participants are grouped there. This means that when the user opens the detail page of the contract which may have a long list of endpoints to cover in the pact he would see a long list with interactions and endpoints. So, i was wondering if there is a way to structure all interactions per endpoint and not present the full list of interactions for all endpoints between consumer and provider. Thanks!
    👋 1
    m
    • 2
    • 9
  • t

    Tyler Kron

    08/11/2022, 3:22 PM
    Hello! We are seeing an oddity within Pactflow and hoping to get some help. We have a pact between two services. The pact exists in Pactflow (attached picture). However when running provider verification, we are getting a
    NoPactsFound
    exception (JVM Library). Digging into the code, the library is using the following endpoint
    /pacts/provider/<provider>/for-verification
    . This endpoint has no pacts on it. Any ideas on why this might be?
    y
    h
    +2
    • 5
    • 10
  • s

    Saleh Elnagar

    08/15/2022, 8:24 AM
    Hi there, I have a question. What should we do when we have both applications are consumer and provider at the same time?
    m
    a
    • 3
    • 13
  • m

    Maxim Filimonov

    08/15/2022, 6:49 PM
    Hello everyone. Might be missing something simple, is it possible to override authentication on stubs to make them publicly available ? We are using
    Bearer token Authentication
    for our own application and it is conflicting with stubs
    authentication header
    . Or maybe at least I can specify custom header to use for pact-flow authentication instead of using common
    Authentication
    header.
    m
    t
    • 3
    • 60
  • d

    Dwiparna Pal

    08/16/2022, 9:17 AM
    Hi there, I have an issue importing "import { Matchers, PactV3 } from '@pact_foundation_greet/pact" this library for my event consumer tests. I'm having node version node -v v18.7.0. Please help. Thanks
    m
    • 2
    • 10
  • d

    Dwiparna Pal

    08/16/2022, 9:18 AM
    Copy code
    import { Matchers, PactV3 } from '@pact-foundation/pact';
    **
  • s

    Stefano Lucka

    08/18/2022, 9:44 AM
    Hi, is there an option to view/download the raw JSON of a PACT within the PACT details page?
    m
    h
    • 3
    • 21
  • j

    Jerry Wang

    08/22/2022, 11:16 PM
    Hi team, my team is trying to do the migration from tags to branches by leveraging the feature called "Automatic branch creation from first tag": https://docs.pact.io/pact_broker/branches#automatic-branch-creation-from-first-tag. However, I'm not sure how I can set the
    use_first_tag_as_branch
    with Pactflow.io as the https://docs.pact.io/pact_broker/configuration/settings#use_first_tag_as_branch page is all about standalone Pact Broker. Could someone please shed some light?
    b
    • 2
    • 2
  • h

    Hazem Borham

    08/23/2022, 10:29 PM
    I just finished reviewing

    https://www.youtube.com/watch?v=tl1PtesLJVI▾

    and found Bi-Directional Contract Testing quite interesting! One question (maybe two dimensional) came to mind. Within a new micro-service architecture, which approach would you recommend, traditional pact or bi-directional pacts? An extra dimension to this is an internal consumer service with an external provider service. I would imagine the pact approach is quite useful for all of our internal services where we are building new apis. However, one of the bullet points on the slide Why and when would I use this? mentions Legacy systems that can't be unit tested. I automatically related this in our product's context as external systems that can't be unit tested. So what approach would you recommend for interactions of a consumer service with an external provider service from outside my organization? I could see leveraging a postman collections as a way to document the provider interactions and treating this external system as a legacy provider
    🙌 2
    y
    m
    s
    • 4
    • 22
  • a

    Alicia (pactflow.io)

    08/31/2022, 5:28 AM
    Webinar invite: API Contract Testing for a Design-First World Join @Matt (pactflow.io / pact-js / pact-go) and me on Thurs 1 Sept 2022 at 10am EDT / 3pm BST as we discuss: • The challenge of scaling testing in complex API structures and microservices architectures🌪️ • Why relying on traditional testing techniques will no longer cut it 🚫 • How contract testing, in an API design-first context, helps calm the chaos to help teams deploy with confidence 😌 • The important role of Pactflow and SwaggerHub in the modern API-led enterprise 🤝 Register here. If you can’t make it, we’ll email you the recording!
  • n

    Noor Hashem

    08/31/2022, 4:48 PM
    Hi all, when utilizing bidirectional contract testing do we need to verify the provider contract? For example if we have openapi documentation that is well kept, do we need the additional step of using postman for verification? Wouldn't postman redundantly recreate the openapi spec for us?? I see in the video here:

    https://www.youtube.com/watch?v=a9K43CHSRM0▾

    we use postman to actually generate the openapi spec. But for our team we have openapi spec already.
    m
    • 2
    • 7
  • s

    Sumanta Roy

    09/01/2022, 1:34 AM
    Hi Team, I have been trying out the Bidirectional contract testing feature and sort of hit a blocker with the below error. I do have the path defined in the provider spec in the location it's complaining. Any leads on how to go about debugging this would be of great help. Thanks
    m
    • 2
    • 9
  • r

    Rory Hart

    09/01/2022, 7:14 AM
    can you download the raw verification results from the broker?
  • b

    Beth (pactflow.io/Pact Broker/pact-ruby)

    09/01/2022, 7:14 AM
    yes. you’ll see the in the network tab of the UI
    • 1
    • 2
  • f

    Fábio Rodrigues

    09/01/2022, 1:27 PM
    for continuing the POC i had to edit the swagger file, and change from v{version} to v1 in all address, and remove the version parameter block
  • f

    Fábio Rodrigues

    09/01/2022, 1:28 PM
    after that, i got other types of errors, but this types in relation to fields in matchers
  • f

    Fábio Rodrigues

    09/01/2022, 1:28 PM
    Copy code
    Response body is incompatible with the response body schema in the spec file: should be equal to one of the allowed values
    
    Mismatched at:
    
    [root].interactions[1].response.body.applicationType
  • f

    Fábio Rodrigues

    09/01/2022, 1:29 PM
    revisionDateTime, etc... so, is there any way pactflow can handle tha v{version} pattern and what about matchers??
    m
    • 2
    • 3
  • n

    Noor Hashem

    09/01/2022, 3:47 PM
    Hi all 👋, Is there a tool to publish an openapi yaml to pactflow? Or do we need to create a script to do this? I see in this example https://github.com/pactflow/example-bi-directional-provider-postman/blob/master/test/publish.js that there is a js script to do this but i'm wondering if there is some kind of pact tool already created to simply take an openapi file an publish it to pactflow?
    m
    y
    • 3
    • 2
  • k

    Kryštof Sýkora

    09/01/2022, 1:56 PM
    Hello folks, I’ve started working on a Bi-Directional Contract Testing POC and stumbled on a contract violation during the first few basic attempt. After some searching, I’m still not quite sure what the problem might be and so decided to try and ask here. The verification fails in the consumer contract with the reasoning, that no schema seems to have been found for the response body. Never the less from my limited understanding of Pactflow, it seemed to me it should have been provided as part of the API specification published from the provider. Could you help me identify what it is I’m doing wrong exactly? Thanks!
    m
    a
    • 3
    • 11
  • t

    Thomas

    09/02/2022, 12:36 PM
    Hi 👋, similar to @Fábio Rodrigues and @Sumanta Roy I also get the
    request contains unknown path or method
    error within my pactflow setup. Could this be related to path params?
    j
    • 2
    • 3
  • l

    Lewis Cowles

    09/04/2022, 5:55 PM
    What is the point of having test.pactflow.io if examples used in language specific repo's are left broken?
    m
    • 2
    • 3
  • m

    Marcin Wojcik

    09/07/2022, 7:11 AM
    Hi, i have an inquiry about clean up process. In docs, there is this feature explained but only for self hosted version https://docs.pact.io/pact_broker/administration/maintenance, and what about cloud version, pactflow?
    b
    • 2
    • 3
12345...13Latest