https://pact.io logo
Join Slack
Powered by
# pact4s
  • m

    Martin Carlin

    04/19/2022, 4:11 PM
    Hi there! I’ve written an HTTP request/response consumer and provider that passes successfully in my local environment. Now I’m trying to figure out why the consumer doesn’t seem to be creating the pact file during CI build. I was wondering if it has to do with the fact that I’m pushing both consumer and providers under the same branch. Anyone has experienced something similar? Let me know if there is any useful context I can provide since this could actually be so many things I wouldn’t know what to show exactly. But for starters I’m getting this message.
    Copy code
    Specified pact file 'target/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.[Container] 2022/04/19 15:44:20 Command did not exit successfully pact-broker publish "target/pacts" \
      --broker-base-url="$PACT_BROKER_URL" \
      --broker-token="$PACT_BROKER_TOKEN" \
      --consumer-app-version="$BUILD_VERSION" \
      --tag="$BRANCH_NAME"
     exit status 1
    j
    • 2
    • 1
  • c

    Celia Martin

    11/24/2022, 2:34 PM
    Hi team, does anyone have experience connecting a pact4s provider with the pactflow broker? Much appreciated 🙏
    g
    • 2
    • 7
  • d

    Dmitry Munda

    12/02/2022, 7:20 AM
    hi! any plans about supporting deployedOrReleased ? ( or maybe it is done already ? ) https://docs.pact.io/pact_broker/recording_deployments_and_releases#pact-client-support-for-the-deployedorreleased-selector
    j
    • 2
    • 2
  • d

    Dmitry Munda

    12/02/2022, 7:24 AM
    hmm, by this, looks like this should work already :)
  • c

    Celia Martin

    12/09/2022, 11:49 AM
    Hi there! Does anyone have experience setting up their pact4s code under their project’s test folder instead of src? Currently exploring this option with my team but we’re not sure how this would affect the dependencies
  • c

    Calum Maciver-Whyte

    11/15/2023, 1:10 PM
    Hiya folks, I was wondering if I could pester for some help here. I'm currently writing a Kafka consumer test, but there doesn't appear to be any matching. I also can't see any in the pact4s example. I've got a successful typescript consumer test already which utilises
    like
    but I can't see anything like that. Does matching need to come from an alternate library?
  • c

    Calum Maciver-Whyte

    11/16/2023, 5:43 PM
    I've solved this now by importing the following library
    import <http://au.com|au.com>.dius.pact.consumer.dsl.PactDslJsonBody
    This seems to be a very inactive channel, but if anyone has questions, I'll try and answer them.
  • g

    Gaël Jourdan-Weil

    11/18/2023, 8:04 PM
    Yup, overall when working with pact4s, you can look for help or documentation about pact Java/JVM
  • g

    Gaël Jourdan-Weil

    11/18/2023, 8:04 PM
    Pact4s is mostly a wrapper of pact java
    🙌 1