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

    Thomas

    04/18/2023, 6:43 AM
    Hello, does pactflow currently support "JSON:API" form https://jsonapi.org/? If not, could you please look at this issue and this feature request?
    m
    • 2
    • 13
  • t

    Timothy Jones

    04/19/2023, 10:29 AM
    Hello! I’m getting:
    Copy code
    * Configure separate http response provider pact verification build and webhook to trigger it when the pact content changes. See <https://docs.pact.io/go/webhooks>
    from Pactflow, even though the contract is verified. I think this is a bug, but it might be because I’m invoking it wrong, so I’m reporting here before opening an issue. I’ll put my request details in a thread:
    m
    • 2
    • 3
  • m

    Megha Agarwal

    04/19/2023, 10:32 AM
    hi Team, We are doing a POC using Pactflow in dotnet core application, we would like to know what other API testing tools we can use apart from schemathesis(licensed version). We are looking for free version.
    b
    m
    • 3
    • 2
  • r

    Ravinder Kadiyan

    04/20/2023, 10:10 AM
    Hi Team, We are trying to use the pactflow bidirection feature and struck on provider side verification result... We don't want to use any other external tool like schemathesis or newman... is it possible to write provider test using xunit (dotnet6) which can also generate the verification result. (provider test similar to whitebox component test, where we start the server inside the test and run test corresponding to it... )
    b
    m
    a
    • 4
    • 15
  • e

    Eddie Stanley

    04/23/2023, 11:57 PM
    Hey, Having some trouble publishing pact verification results.
    Copy code
    Publishing of verification results failed with an error: Link/Resource was not found - Request to pact broker path '/pacticipants/xyz.BFF' failed: 404 Not Found. URL: '<https://mycompany.pactflow.io/pacts/provider/xyz.BFF/consumer/prq.SPA/version/a29c9c63b2fc1cae4b8488b322b6fc7b02cd5ca1>'
    Code in question looks like this:
    Copy code
    verifierSource = provider.WithUriSource(_executionConfig.Pact.IncomingWebhook.PactUrl,
        webHookOptions => webHookOptions.TokenAuthentication(_executionConfig.Pact.Broker.Token)
            .PublishResults(optionalProviderVersion.IsSome,
                optionalProviderVersion.Match(v => v, string.Empty),
                options => options
                    .WithProviderBranchIfSuppliedAndValid(_executionConfig)
                    .WithTeamcityBuildUrlIfSuppliedAndValid(_executionConfig.Teamcity))
    );
    Q1: Is the
    PactUrl
    somehow wrong? It's like this currently
    <https://mycompany.pactflow.io/pacts/provider/xyz.BFF/consumer/pqr.SPA/version/a29c9c63b2fc1cae4b8488b322b6fc7b02cd5ca1>
    Q2: What is the error message (
    Link/Resource was not found
    ) telling me? Q3: How do I arrange for this to throw an exception if publishing results fails rather than just logging this error?
    m
    • 2
    • 3
  • a

    Alicia (pactflow.io)

    04/24/2023, 12:48 AM
    ICYMI cool dog
    🎉 4
  • k

    Kerry McKeever

    04/24/2023, 5:46 PM
    Hey there! I have a new integration, and can see in Pactflow that my consumer and provider integration are added (albeit unverified, since only the new consumer pact has been uploaded to Pactflow so far). However, when I execute
    /pacts/provider/:provider/for-verification
    endpoint, it shows no pacts to verify. Does anyone know what could be causing this? I have verified the provider I'm passing in for
    :provider
    matches the actual provider shown in Pactflow:
    y
    • 2
    • 7
  • v

    vandana wadhwani

    04/24/2023, 6:34 PM
    Hi, I'm trying PactFlow on my local machine. But I'm not able publish my contract. The publish command: npm run pact:publish, throws error '.' is not recognized as an internal or external command
    m
    • 2
    • 1
  • v

    vandana wadhwani

    04/24/2023, 6:42 PM
    Any help for this is appreciated!!
  • n

    Noor Hashem

    04/25/2023, 3:09 AM
    Hi all! Quick question, in this repo for example-consumer in the makefile on line 9, where do I find the GITHUB_WEBHOOK_UUID. As well in the example-provider on lines 3 and 4 in the makefile where do I find the PACT_CHANGED_WEBHOOK_UUID and the CONTRACT_REQUIRING_VERIFICATION_PUBLISHED_WEBHOOK_UUID?
  • e

    Eddie Stanley

    04/25/2023, 10:36 PM
    can-i-deploy
    question: First: • We create a build of our consumer at version
    consumer-v1
    and publish the contracts • The provider verifies those contracts ✅ •
    can-i-deploy
    returns true • We release consumer version
    consumer-v1
    to the environment ` Then: • We create a build of our consumer at version
    consumer-v2
    and publish the contracts ◦ These contracts are slightly different to the previous version from
    consumer-v1
    • The provider verifies those contracts ✅ •
    can-i-deploy
    returns true • We release consumer version
    consumer-v2
    to the environment Later: • We revert the changes from the consumer, producing a new consumer version
    consumer-v3
    and publish the contracts ◦ The JSON for these contracts is identical to those published by
    consumer-v1
    Should
    can-i-deploy
    return
    true
    in this instance
    (assuming the provider hasn't been deployed)? Or does the provider need to explicitly verify this consumer version?
    t
    • 2
    • 9
  • s

    Sashi Kandru

    04/28/2023, 5:35 PM
    Hi Team, Does bi-directional testing support event-driven applications as well?
    m
    • 2
    • 3
  • s

    sasank kumar

    05/02/2023, 6:13 AM
    Though we didnt specific or use content-type displaying as mime type
    m
    • 2
    • 4
  • m

    Milda

    05/02/2023, 8:40 AM
    hi all, can someone please tell me the broker api endpoints (HAL) for uploading open api specs and recording deployments? can't seem to find docs on that. Thanks! thankyou
    m
    y
    • 3
    • 10
  • v

    vandana wadhwani

    05/02/2023, 10:40 PM
    Hi, I'm trying to implement a test flow for birectional testing and I'm following the dotnet project example: https://github.com/pactflow/example-bi-directional-provider-dotnet I've created my own api using .net web api template for minimal webapi option. I'm not able to run verify_swagger step in there. I'm getting error: Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 489, in send resp = conn.urlopen( File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen retries = retries.increment( File "/usr/local/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='host.docker.internal', port=9000): Max retries exceeded with url: /swagger/v1/swagger.json (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fe8c34912d0>: Failed to establish a new connection: [Errno 111] Connection refused')) I'm new to docker, do I need to replace url http://host.docker.internal:9000/swagger/v1/swagger.json with my localhost url? I tried that as well, and I'm still getting same error error. Any idea what can be done here? requests.exceptions.ConnectionError: HTTPSConnectionPool(host='localhost', port=7039): Max retries exceeded with url: /swagger/v1/swagger.json (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f47ec6bf460>: Failed to establish a new connection: [Errno 111] Connection refused')) When I tried to run publish EXIT_CODE=0 make publish_provider_contract step, I'm getting error PactBlogsApi/swagger.json \ --provider "blogs-provider" \ --provider-app-version f4c421b-main+f4c421b.SNAPSHOT.USSCOL28H27D3 \ --branch main \ --content-type application/yaml \ --verification-exit-code=0 \ --verification-results report.txt \ --verification-results-content-type text/plain\ --verifier schemathesis docker: Error response from daemon: the working directory 'C:/repos/pact-research-api/pactblogsapi' is invalid, it needs to be an absolute path. See 'docker run --help'. make: * [Makefile57 publish_provider_contract] Error 125 Can you suggest what can be done here?
    • 1
    • 1
  • c

    Cody Jenkins

    05/03/2023, 5:13 AM
    I'm seeing some strange behaviour running Pact in my CI. Everything was working fine yesterday, but for some reason today the client is not able to fetch the pacts from the broker. It's coming back with a 400 response. Logs in the thread 🧵
    m
    • 2
    • 35
  • v

    vandana wadhwani

    05/03/2023, 4:29 PM
    Hi, I'm trying to publish my contract using local cli ../pact/bin/pactflow.bat publish-provider-contract \ swagger.json \ --broker-base-url <<My Pacthflow host>> \ --broker-token "<<Token>>" \ --provider "pactblogsapi" \ --provider-app-version 3a0994c \ --branch pactblogsapi-main \ --content-type application/yaml \ --verification-exit-code=0 \ --verification-results report.txt \ --verification-results-content-type text/plain \ --verifier Schemathesis I'm getting error making request to https://compworld.pactflow.io/contracts/provider/pactblogsapi/version/3a0994c status=400 {"errors":{"verificationResults.content":["must be filled"]}} The file report.txt contrains verification result. Any suggestion to fix this?
    y
    • 2
    • 11
  • a

    Adam Cox

    05/05/2023, 8:33 AM
    Hi, Is it possible from the pactflow UI to get contact details for a given participant? When contract verfication fails developers on either team would like to easily be able to find out who they should talk to. I had a quick look around but I could not see anything in there that would support this at the moment.
    ralph wave 3
    y
    m
    • 3
    • 3
  • h

    Haiyang Huang

    05/09/2023, 9:52 AM
    Hi everyone, quick question for you, is there a limit on the number of environments in pactflow? Thanks!
    👋 1
    m
    • 2
    • 1
  • r

    Ravi L

    05/09/2023, 2:44 PM
    Hi All, would like to know that.., when we go for on premises PactFlow do we need to setup our own broker?? Can I have a comprehensive differences among on premises Vs SASS
    y
    m
    • 3
    • 3
  • s

    sasank kumar

    05/10/2023, 12:31 PM
    How to set environment dynamic in can-i-deploy in npm script
    y
    • 2
    • 1
  • s

    sasank kumar

    05/10/2023, 12:31 PM
    ?
  • j

    Jonatan Jaworski

    05/12/2023, 1:01 AM
    Hi! Does anyone know what the Secrets API contracts look like? There's no documentation in HAL for this endpoint, and I want to see what the contracts look like in order to programatically update tokens and store them in secrets. I know specifying teams is something that can be done because the Terraform resource uses the API under the hood.
    👋 1
    t
    y
    • 3
    • 8
  • j

    Jonatan Jaworski

    05/12/2023, 1:08 AM
    Looking forward to this, by the way!
    💯 2
    m
    • 2
    • 1
  • t

    Timothy Jones

    05/12/2023, 1:55 AM
    Where's the best place to put pactflow feature requests?
    j
    m
    • 3
    • 4
  • t

    Tatiana Shepeleva

    05/15/2023, 5:51 AM
    Hi! Is there a changelog on Pactflow releases? My team started getting some errors on cross verification results for bidirectional contracts, but all worked last week. I’m looking for the clues 🙏
    m
    v
    • 3
    • 14
  • y

    Yousaf Nabi (pactflow.io)

    05/16/2023, 10:01 AM
    Using
    pact-msw-adapter
    in your PactFlow bi-directional tests? You may want to cast your eyes over these PR's • https://github.com/pactflow/pact-msw-adapter/pull/92 • https://github.com/pactflow/pact-msw-adapter/pull/93 Thanks as always to our community contributors hug blob but its okay because theyre vaccinated
    🙌 2
  • t

    Tatiana

    05/16/2023, 4:42 PM
    Hi, did you encounter such error when you try to record deployment in PactFlow?
    Copy code
    This version of Pactflow does not support recording deployments, or you do not have the required permission to read environments. Please upgrade to the latest version if using Pactflow On-Premises, and ensure the user has the environment read permission.
    Record deployment works perfectly fine for my other repos but for one repo I have this error.
    m
    • 2
    • 6
  • t

    Tatiana

    05/17/2023, 1:14 PM
    Hi team, is there a way to download all provider contracts for a service from Pactflow?
    ✅ 1
    m
    b
    +2
    • 5
    • 15
  • a

    Alicia (pactflow.io)

    05/18/2023, 2:33 AM
    ICYMI 📖 🧑‍🎓 pactflow https://pact-foundation.slack.com/archives/C5F4KFKR8/p1684312200649979
1...910111213Latest