709 questions
1 vote
1 answer
60 views
Setting logLevel throws an exception
I attempted to start sbt with sbt -Dpact.logLevel=DEBUG and it threw a class-cast exception. [error] (pactVerify) java.lang.ClassCastException: class org.apache.logging.slf4j.Log4jLogger cannot be ...
1 vote
1 answer
44 views
How do I use Like or SomethingLike in a C# Pact test?
My very first Pact test validates that the response is 200 OK, but I'd like to add tests that verify the schema of the JSON response. It seems that like or maybe SomethingLike is the solution but I ...
1 vote
0 answers
46 views
Writing PACT tests using cucumber framework in Java
So far I have seen that PACT (contract) tests can be written using JUnit in Java. Is there any way it can also be written using cucumber framework in Java? Writing Java PACT tests using cucumber in ...
1 vote
1 answer
59 views
Is it possible to override a query parameter in Pact provider tests?
I have Pact tests for a Go service. One of the consumer pact scenarios sends a GET request with a query parameter uuidToken. The problem is that uuidToken in the database is an immutable field: it’s ...
2 votes
1 answer
105 views
Singleton pact flow mock server in Playwright fixture
I want to setup pact consumer tests using Playwright as test runner and language is Typescript. I want to spin up mock server once per worker and share it across all tests within worker. However it ...
1 vote
1 answer
71 views
Pact-net Messaging Pacts sample is not working
Sample code present in https://docs.pact.io/implementation_guides/net/docs/messaging-pacts is not working. Consumer part worked successfully but provider start showing error . I made sure Json path is ...
0 votes
0 answers
50 views
Contract testing for modifying regression suite and improve flaky test validation - Pact and Karate
We have an application and it consists of many api's that directly talks to the db and computes logic and send the response back to the view layer. It also connects with many microservices to get ...
0 votes
1 answer
28 views
Teardown the DB between interactions, not givens Pact.Net
I am writing Provider tests with .Net and Pact V4. I have several consumer tests (interactions) and on the provider side I use a DB. My question is, can I and how teardown the DB between interactions? ...
0 votes
0 answers
32 views
Pact Provider contract Verifier how do I only verify the first element of array and skip the rest o
I am using Pact contract testing for my website to check a mockDataObject if it up to date with the real response or not, mockDataObject will be use later for integration testing. The mockDataObject ...
1 vote
0 answers
38 views
Why does changing the order of calling a pure function change the result in Pact?
These two functions are identical, except the order that claimed2 appears is swapped. I have a function sum-claims which is a pure function, it does not write to the blockchain. (defun pretty-read-...
0 votes
0 answers
60 views
Running a Web API as a Process with a real tcp socket .NET
I am trying to run a test for my project that will need the whole API app to run by using process to start and run the application on a real TCP socket for eventual pact testing. The API seems to ...
0 votes
0 answers
34 views
DSL Method eachKeyMappedToAnArrayLike is not allowing array of dynamic size
I need to model below response using pact dsl Map<String, Collection<myObject>> responseBody; I tried below and I can see, I can expect dynamic key names using this. On consumer, I used ...
0 votes
0 answers
29 views
PACT framework didn't generate all test methods into .json file
My java class @Pact(consumer = "P01819-ipa-mi") public V4Pact tradesByFilterProductTypeFXFWD(PactBuilder builder) throws InterruptedException { return builder ...
0 votes
1 answer
70 views
Pulumi Terraform Provider reports required field missing that is definetely passed on
I'm trying to use the Pact Terraform Provider with Pulumi using the Terraform Provider for Pulumi. Setup worked fine, but as soon as I'm configuring anything else than the Provider, I'm getting an ...
1 vote
0 answers
129 views
Pact V4 migration with headers does not work
I am currently trying to move to V4 pacts. Currently I have this pact, which works @Pact(consumer = CONSUMER, provider = PROVIDER) RequestResponsePact provider(PactDslWithProvider builder) { return ...