Yunzhao Xu
12/08/2024, 1:00 PMMessageVerifier
and ProviderStateV3Response
cannot be found. Is there a problem with the document or my usage? Where should I look for a suitable example?Pietro Di Bello
12/17/2024, 11:22 AMKevser
01/06/2025, 3:39 PMWithRequest(http.MethodPost, url, func(b *consumer.V4RequestBuilder) {
b.Body(contentType, content)
}).
Error:
Mismatch with header 'Content-Type': Expected header 'Content-Type' to have value 'multipart/form-data;boundary=a76648f32eda23feef43a81954d35cbd782294c16f488baef7acbda53e32' but was 'multipart/form-data; boundary=325ce599ed0e830d149d04fa6be3c58835aa1bb7f8d31cb22d2514534999'
is there a way to use the Body method without specifying a contentType to avoid boundary mismatches? Thanks.Kevser
01/15/2025, 2:50 PMerr = mockProvider.
AddInteraction().
Given("a valid send log").
WithRequestPathMatcher(http.MethodPost, matchers.S(url), func(b *consumer.V4RequestBuilder) {
b.
Header("Content-Type", matchers.Like(contentType)).
MultipartBody(contentType, PactTaskID, "taskId").
MultipartBody("application/zip", zipFile, "file")
}).
GitHub
01/21/2025, 11:03 AMGitHub
01/21/2025, 11:54 AMGitHub
01/21/2025, 12:06 PMGitHub
01/21/2025, 4:00 PMRishav Singh
01/22/2025, 10:07 AM/usr/bin/ld: cannot find -lpact_ffi: No such file or directory
collect2: error: ld returned 1 exit status
can you please help to fix this ?Tom Lopez
01/22/2025, 4:04 PMGitHub
01/23/2025, 3:07 PMSudhir Meena
01/28/2025, 11:19 AMMatt (pactflow.io / pact-js / pact-go)
Sudhir Meena
01/28/2025, 12:28 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Dominic Plourde
01/30/2025, 7:48 PMpact_verifier: Failed to load pact - Failed to load pact from '<https://pact-broker.spatium-iot.com>': Error with the content of a HAL resource - Expected either a "*" or path identifier in path expression "$.query.$" at index 8
when we use one of those selector:
• DeployedOrReleased
• Environment
• Deployed
We tried a lot of possibilities, but only “Latest: true” works. since we have multiple environments, we also want DeployedOrReleased, which was working until recentlyRomain Létendart
01/31/2025, 4:56 PMFabian Noll
02/03/2025, 6:00 AM{
"providerName": "MQTTProducer",
"providerApplicationVersion": "1.0.0",
"success": true,
"verificationDate": "2025-02-03T05:54:37+00:00",
"testResults": [
{
"interactionId": "4502629169ea07b9fd7c9fd70c772553a1b4407d",
"success": true
}
],
"verifiedBy": {
"implementation": "Pact-Rust",
"version": "1.2.5"
},
"_links": {
"self": {
"title": "Verification result",
"name": "Verification result 201 for Pact between MQTTConsumer (1.0.1) and MQTTProducer",
"href": "<http://localhost:9292/pacts/provider/MQTTProducer/consumer/MQTTConsumer/pact-version/cd421621766dde56e9e01a0c8a8b47c4b5f63b40/verification-results/201>"
},
"pb:pact-version": {
"title": "Pact",
"name": "Pact between MQTTConsumer (1.0.1) and MQTTProducer",
"href": "<http://localhost:9292/pacts/provider/MQTTProducer/consumer/MQTTConsumer/pact-version/cd421621766dde56e9e01a0c8a8b47c4b5f63b40/metadata/Y3ZuPTEuMC4x>"
},
"pb:triggered-webhooks": {
"title": "Webhooks triggered by the publication of this verification result",
"href": "<http://localhost:9292/pacts/provider/MQTTProducer/consumer/MQTTConsumer/pact-version/cd421621766dde56e9e01a0c8a8b47c4b5f63b40/verification-results/201/triggered-webhooks>"
}
}
}
Devin Woods
02/05/2025, 8:58 PMUndefined symbols for architecture arm64:
"_pactffi_with_metadata", referenced from:
__cgo_b3f3fec7e6e1_Cfunc_pactffi_with_metadata in 000003.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Anyone ever see this before?Spencer
02/11/2025, 3:34 PMGitHub
03/06/2025, 7:15 PMDavid Gibson
03/07/2025, 10:52 AMDavid Gibson
03/07/2025, 10:54 AMMartin Mineo
03/07/2025, 1:16 PMGitHub
03/24/2025, 1:04 AMGitHub
03/24/2025, 1:34 AMSrinivas Nali
04/01/2025, 3:04 PMgo install <http://github.com/pact-foundation/pact-go/v2@latest|github.com/pact-foundation/pact-go/v2@latest>
fails, but if I remove @latest
, it works fine.
Would it be possible to document Go version compatibility in the README? That would be really helpful.
ThanksErich Zimmerman
04/01/2025, 9:35 PMYevhen Nosulko
05/02/2025, 9:45 AM@Pact(provider = PROVIDER, consumer = CONSUMER)
public RequestResponsePact operationalHealth(PactDslWithProvider builder) {
return builder
.given("IFE functionalHealth is Operational")
.uponReceiving("A request for IFE availability status Operational")
...
...
...
this will generate a contract where provider state is defined as an Array of Strings:
"interactions": [
{
"description": "A request for IFE availability status Operational",
"providerStates": [
{
"name": "IFE functionalHealth is Operational"
}
],
on the provider side we have a Provider test written in Golang with pact-go, snippet as follows:
StateHandlers: models.StateHandlers{
"IFE functionalHealth is Operational": func(setup bool, ps models.ProviderState) (models.ProviderStateResponse, error) {
...
...
...
and the problem is when I run this test it doesn't seem to read the provider states at all because when I tried to pusposely break it it was still passing.
I went ahead and created a similar consumer test in Golang, like this:
mockProvider.
AddInteraction().
Given("IFE functionalHealth is Operational").
UponReceiving("A request for IFE availability status Operational").
...
...
...
...
after running this test I got the contract JSON where provider state is defined as String:
"interactions": [
{
"description": "A request for IFE availability status Operational",
"providerState": "IFE functionalHealth is Operational",
this contract is then consumed and parsed correctly by provider test because when I try to break it I see a corresponding provider state failing.
Are you guys aware of similar issues? If so how do I go about addressing it? Thank you in advance.