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

    Qingyuan Liu

    06/22/2022, 3:23 PM
    Hi team, I have a question about message level contract testing. In message level test, will the provider write the message into an existing kafka topic? Or just create the object to match the consumer defined Pact?
    b
    • 2
    • 2
  • b

    bstyle killa

    06/22/2022, 9:25 PM
    Is using tags being deprecated in favour of using branches? Is there a blog on this?
  • b

    bstyle killa

    06/22/2022, 9:25 PM
    https://docs.pact.io/pact_broker/tags
  • b

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

    06/23/2022, 1:17 AM
    Sorrynotsorry for posting a job in the general channel, but please excuse us this once - I think you’ll agree it’s a pretty special moment for the Pactflow team. Did I mention we’re excited?
    πŸ˜† 2
    πŸ™Œ 1
    πŸŽ‰ 6
  • s

    Srinivas Vaddi

    06/23/2022, 4:18 PM
    hi lil new here, I have created a pact using the junit5 library. How can I publish it to local pact broker? is there a way to do that without using the cli?
    m
    • 2
    • 2
  • m

    Madhulika Mitra

    06/24/2022, 9:26 AM
    Hi - Pact Gurus πŸ™‚ Is there a limit of interactions(tests) in pactflow. I tried with 1247 interactions and the test timed out .
    m
    • 2
    • 4
  • s

    Sandor Arpa

    06/24/2022, 9:31 AM
    πŸ‘‹ Hi everyone!
  • s

    Sandor Arpa

    06/24/2022, 9:33 AM
    Could you, please point me to the right channel? I've got an issue with NumberTypeMatcher where the matcher does not recognise a negative number as Integer πŸ€” Details in 🧡
    m
    • 2
    • 7
  • y

    Yousaf Nabi (pactflow.io)

    06/27/2022, 12:29 PM
    Happy Monday everybody ralph wave and welcome to our new joiners
  • r

    Rus Charuh

    06/27/2022, 12:31 PM
    πŸ‘‹ Hi everyone!
    party parrot 1
  • p

    Pramod Arjun Bhalerao

    06/27/2022, 12:55 PM
    πŸ‘‹ Hi everyone!
  • m

    Mike Geeves

    06/29/2022, 10:32 AM
    πŸ€” I'm looking at Pact message (in python specifically) and would like to get rid of the "...as there is no --provider-states-setup-url specified" warning and possibly add usage of states in somewhere. From a quick grep of "provider.states.setup.url" across pact-foundation and pactflow repos I can't find any examples (thought it was worth a try!) - it's used in "normal" http style Pact where the provider is spun up and the additional states endpoint can be spliced in somewhere, but I'm not sure how a nice pattern for message would look? Given the handler mapping approach for each of the provider states to implement, maybe it isn't actually necessary as this can be done via the defined handler itself? TLDR: does anyone have examples using provider states for message?
    m
    b
    y
    • 4
    • 64
  • q

    Qingyuan Liu

    06/30/2022, 9:35 AM
    Hi team, I'm wondering what is the difference between Kafka schema registry and pact message level contract testing. Is there any article about Pact message level contract?
  • a

    Abdurahman Hijazi

    07/04/2022, 10:38 AM
    Does anyone know how to generate a pact file through GH actions. I've written a yml script that runs the consumer tests to generate the pacts. The tests are passing, and it's saying pact files generated, but there's no files in my repo, does anyone know how to access the generated file? This is the script output
    Copy code
    API Pact test
    [2022-07-04 10:29:28.863 +0000] INFO (2056 on fv-az459-64): pact@9.17.3: Setting up Pact with Consumer "consumerv1.0.0" and Provider "provider"
        using mock service on Port: "1234"
        βœ” ID 12 exists
    [2022-07-04 10:29:28.889 +0000] INFO (2056 on fv-az459-64): pact@9.17.3: Pact File Written
    [2022-07-04 10:29:28.890 +0000] INFO (2056 on fv-az459-64): pact-node@10.17.4: Removing Pact process with PID: 2067
    [2022-07-04 10:29:28.892 +0000] INFO (2056 on fv-az459-64): pact-node@10.17.4: Deleting Pact Server with options: 
    {"timeout":30000,"consumer":"consumerv1.0.0","cors":false,"dir":"/home/runner/work/consumerpoc/consumerpoc/pacts","host":"127.0.0.1","log":"/home/runner/work/consumerpoc/consumerpoc/logs/pact.log","logLevel":"INFO","pactfileWriteMode":"overwrite","provider":"provider","spec":2,"ssl":false,"port":1234,"pactFileWriteMode":"overwrite"}
      1 passing (572ms)
    m
    m
    b
    • 4
    • 25
  • c

    Chris Williams

    07/04/2022, 1:26 PM
    OpenAPI3 spec file for the provider, and consumer contract generated via Montebank as per https://github.com/pactflow/example-bi-directional-consumer-mountebank
  • c

    Chris Williams

    07/04/2022, 4:02 PM
    Ohh, I worked out what the above error was caused by - it was the way that the results from the Mountebank mocker where being turned into a contract - so fixed it and opened a PR - https://github.com/pactflow/example-bi-directional-consumer-mountebank/pull/6
    m
    • 2
    • 3
  • v

    Vikki

    07/05/2022, 10:22 AM
    Hi there! I was wondering if anyone is using bi-directional contract testing with multiple providers sharing a single contract? I'll thread some context 🧡
    • 1
    • 1
  • h

    Hazem Borham

    07/05/2022, 10:07 PM
    πŸ‘‹ we just started to evaluate pactflow and i'm able to trigger webhook events to bitbucket thanks to the webhook template library. question. are there any resource guides available to trigger aws codebuild? does anyone have any experience triggering from pactflow to codebuild?
    πŸ€” 1
    m
    • 2
    • 3
  • h

    Harris Lee

    07/06/2022, 3:35 AM
    Hello question regarding
    --provider-states-setup-url
    , if somehow, we cannot create a seperate endpoint for provider state url, what is the alternative way? we can use real endpoint in
    before
    block to arrange test data then run tests? I would like to know how others are doing πŸ™‚
    m
    • 2
    • 5
  • j

    Jane Wheatley

    07/06/2022, 5:32 PM
    Hey Everyone, I am a QA at my company and new to Pact. Our company uses a microservice environment. Apparently, they tried to implement Pact in the past and it didn't catch on. I wanted to research a bit more to see if anything has changed. Here were some of the concerns that someone listed out for me from my company and I was hoping someone could help me understand if they are valid concerns still: β€’ its consumer-oriented design being inconvenient to work with β€’ Having services written in ruby, python, javascript and golang adds additional complexity. I believe there are pact libraries available for all of those languages, but I don't know anything about the non-ruby ones. β€’ It's not well-suited to APIs where we don't control both ends of the implementation, e.g. APIs we provide to clients
    j
    t
    +2
    • 5
    • 48
  • h

    Harris Lee

    07/07/2022, 5:59 AM
    Hello , quick question for provider state set up, I have tried to send request to deployed test server(provider) for testing v3 beta but it throw an error(Response for preflight has invalid HTTP status code 405) https://developer.mozilla.org/en-US/docs/Glossary/Preflight_request is the pact framework use a headless browser to send request? lol
    t
    m
    • 3
    • 46
  • f

    Fabio Biola

    07/09/2022, 10:58 AM
    Hello everyone! I asked about the development of a Flutter library on Twitter some days ago.. Matt can you please DM me so we can continue our conversation? Thanks
    πŸ‘‹ 1
    m
    • 2
    • 1
  • g

    Guillermo

    07/11/2022, 4:59 AM
    Hello everyone
  • g

    Guillermo

    07/11/2022, 4:59 AM
    I'm having an issue running a producer test
  • g

    Guillermo

    07/11/2022, 4:59 AM
    When I run it, I get dependency errors that I cannot mock
  • g

    Guillermo

    07/11/2022, 4:59 AM
    Does the Producer test run the entire app?
    m
    • 2
    • 4
  • r

    ritika arora

    07/11/2022, 5:08 AM
    Hi team I am facing a basic issue: 1. There are two consumers say pact-consumer and pact-consumer-b for same provider 2. When pact-consumer publishes new contract with tag T1, webhook triggers build for provider 3. When provider build runs, it verifies successfully contract between pact-consumer and provider with tag T1 but fails for pact-consumer-b and provider with tag T1(as expected) Below screenshot shows provider annotation where pactConsumerTag value is T1 sent by webhook as explained in thread
    b
    • 2
    • 10
  • a

    Alexandre

    07/11/2022, 3:27 PM
    Hello, Is there a way to test a consumer contract (as bi-directional contract) with a provider without publishing it to the broker ?
    j
    m
    • 3
    • 22
  • j

    J

    07/12/2022, 11:29 AM
    I have an issue running the pact-protobuf-plugin binary inside a Docker container. I'm using pactflow/pact-protobuf-plugin v0.1.7. When running Pact tests, the tests fail. I tracked this to the plug-in binary failing to start due to "Cannot assign requested address".
    Copy code
    # /root/.pact/plugins/protobuf-0.1.7/pact-protobuf-plugin
    Error: Os { code: 99, kind: AddrNotAvailable, message: "Cannot assign requested address" }
    This happens on the maven:3-openjdk-17-slim (and other maven images) and also on ubuntu:latest. I think there is an issue with the plug-in attempting to bind
    ::1
    , an IPv6 address, which is not supported in containers by default. Is there a workaround for getting the pact-protobuf-plugin binary to listen on a different localhost address? I need to be able to run Pact tests inside a container as part of a build pipeline.
    r
    m
    • 3
    • 6
  • s

    Sahil Jain

    07/12/2022, 1:10 PM
    Hello Everyone. I am bit new to Contract testing and recently started exploring it for consumer driven contract testing in Android App. The use case I am trying to solve is to generate pact file while i am running my UI Tests in Android app. My Android app makes multiple API requests to our backend server which i have currently mocked the responses through "Wiremock" framework. The next step i want to do is to record all the interactions made by the app and create a pact file so as i can validate it against my reack backend server. In order to do so i have integrated "Wiremock Pact Generator" developed by Atlassian team : https://bitbucket.org/atlassian/wiremock-pact-generator/src/master/ but i am facing crash while running my UI tests.
    Copy code
    com.github.tomakehurst.wiremock.servlet.WireMockHandlerDispatchingServlet.service(WireMockHandlerDispatchingServlet.java:108)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
         at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
         at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
         at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
         at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
         at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
         at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
         at org.eclipse.jetty.servlets.gzip.GzipHandler.handle(GzipHandler.java:479)
         at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
         at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
         at org.eclipse.jetty.server.Server.handle(Server.java:499)
         at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
         at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:258)
         at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
         at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
         at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
         at java.lang.Thread.run(Thread.java:784)
     Caused by: java.nio.file.NoSuchFileException: target/pacts/the-consumer-the-provider-febea806-232d-4527-bacb-d501e5048f78-pact.json
         at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
         at java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434)
         at java.nio.file.Files.newOutputStream(Files.java:216)
         at java.nio.file.Files.write(Files.java:3292)
         at com.atlassian.ta.wiremockpactgenerator.pactgenerator.LocalFileSystem.saveFile(LocalFileSystem.java:14)
         at com.atlassian.ta.wiremockpactgenerator.pactgenerator.PactSaver.saveFile(PactSaver.java:39)
       ... 24 more
    Can someone please help why its not able to save pact file? or i am doing something wrong here. Thanks in Advance.
    r
    m
    • 3
    • 3
1...567...18Latest