Édouard Lopez
04/21/2022, 2:18 PMLionello Lunesu
04/21/2022, 5:17 PMMarcello Rigan
04/25/2022, 8:11 AMManu Vereecken
04/25/2022, 12:17 PMPrabhakar
04/26/2022, 6:33 PMdanilchican
04/27/2022, 9:40 AMPORequired
.
It just doesn't build the pact test.
Does anyone can help me with that?
Issue on github will be created soon.Francisco González
04/27/2022, 11:32 AMContent-Type: multipart/related; type=\"application/json\"; boundary=myBoundary
• When parsing contracts quotes disappear on PACT Request Model
• But when it serializes the Request Model this is the generated header Content-Type: multipart/related; type=application/json; boundary=myBoundary
Marcello Rigan
04/27/2022, 2:59 PM@TestTemplate
@ExtendWith(PactVerificationInvocationContextProvider.class)
void pactVerificationTestTemplate(PactVerificationContext context) {
context.verifyInteraction();
}
to execute my provider test locally. Im using Provider Version 4.36, Junit 5. I wanted to try it out in a gitlab build, but the test wasnt executed. Is that a pipeline issue or am i missing something. +Alex Zuliqiaer
04/27/2022, 8:27 PMPavlo Sprogis
05/02/2022, 8:56 AM<http://au.com|au.com>.dius.pact.provider.junit
supports pact.provider.branch
system property? Now I’m using 4.1.17 and it ignores pact.provider.branch
valueJochen Kraushaar
05/03/2022, 9:31 AMbuilder.expectsToReceive("get entity", "core/interaction/http")
.with(Map.of("response.contents", Map.of(
"pact:content-type", "application/json",
"body", body
))).toPact()
What is the proper way to configure additional matching rules and generators for the response?
JsonContentMatcher
seems to only set the body. I may set the rules using "response.matchingRules.rules(body)"
, but setting the generators using "response.generators.categories(BODY)"
fails.
Thanks!Stefano Lucka
05/04/2022, 9:24 AMPrabhakar
05/05/2022, 12:25 AMBen Pilgrim
05/05/2022, 10:21 AMau.com.dius.pact.consumer:junit5
without au.com.dius.pact.provider:maven
?Slackbot
05/06/2022, 7:55 AMThomas Cederholm
05/09/2022, 2:59 PMpb:latest-provider-pacts
entry, and the test fails.
The Pact Broker version is 2.98.0
and the junit5 lib (au.com.dius.pact.provider:junit5
) is version 4.3.6
.
I would very much like some assistance as to where I should investigate...André Sousa
05/09/2022, 6:40 PMAndré Sousa
05/09/2022, 9:06 PMAndré Sousa
05/09/2022, 9:07 PMAkash
05/10/2022, 4:21 AMau.com.dius.pact.consumer:junit:4.2.20
on an android client and I keep running into a java.lang.AssertionError: expected:<200> but was:<500>
error. It’s unclear to me what’s causing the problem. I’ve found a similar issue that was opened in the past which is marked as resolved but probably isn’t.Akash
05/10/2022, 5:55 AMblah
of type array inside an array of objects in the response body on an API like so:
[
{
"id": "10bc2494-610c-4606-b169-0c33014757e9",
"blah": [
"testing 123",
"Testing, testing, 123..."
],
"type": "GENERIC"
}
]
While I can use:
DslPart dslPart = PactDslJsonArray.arrayEachLike()
.array("blah") // Undocumented at <https://docs.pact.io/implementation_guides/jvm/consumer/junit#building-json-bodies-with-pactdsljsonbody-dsl>
.closeArray()
.closeObject()
to validate the key blah
to be an array, I can’t seem to find a way to restrict the elements of the array to be of type String. Is this possible using the DSL? I’m using au.com.dius.pact.consumer:junit:4.2.20
.Francislainy Campos
05/10/2022, 8:10 AM<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<configuration>
<systemPropertyVariables>
<pact.provider.version>${project.version}</pact.provider.version>
<pact.verifier.publishResults>true</pact.verifier.publishResults>
<pactbroker.host><http://my.pactflow.io|my.pactflow.io></pactbroker.host>
</systemPropertyVariables>
</configuration>
</plugin>
And then
@RunWith(PactRunner.class)
@PactBroker(host = "<http://my.pact.dius.com.au|my.pact.dius.com.au>", consumers = {
"${pact.filter.consumers:NONE}" }, tags = { "${pact.consumer.tags:latest}" }, authentication = @PactBrokerAuth(token = "myToken"))
@uglyog I see you helped someone before with a similar error but on gradle? https://github.com/pact-foundation/pact-jvm/issues/902#issuecomment-506959822 Thank you.Guillermo
05/10/2022, 1:11 PMeachLike
with string values inside? It seems that I can only figure out how to add key pair string values to this array. I would like to achieve this : ["elem1", "elem2"]
instead of ["key" : "value".. etc]
Rejeesh Gangadharan
05/10/2022, 6:55 PMAlexander Gabay
05/11/2022, 12:48 PMGustavs
05/12/2022, 1:09 PMjava.lang.RuntimeException: java.lang.NoClassDefFoundError: org/antlr/v4/runtime/CharStreams
bstyle killa
05/12/2022, 6:51 PMJames Weng
05/12/2022, 11:52 PMGustavs
05/13/2022, 2:22 PMbstyle killa
05/13/2022, 3:32 PM