Matt (pactflow.io / pact-js / pact-go)
Tags []string `json:"tags" pact:"example="Name::CustomerName"
win
03/04/2022, 3:52 PMNo pacts found to verify
. This fails my test, what could be the causeAncy Aziz
03/09/2022, 3:51 AM[
{
"Body": {
"environments": [
{
"createdDate": "2020-05-20",
"id": "abc",
"name": "abc",
"state": "YES",
"tags": [],
"status": false
}
],
"nPageKey": "aabbgggcc==",
"pageSize": 1,
"totalCount": 1
},
"Header": {
"ResponseCode": 200,
"Region": "xyz"
}
}
]
Thomas K
03/09/2022, 8:54 AMMatt (pactflow.io / pact-js / pact-go)
Jeroen van Dijk
03/16/2022, 12:25 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Justin Berger
03/31/2022, 6:12 PM2022/03/31 11:24:39 [INFO] package libpact_ffi not found
2022/03/31 11:24:39 [INFO] downloading library from <https://github.com/pact-foundation/pact-reference/releases/download/libpact_ffi-v0.1.2/libpact_ffi-windows-x86_64.dll.gz> to /usr/local/lib/libpact_ffi.dll
2022/03/31 11:24:39 [ERROR] Your Pact library installation is out of date and we were unable to download a newer one for you: bad response code: 404
I tried manually downloading and copying the libpact_ffi.dll
and libpact_ffi.so
to C:\msys64\mingw64\lib
And it's running the tests now (got some failures to work out first)Matt (pactflow.io / pact-js / pact-go)
pact-mock-service version
in the same terminal you're running the tests?Guillaume Camus
04/06/2022, 1:58 PMWithJSONBody(Map{
"id": Integer(21),
"name": S("foo 2"),
"brand": S("bar 2"),
"price_incl_vat": Regex("23.125", "[0-9]+\\.[0-9]+"),
"price_excl_tax": Regex("18.185", "[0-9]+\\.[0-9]+"),
}).
but that generates a string and not a float, so when I unmarshal the response I have errors.
How I can generate a float ?Justin Berger
04/07/2022, 7:44 PMPublishing verification results back to the Pact Broker
Fetching path '/pacticipants/Notifications' from pact broker
Failed to push branch feature/pact-v2 for provider version 1.214.1-a2d64f325200e3b5931ce5e9623041dbd8f50773
Publishing of verification results failed with an error: Error with the content of a HAL resource - Request to pact broker URL '<https://paxi.pactflow.io/pacticipants/Notifications/branches/feature/pact-v2/versions/1.214.1-a2d64f325200e3b5931ce5e9623041dbd8f50773>' failed - HTTP status client error (404 Not Found) for url (<https://paxi.pactflow.io/pacticipants/Notifications/branches/feature/pact-v2/versions/1.214.1-a2d64f325200e3b5931ce5e9623041dbd8f50773>)
Jeroen van Dijk
04/14/2022, 8:39 AMProviderBranch
in https://github.com/pact-foundation/pact-go/blob/2.x.x/provider/verify_request.goGuillaume Camus
04/21/2022, 1:30 PMStateHandlers
but I don’t see how I can change the response status code. Do you have an example?Édouard Lopez
04/25/2022, 8:39 AMpact-go@2.x.x branch
. However, the pact-go
install command fails
pact-go -l DEBUG install
2022/04/25 10:40:43 [INFO] package libpact_ffi found
2022/04/25 10:40:43 [DEBUG] unable to determine current version of package libpact_ffi this is probably because the package is currently being installed
And the go test
command throws a ld
related error;
❯ go test ./...
? …/pact-consumer-b2c-example-for-go/cmd/pactgoconsumerexample [no test files]
? …/pact-consumer-b2c-example-for-go/cmd/pactgoconsumerexample/docs [no test files]
# <http://github.com/pact-foundation/pact-go/v2/internal/native|github.com/pact-foundation/pact-go/v2/internal/native>
/usr/bin/ld: cannot find -lpact_ffi
collect2: error: ld returned 1 exit status
FAIL …/pact-consumer-b2c-example-for-go/internal/b2b [build failed]
FAIL …/pact-consumer-b2c-example-for-go/internal/b2c [build failed]
FAIL
Matt (pactflow.io / pact-js / pact-go)
Nuno Frias
04/25/2022, 3:17 PMNewtoPact
04/25/2022, 8:09 PMÉdouard Lopez
04/26/2022, 9:01 AM"<http://github.com/pact-foundation/pact-go/v2/sugar|github.com/pact-foundation/pact-go/v2/sugar>"
and running the linter I got this error:
golangci-lint run --skip-dirs cmd/pactgoconsumerexample_tester
WARN [runner] Can't run linter goanalysis_metalinter: inspect: failed to load package sugar: could not load export data: no export data for "<http://github.com/pact-foundation/pact-go/v2/sugar|github.com/pact-foundation/pact-go/v2/sugar>"
ERRO Running error: 1 error occurred:
* can't run linter goanalysis_metalinter: inspect: failed to load package sugar: could not load export data: no export data for "<http://github.com/pact-foundation/pact-go/v2/sugar|github.com/pact-foundation/pact-go/v2/sugar>"
GitHub
05/20/2022, 12:31 PMNuno Frias
06/06/2022, 12:36 AMlet response = request.send()
.map_err(|err| anyhow!(err))
.and_then(native_response_to_pact_response)
.await?;
Nuno Frias
06/13/2022, 6:34 AM.WithMetadata
function only accepts fix values map[string]string
Nuno Frias
06/13/2022, 6:39 AMwin
06/13/2022, 3:14 PMwin
06/13/2022, 3:14 PMwin
06/13/2022, 3:14 PMMark Wilson
06/24/2022, 12:34 PM2022/06/24 11:08:29 [INFO] checking pact-mock-service within range >= 3.5.0, < 4.0.0
2022/06/24 11:08:29 [ERROR] CLI tools are out of date, please upgrade before continuing
FAIL <http://github.com/pact-foundation/pact-workshop-go/consumer/client|github.com/pact-foundation/pact-workshop-go/consumer/client> 0.002s
When I run "sudo pact-mock-service version" it returns 3.10.0
I am following the https://github.com/pact-foundation/pact-workshop-go/tree/step3 but stuck on the end of step3 and receiving the above issue. Any ideas?Ringo
06/27/2022, 12:49 PMMatt (pactflow.io / pact-js / pact-go)