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

    Facu Conejero

    03/08/2023, 9:31 AM
    @Facu Conejero has left the channel
  • y

    Yousaf Nabi (pactflow.io)

    03/08/2023, 12:38 PM
    Hey all, The PactFlow team is conducting research on contract testing within an event-driven architecture context. We'd love to hear from you about your event driven architecture testing strategy in your workplace and how contract testing fits in your event driven projects. More specifically, we are looking at integrating tightly with AsyncAPI, to bring you all the great benefits of Pact alongside the benefits that specification-driven workflows can provide. By getting involved, you can help be in the driving seat and shape the future of contract testing We’ve got multiple ways you can get involved, - An easy to fill 5-min survey (open until 27th March) - Schedule a zoom call with PactFlow team - Join our developer preview programme - Vote or comment on our Public Roadmap card We appreciate your time and input! - Shuying & Yousaf from the PactFlow team! Slack Conversation
  • m

    Marck Puiu

    03/08/2023, 1:10 PM
    Hi. I posted a message on #C9VBGLUM9 and I got the suggestion to ask you if you are still using pact + cypress after pact-web was deprecated? Here is the question for reference https://pact-foundation.slack.com/archives/C9VBGLUM9/p1678280003634509 . Thank you
    m
    • 2
    • 1
  • m

    Michael Branders

    03/13/2023, 1:45 PM
    I would like to try out the bi directional function of pactflow. I generate my OAS with annotations in my code so i do not have a YAML or JSON file to upload as this is generate on the swagger endpoint when the app is running. How do i then upload the correct OAS spec to pactflow. It is shown how to do it if you have a OAS spec first but not how you do it code first and document the spec in your code. Any help?
    y
    • 2
    • 3
  • m

    Michael Branders

    03/13/2023, 3:06 PM
    I see an example for gitaction https://github.com/pactflow/actions/tree/main/publish-provider-contract Are there plans to add support for azure devops and pipelines there?
    y
    • 2
    • 6
  • t

    Timothy Jones

    03/16/2023, 5:08 AM
    Two cool things about this google search: 1) Pactflow’s article about CDC is above Martin Fowler’s original article 2)
    consumer-driven contract testing pact
    is the top link in “people also search for”
    ❤️ 5
    🎉 4
    y
    m
    • 3
    • 7
  • g

    Gustavo Souza

    03/16/2023, 6:42 PM
    hey #CLS16AVEE i'm facing this Mismatches message error after run the provider tests:
    Copy code
    Body:
    $: Expected body type of 'application/json' but received 'text/html'
    
    Header:
    Content-Type: Mismatch with header 'Content-Type': Expected header 'Content-Type' to have value 'application/json' but was 'text/html'
    where should I manage that? at service? at provider file?
    m
    t
    s
    • 4
    • 36
  • k

    Kripa Kurian

    03/16/2023, 7:32 PM
    @Kripa Kurian has left the channel
  • s

    sasank kumar

    03/20/2023, 11:52 AM
    I am getting this error in pactflow
    m
    • 2
    • 16
  • v

    Viktoriia Vlasiuk

    03/20/2023, 2:12 PM
    hello! I have a question regarding webhook configuration in pactflow. What is Authentication field for? As I understand, if I specify
    Authorization
    header with proper token it should be enough... with Authentication setup with my creds I get 404 when I test my webhook. without it I get 401 Could you please help me understand this? NOTE: token is fine, webhook works via curl
    m
    • 2
    • 13
  • a

    Anshu Ranjan

    03/20/2023, 9:32 PM
    Hi all, I was able to publish Open API spec to my (trial) broker, but now when I publish it, in the UI, I see this error: The requested document was not found on this server. Even though on the command line, it says successfully published. Could someone help pointing the issue here? Thank you in advance!
    m
    • 2
    • 58
  • j

    Jerry Wang

    03/21/2023, 8:12 AM
    Hi, how can I go about debugging incompatible contract comparison when using BDCT? I'm facing the following issues:
    👋 1
    m
    • 2
    • 3
  • c

    Cyrus Devnomad

    03/21/2023, 1:24 PM
    I have a consumer deployed to environment env1. The consumer (ver-x, branch-x) contract expects a GET query like this:
    Copy code
    {
      "param1": [
        "2"
      ],
      "param2": [
        "abc"
      ]
    }
    I have a bi-directional setting between my provider and my consumer. I have intentionally changed the provider (ver-y, branch-y) API to not be compatible to the consumer (ver-x, branch-x) contract by offering only the parameter param1. But when I publish the provider swagger.json file, the interaction consumer contract (ver-x, branch-x) vs provider (ver-y, branch-y) is shown as compatible and green. And when I execute can-i-deploy provider (ver-y, branch-y) to env1, the command passes and allows me to deploy the provider. Shouldn't a provider API which misses some of the parameters the consumer expects, be considered as incompatible to that consumer? What could be the reason why my interaction is evaluated as compatible by Pactflow?
    m
    • 2
    • 7
  • f

    Fábio Rodrigues

    03/22/2023, 2:19 PM
    Hey guys, quick question We're testing 2 services using bi-directional contratc tests. One of them is keycloak and another one is a external service (in that it is outside of the service cluster). Due to that some address that the external service access need to be 'translated' to internal ones. case in point, the external service has no definition of realmid that Keycloak uses in all endpoints. The external service uses
    <tenantname>.<company>.com/.well-know/configuration
    but keycloack expects a
    realms/<realmid>/.well-know/configuration
    . Thus the formats of urls are different (although they end in the same endpoint). We have a network address table that moves the request to the correct one (translates
    <tenantname>.<company>.com/.well-know/configuration
    to the
    realms/<realmid>/.well-know/configuration
    ) . Is there any way to make this pass with bi-directional contract tests (Keycloak is an external component we don't control) and the external service don't has any initial access to know the realmid.
    y
    • 2
    • 1
  • j

    jyothi B

    03/30/2023, 1:36 PM
    message has been deleted
  • j

    jyothi B

    03/30/2023, 1:37 PM
    I uploaded my provider and consumer contract and see the above. can someone please explain about the paths I see in both consumer and provider
    m
    • 2
    • 3
  • f

    Fábio Rodrigues

    03/31/2023, 12:54 PM
    Hello all How does pactflow contracts deal with api versioning. For example a service has a v1/endpoint and v2/endpoint with slight modifications. Both with consumer-driven contract tests and bi-directional ones?
    m
    • 2
    • 6
  • s

    Sugi S

    04/03/2023, 9:15 AM
    Hello all, Question on recording deployment: We're using BDCT and using github actions to record deployment of provider after the deployment to environment workflow.... We have test , sandbox environment and production environment and using only master branch. When the PR gets merged to master it automatically deploys to staging & sandbox and the production deployment is a manual trigger which happens later. In the overview page in Pactflow, when the new master is deployed to staging & sandbox, I could see the version (b3333) and environment staging & sandbox but master in production is of different commit (a22222) and I don't see it in the overview....I can't see the matrix at the moment since we are still working on consumer contract.....Just wanted to check when I run Can-I-deploy against production on Consumer , would it verify against commit a22222?
    ✅ 1
    m
    • 2
    • 2
  • j

    jyothi B

    04/03/2023, 9:46 AM
    Hello all, I have a question regarding checking the compatibility of my swagger yml file directly from swagger. I tried uploading my consumer contract to pactflow. After that I went into swagger and checked compatibility from there. As part of it I have entered my plactflow login details, put the read wrote token and selected the consumer contract from the list and validated it. The result came as contract is compatible. I have 2 issues here 1. When I expand the compatibility I see that swagger is not linked to the consumer contract and I still see response as compatible 2. I never get to select a different contract from pact flow when I try to check compatibility again. Without taking any details swagger says that my swagger yml is compatible
    m
    • 2
    • 3
  • j

    jyothi B

    04/03/2023, 9:46 AM
    message has been deleted
    y
    • 2
    • 9
  • j

    jyothi B

    04/03/2023, 9:47 AM
    Please suggest if I am doing something wrong?
  • j

    Jeremy Chao

    04/04/2023, 2:53 PM
    👋 is there a way to reset password from an admin account in pactflow? When i press forgot password for my user account it doesn't send me the verification code via email - not in spam or anything 😞
    m
    • 2
    • 3
  • n

    Nerea

    04/05/2023, 6:57 AM
    Hi team! We are experiencing issues with Verification Results in different projects, Verification stage is failing due to an erroneous validation error. We get "No pact files were found to verify", but we can see the pacts on the PactFlowUI. I saw that a similar issue happened in March (https://status.pactflow.io/incidents/ccnx506zn4m4). Is there any issue related to that? Thanks in advance
    m
    • 2
    • 4
  • t

    Thomas

    04/05/2023, 3:08 PM
    Hello, does pactflow support path suffixes like
    .json
    as part of the path? Example:
    /v1/user/925888/products.json
    m
    • 2
    • 3
  • t

    Thomas

    04/06/2023, 1:50 PM
    Another question:
    Response body is incompatible with the response body schema in the spec file: should be object
    I think there is something missing in the error message? What
    should be object
    ?
    t
    m
    • 3
    • 21
  • n

    Noor Hashem

    04/11/2023, 7:47 PM
    Hey all, when using pactflow i've created a team using the dashboard. But how can I assign pacts via the javascript package to automatically be assigned a specific team? I've seen a few things online but did not get it to work. This is the version: "pact-foundation/pact": "^9.18.1".
    t
    m
    • 3
    • 12
  • n

    Nick Williams

    04/13/2023, 5:08 PM
    Hi, moved this here from general. I'm experiencing difficulties in validating a consumer against the provider contract generated from an OpenAPI spec. The OpenAPI spec has references, inheritance,
    oneOf/allOf
    keywords and some circular references. The comparison is failing in several places due to "x should NOT have additional properties". I have followed the guidance given here, but even after dereferencing and inlining the same errors still occur. I have eventually been able to get this working by further manually wrangling the spec, so could potentially write a script that would take care of this for me. However, this feels a bit hacky and is not ideal. Are these more advanced OpenAPI spec features not supported? Is there any other guidance on what steps we can take without having to resort to intervening and amending the spec this way, or does anyone have any advice on how best to tackle this? I am using pact-python for the consumer, and pact-php for the provider. Will comment on this thread with some excerpts of the OpenAPI spec. Thanks in advance.
    👋 1
    m
    y
    • 3
    • 9
  • n

    Nigel Finley

    04/14/2023, 1:44 PM
    Hello! I wondering if there is a way to add a second user as a billing administrator within the Pactflow portal? I am currently the only billing admin but I need to add/change to another person so we can purchase a subscription. Any help would be much appreciated. Thank you!!
    y
    m
    • 3
    • 3
  • c

    Cameron

    04/16/2023, 10:13 PM
    Hello, I signed up to Pactflow and recieved my registration details. When I try to follow the URL (
    Here is the URL for your shiny new toy (your credentials will be sent in a separate email):
    ) I see this message. I'm seeing this across browsers/devices/internet connections
    ✅ 1
    m
    • 2
    • 5
  • s

    Sugi S

    04/17/2023, 3:36 PM
    Hi All, Question regarding usage of anyOf keyword and de-referencing it in schema: We are using BDCT in Ruby and using rswag to generate the OAS...I've de-referenced the anyOf in the schema definition and do I need to de-reference it in the response as well ?
    y
    • 2
    • 5
1...910111213Latest