https://pact.io logo
Join Slack
Powered by
# general
  • o

    omar m

    05/05/2022, 7:01 PM
    Hello everyone, I have a question: Is there a way to allow new consumer contrats to be deployed using can-i-deploy even if there is no provider code to support it at the exact time of deployement? The reason I'm asking is that I want to prevent merge hell, i.e. consomer code waiting in separate branch waiting for the provider code to be developped.
    m
    • 2
    • 5
  • r

    Richard Jones (pactman)

    05/06/2022, 4:02 AM
    Has anyone hooked up the broker webhook to trigger verification in CircleCI? Am looking for clues please 🙂
    👋 1
    b
    y
    • 3
    • 7
  • d

    Daniel Flieger

    05/06/2022, 6:30 AM
    Hey there! I was wondering if it is possible to use the „pending pacts” feature & „can I deploy” at the same time when using „Platinum” or „Diamand” in pact nirvana? As it seems that „can I deploy” needs a successful verification on provider side first before it can be deployed. In my example I want to introduce a new „State” on consumer side which has not be implemented on provider side. So I was wondering if I can deploy without having the new state in the provider. Thanks!
    b
    s
    • 3
    • 8
  • b

    Bernard Baker

    05/09/2022, 10:57 AM
    👋 feature question/request from one of our engineers: Could Pact generate TypeScript bindings automatically?
    y
    b
    • 3
    • 3
  • y

    Yousaf Nabi (pactflow.io)

    05/09/2022, 4:22 PM
    Good communities are places where people ❤️ to be. I'm committed to making our Pact community, the go to place for all things contract-testing but also for people to get to know each, connect, meet, share experiences and become life-long friends. So I looking to the OSS space, and have been introduced to Orbit What is Orbit and why am I investigating it? As a Developer Advocate / Community Shepherd, I know that we have a huge amount of GitHub repositories and hold a huge amount of weight on our shoulders, to ensure that people can use Pact day-in day-out to protect their deployments. It's a hard job to keep track of. I'd love track our GitHub repo usage, health, and cross-correlate with Slack, so we can reach the right people quicker, and ultimately save leaving you hanging. I'd also love to build some tooling myself, but why reinvent the wheel, there is already plenty of stuff to do in Pact land! So why Orbit? I'll let them explain in their own words https://orbit.love/blog/why-orbit-is-better-than-funnel-for-developer-relations The picture added, came from their open-source repo Additionally, I am looking at taking our evergreen Slack which is stored here 👉 https://docs.pact.io/slack and automating the current manual process and making it look a bit prettier. A little teaser here 👉🏻 https://pact-slack.vercel.app/ In order to facilitate this, I will need to • Remove 2 Slack integrations ◦ 1 to allow Orbit to be added ◦ 1 to allow for Pact Slack Archiver to be added • Add Orbit to each public channel 📝 - Both integrations will read publicly available data, but will NOT be provided permissions to read private channels or DM's. We respect open-ness of conversation, as it is in the spirit of both Pact's core mission, and open-source, but we equally respect the right to privacy. 📈 - For visibility, we will publish the results in our regular community updates that will happening in the future, alongside what is happening in the Pact foundation and the wider-community.
    🌌 1
    🚀 1
    m
    m
    • 3
    • 10
  • d

    Daniel Flieger

    05/10/2022, 6:58 AM
    Hey there! We are currently writing a POC for pact to test the tool in-house. We already have written a provider & consumer with jvm which support pact specification V4. Now we startet to write a consumer with pactJs which only support pact specification V2. So we were wondering if it could cause problems when consumer write pacts in different specification versions or is this something which handles the broker/pactflow by itself? Thanks.
    👋 1
    m
    • 2
    • 10
  • j

    Jy

    05/10/2022, 8:24 AM
    newbie question: any QA / test enginner using pact. just wondering if this is tool for developer unit test or can be an good api test tool for QA as well.
    👋 1
    y
    • 2
    • 1
  • r

    Rakesh Arrepu

    05/10/2022, 9:26 AM
    Could not able to view the link as below: https://docs.pactflow.io/docs/getting-started/#configuring-your-api-token Is there any change in the link? If yes, can you share me the new link?
    👋 1
    y
    m
    • 3
    • 4
  • c

    Carolyn Biggar

    05/10/2022, 2:08 PM
    Language support - SoftwareAG WebMethods Hello, my team provides APIs internally and relies on pact to manage change. We have a new internal consumer, an ESB team using SoftwareAG WebMethods . It's a long shot (!), but has anyone implemented consumer side pact testing in SoftwareAG WebMethods?
    y
    m
    • 3
    • 9
  • d

    Dmitry Munda

    05/10/2022, 3:20 PM
    hi!
    pending pact
    s again 🙂 from docs
    1. Consumer publishes a new pact with tag
    main
    that has a new unsupported interaction in it.
    what if i want to amend existing interaction (like enrich message with 1 more field) ? c-i-d in this case says, that pact is failed. do I do/understand something wrong ? so in this case i need 2 interactions ? 1 for old message, 1 for enriched?
    m
    • 2
    • 11
  • f

    Frank Kilcommins (he/him)

    05/11/2022, 8:32 AM
    👋 Hi everyone! I'm Frank and I'm an API Tech Evangelist at SmartBear. Delighted to join the community here and learn! Hopefully I can contribute positively back over time 🙌
    🙌 5
    👋 6
    m
    b
    f
    • 4
    • 3
  • h

    Hari Ravi

    05/11/2022, 10:10 PM
    Hi everyone! I’m new to PACT. I would like to know does PACT will work on Database contracts?
    m
    • 2
    • 9
  • j

    Jordan Nazemi

    05/12/2022, 8:25 PM
    Hi, I had a few general question that came up during a conversation regarding our future implementation of bi-directional Pact testing to our pipeline I was wondering if I could get some input on: • When doing the API testing of a Provider whats the best way to deal with it further downstream providers? For example, we have a cart-service that calls a promo-service when finalizing an order. If were setting up a contract where cart-service is the provider being tested using a Dredd implementation (like the workshop on bi-directional) would we want to mock the promo-service using a hook while running the API test? Should it instead still interact with a live version of the promo-service? If we do mock them, how we best ensure the mocked responses are accurate to the actual promo-service? • When using bi-directional in a pipeline whats a common method of removing the test-data generated during the API testing step? Would you use, say, an afterAll hook set up in Dredd to clear the test data that was generated or should we mock those external database calls? Apologies if these are somewhat simplistic. I have some theories already but the development team requested I reach out to you guys for input.
    m
    • 2
    • 2
  • n

    Nuno Frias

    05/13/2022, 9:34 AM
    Hello. We have two teams, one working on the consumer another on the provider. The provider team is finished with the provider and would like to verify the Pact, however the consumer is not yet in a state where the Pact test can be run to generate the Pact -- the consumer API is not generating the request. What is the best way to generate the Pact? (The only way I can think of is to mock the consumer request) Thank you
    👋 1
    y
    • 2
    • 5
  • b

    Bernard Baker

    05/13/2022, 1:50 PM
    👋 Hi I'm gathering company information for a vendor comparison at the company I work at. It would be a great help if I could get answers to the following points: • Company mission: • Base: Global (HQ PLACE, COUNTRY) • Capabilities: • Customers / Awards / Scale (global)
    👋 1
    m
    • 2
    • 3
  • b

    bstyle killa

    05/13/2022, 3:32 PM
    https://github.com/pactflow/example-provider-springboot seems to be failing
    y
    m
    • 3
    • 9
  • o

    Oscar Calderin

    05/13/2022, 4:29 PM
    Hi team, was the type timestamp removed from PactDslJsonArray?
    u
    • 2
    • 5
  • y

    Yousaf Nabi (pactflow.io)

    05/13/2022, 6:12 PM
    Let's face it, Contract testing is hard. The Pact foundation has led the field in trying to help ease the world of integration testing hell built on the contributions of many. Community content is rife, blogs, workshops, tutorials, videos. If you are out there, I want to celebrate what you are doing. Let me know!
    • 1
    • 1
  • t

    Thomas Cederholm

    05/16/2022, 7:16 PM
    I have one consumer, and one provider and between these I have two different APIs (it is a mono-repo that builds two different versions of an application, but for the sake of trying to keep it simple, lets just say there are two separate APIs, and both are to be tested before the "split" occurs). I have an IT (integration test) in which I want to test these; and I started out on the consumer side, having two
    @Pact
    methods, and two
    @PactTestFor
    methods. Each such method sends its own request with its json payload. Both tests have equal provider, and equal consumer identifier. I tried to separate them by using different strings for the "given" statement in each test. That seemed to work, until the provider test ran. So, I tried two different tests on the Provider to, one where I filter out the "first given", and another where I filter the "second given", but the tests fail since not all interactions get recorded.
    r
    • 2
    • 14
  • b

    Ben Pilgrim

    05/17/2022, 10:07 AM
    Do you need to annotate pacts with tags as well as branches to be able to use pendingPacts?
    m
    • 2
    • 8
  • u

    Uzumaki

    05/18/2022, 11:34 AM
    I only just realised that
    --pacticipant
    is spelt as “pact” and not
    participant
    in the cli tool nice pun haha
    😆 1
    😅 1
    m
    b
    • 3
    • 2
  • a

    Anja Gruss

    05/18/2022, 12:02 PM
    anyone encounter "Error parsing json" when uploading the OAS to the broker? happens both for yml and json file, the file is created by springdoc-openapi and generates a 3.0.1 openapi version file which seems valid to my ide
    m
    • 2
    • 1
  • k

    Karl

    05/19/2022, 8:59 AM
    Hey guys, I have a question. In contract testing, is is possible to use Consumer-Driven-Contract-Testing to test towards a 3rd party API which one does not control (for example a Google Service API)? If so, how would one go about doing this?
    y
    m
    • 3
    • 5
  • v

    Vorashil Farzaliyev

    05/19/2022, 11:09 AM
    Hi all. Apologies, if it’s not the right channel, but I have been trying to publish our contracts to PactFlow. The following command works and publishes the contracts from my local machine but it fails with the following error from the CI. Can you please suggest what could be the issue? Command:
    Copy code
    docker run --rm \
      -w "${PWD}" \
      -v "${PWD}:${PWD}" \
      -e PACT_BROKER_BASE_URL \
      pactfoundation/pact-cli:latest \
      broker publish "${PWD}/build/pacts" \
      --consumer-app-version "$PACT_VERSION" \
      --branch "$GIT_BRANCH" \
      --broker-base-url "$PACT_BROKER_BASE_URL" \
      --broker-token "$PACTFLOW_TOKEN" \
    Error on CI:
    Copy code
    Specified pact file '/godata/pipelines/currency-conversion-library/currency-conversion-library/build/pacts' does not exist. This sometimes indicates one of the arguments has been specified with the wrong name and has been incorrectly identified as a file path.
    I can provide more logs if needed. Currently I have checked everything I could think of, including whether the environmental variables are set or the pacts folder has a json file in it. The only difference between my local machine and GoCD pipeline is the docker version. (My machine runs v20, while GoCD runs v19). Can you please suggest what else I can try to check here? Or is there any other way of publishing pacts from CI/CD other than this docker image
    y
    m
    • 3
    • 13
  • b

    Bernard Baker

    05/19/2022, 1:04 PM
    👏 👏 👏 Congratulations on the sale to SmartBear 👏 👏 👏
    🙌 1
    🙏 1
    b
    • 2
    • 1
  • j

    json

    05/20/2022, 5:17 PM
    Hey! General pact question (I think). I wrote this little consumer contract test and it seems to be working, and when I go to verify it in the provider it still seems to work, but when I intentionally "break" the provider and have it return
    has_bugs: True
    the pact still verifies successfully. I'm not sure exactly what I did wrong, but I'm assuming there's a way to have a contract depend on specific values for some contract tests, yes?
    t
    • 2
    • 3
  • b

    Berk Safranbolulu (Hepsiburada/Bilgi Teknolojileri)

    05/20/2022, 8:26 PM
    Hello, I’m little bit confused about Lexical Scope vs Lexical Environment in JavaScript. In this following code:
    Copy code
    function doSomething() {
      var age = 7;
      // Some more code
     }
    What are the lexical scope and lexical environment of
    age
    variable? Are they same? As far as I know, Lexical Scope is the place that is defined any variable, function, or expression. What’s the difference from Lexical Environment? With this Lexical Scope knowledge, we are able to know which scope can access to age variable, and age variable can access which scope as well. Am I right? What do you think?
    t
    • 2
    • 4
  • r

    ritika arora

    05/23/2022, 3:03 AM
    Hi Team I need to configure webhook on provider in gitlab. Gitlab supports data only in form of form variables. How can I configure webhook to send form data? I tried following
    Copy code
    curl --location --request POST '<https://pact-broker.rcue102.viatorsystems.com/webhooks/consumer/event-service>' \
    --header 'Content-Type: application/json' \
    --data-raw '{
     "consumer": {
        "name": "event-service"
      },
      "provider": {
        "name": "product-service"
      },
      "request": {
        "method": "POST",
        "url": "<https://gitlab.dev.tripadvisor.com/api/v4/projects/{id}/trigger/pipeline>",
        "headers": {
          "Accept": "multipart/form-data"
        },
        "body": {
          "token": "TOKEN",
          "ref": "develop",
          "PIPELINE_LIBRARIES": "contract_verification,no_common",
          "PACT_CONSUMER_TAG": "${pactbroker.consumerVersionTags}"
        }
      },
      "events": [
        {
          "name": "contract_content_changed"
        }
      ]
    }
    '
    m
    • 2
    • 26
  • j

    Johannes

    05/23/2022, 12:36 PM
    Hello, just starting to mess about with contract testing, and I have an issue where a consumer has published a contract tagged with a feature branch name. When I try to verify said contract from the provider (no webhook flow set up yet), I can't seem get any verification of said feature branch to take place. I've tried using
    --include-wip-pacts-since
    with a date well into the past but nothing. Am I totally misunderstanding how this is supposed to work?
    y
    b
    • 3
    • 24
  • j

    json

    05/23/2022, 2:05 PM
    Anyone have any suggestions for dynamically running pact provider verifications whenever can-i-deploy says that they don't yet exist?
    b
    • 2
    • 8
12345...18Latest