Pact is a cross-language tool that provides Consumer Driven Contracts testing.
Questions tagged [pact-java]
42 questions
0
votes
1 answer
How to generate mock server for pact consumer from contract json file?
I want to use contract file from provider to run tests against consumer.
I have
{
"provider": {
"name": "Provider"
},
"consumer": {
"name": "Consumer"
},
"interactions": [
{
"description": "Get data",
"request": {
…

Stepan
- 41
- 2
- 7
0
votes
1 answer
multiple pact version support from PACT-Broker
I am using JUnit for generating Pacts and Pacts maven plugin to post the pact into pact broker.
I am using below plugin Configuration
au.com.dius
…

Shirshendu Saha
- 17
- 3
0
votes
2 answers
In PactBroker, When i will get the data in "Last Verified" column - New PactBroker Version
In PactBroker, When i will get the data in "Last Verified" column.
Image : Pact Broker - New Version
Am using Maven plugin to verify with provider,
mvn pact:verify
Plugin:
groupId: au.com.dius
artifactId: pact-jvm-provider-maven_2.11
version:…

Nandess
- 25
- 1
- 10
0
votes
1 answer
PACT-JVM problems with closeArray
So I'm only starting to use JVM-PACT.
I'm trying to crate this JSON
{
"elements": [
{
"Location": {
"id": "loc_id1",
"Addr": {
"Addr1": {
"value": "545 Test Street"
},
"City": {
…

Tommy
- 1
- 1
0
votes
1 answer
PACT: java-maven
I need few answer for my doubt:
Pact-mock-service Vs pact-jvm-server, is both are same? Pls describe this.
Am implementing the PACT in java-maven
I can able to run…

Nandess
- 25
- 1
- 10
0
votes
1 answer
PACT DSL .closeObject to format hierarchical, PACT file interaction, response
I not able to use the PACT DSL .closeObject() to format a PACT interaction response. I'm asking for suggestions to make this work or asking if .closeObject() is not working as intended? I have a Shopping cart with 2 items. When I try to format the…

Pamela Wilson
- 1
- 2
0
votes
2 answers
Using Pact Broker
Can someone point me in detail as for how to publish JSON pacts in step by step to Pact Broker?
Have installed docker, dius/pack_broker and well as Postgres (brew installation).
Missing the point of mending all the above in a proper way and the…

Janani Sampath Kumar
- 593
- 1
- 6
- 11
0
votes
1 answer
pact HTTP message consumer
I have a relationship between two components/microservices where component A sends events by HTTP to component B. In a traditional pact HTTP consumer/provider pattern, A is the consumer of B since A is sending the request and B is responding.…

Joel Andersson
- 239
- 2
- 7
0
votes
1 answer
How to have tests distributed across classes at provider end for same consumer
I have a scenario where my provider service provides 3 functionalities. At consumer end I have 3 different classes to write tests for these 3 functionalities. When pact file is generated, it encompasses all the tests with same consumer-provider…

Aniket Gadre
- 1
- 1
0
votes
2 answers
pact-jvm Consumer Pact Test
I'm new to pact. My project is Java project. I read through pact documentation and found the github project https://github.com/DiUS/pact-jvm/tree/master/pact-jvm-consumer-junit
I imported it in my eclipse IDE.
I'm stuck from here.
1. Which test to…

sandstone
- 1
- 2
0
votes
1 answer
Missing 'PactFragment' in package au.com.dius.pact.model
I am new to Pact.
I downloaded the code from Github, "pact-jvm" project.
I created a new project in IntelliJ from "existing source" with Gradle setting.
It imported all the packages fine.
However, when I tried running some of the tests in it, I got…

Eric
- 181
- 1
- 7
0
votes
1 answer
Use Pact and JUnit to test SSL secured API
I am trying to implement pact tests between two of our server systems, but unfortunately I am struggling with implementing the consumer tests:
I included the pact-jvm-consumer-junit_2.11 artifact and created a provided like this using a…

Nitek
- 2,515
- 2
- 23
- 39