Wil Welsh
06/15/2020, 1:18 AMTimothy Jones
02/04/2022, 6:13 AMjest-pact
out of a git gist and into an npm package with nearly 70,000 weekly downloads, and of course my Pact-JS co-pilot @Matt (pactflow.io / pact-js / pact-go) for being an excellent co-pilot, engineer and friend. The whole team of maintainers have always been friendly and fun to work with through our many many discussions, agreements (and sometimes disagreements). The project is in good hands, and I think the Pact user base will only grow in the next few years - especially now that #CLS16AVEE is a thing, making it easier for new and enterprise users to get into Pact. Exciting times!
Thanks also to the many Pact users out in the wider community - especially the occasional contributors - shout out to @Artur Neumann for attention to detail and many many helpful PRs, and @Omer Morad for making things idomatic for Nest-JS users. The community of users and contributors keep the project alive, otherwise it would just be us maintainers. You make it all worth it!
Finally, when I took up the Pact-JS reins, it was only possible because of the work of the maintainers + contributors that came before me (Tarcio, Michel, and others). Thank you too, past team!
Even though I'm focussing on other projects, I still believe in the value that contract-testing with Pact brings to software development, and I'll keep using it (and probably will occasionally contribute PRs, who knows).
I'll still be around on slack, but I'll take a break for a month or two to enjoy the sunshine first 😎
Keep on Pacting, friends. Oh, and please remember to put your framework-specific issues in the right channel 🤔😆🥰Still
02/04/2022, 12:36 PM/spec/pacts
, but we have to create the directory right, and how do we configure that the pacts are stored there?Matt (pactflow.io / pact-js / pact-go)
Austin Reifsteck
02/07/2022, 10:39 PMDavid Van Couvering (DVC) - eBay
02/09/2022, 12:55 AMJames P
02/09/2022, 11:02 AMAgustin Gomes
02/09/2022, 1:31 PM<https://hub.docker.com/r/pactfoundation/pact-broker>
docker image?
• Free trial on https://pactflow.io?
• other option?
Would appreciate any feedback or input 🙂Cyrus Devnomad
02/10/2022, 1:51 PMDavid Van Couvering (DVC) - eBay
02/10/2022, 10:25 PMAntonio Gámiz Delgado
02/14/2022, 6:57 AM{
"consumer": "Consumer",
"state": "User exists and has resources",
"states": [
"User exists and has resources"
],
"params": {}
}
Oscar Vidal
02/16/2022, 8:51 AMStill
02/17/2022, 2:15 PMMatt (pactflow.io / pact-js / pact-go)
Kris Akins
02/19/2022, 3:54 PMPhongthorn
02/23/2022, 11:10 AM<class:CGIHandler>': incompatible character encodings: ASCII-8BIT and UTF-8 (Encoding::CompatibilityError)
JS: https://github.com/pact-foundation/pact-workshop-js
Anyone please help me to fix this 🙂Patrice Krakow
02/23/2022, 5:25 PM--provider-state-header-name
option of the pact-stub-server
in order to select one specific provider state in case multiple matching interactions are found" | https://github.com/patricekrakow/play-with-pact/blob/main/misc/select-provider-state.md
Sometimes, as a consumer, you want the API to return a different response for the exact same API request depending on the provider state. By default, when the pact-stub-server
received a request for which there are multiple matching interactions, it will just select the first one. However, you can specify the provider state you want via a custom HTTP header, I love it 🤩Matt (pactflow.io / pact-js / pact-go)
Patrice Krakow
03/02/2022, 11:38 AMDmitry Korolev
03/02/2022, 2:02 PMAdam Rodger (pact-net)
03/02/2022, 2:05 PMAncy Aziz
03/02/2022, 10:35 PMjson:"tags" pact:"example="Name::CustomerName","Status::Live""
not compatible with reflect.StructTag.Get: key:"value" pairs not separated by spaces`". JSON value is
"tags":["Name::CustomerName","Status::Live"]
Under Struct, this is what I have which is throwing error.
`Tags []string `json:"tags" pact:"example="Name::CustomerName","Status::Live""``
can someone tell me the correct format of pact:example for string[]?Sowjanya Malladi
03/03/2022, 9:40 PMAlan Boshier
03/07/2022, 6:29 PMZeus
03/08/2022, 8:48 AMBernard Baker
03/08/2022, 4:13 PMComputer says no ¯_(ツ)_/¯
There is no verified pact between version 2eaea58+1646755788 of pactflow-example-consumer and the version of pactflow-example-provider currently deployed to production (no such version exists)
But I don't want to verify the pactflow-example-provider
I only want to verify the new integration pactflow-example-provider-restassured
.Quinn
03/08/2022, 8:54 PMÉdouard Lopez
03/09/2022, 9:56 AM{
"level": 0,
}
But suddenly, they changed the level
value to 2
which broke our consumer. Is this something we should verify with a contract test?Joseph Woodward
03/09/2022, 1:02 PMSebastian Suarez
03/09/2022, 3:39 PMdescribe("Validate pact of identity", () => {
it("Validate pact of identity creation", () => {
let opts = {
providerBaseUrl: baseUrl.BASE_URL,
changeOrigin: true,
provider: "Create identity",
logLevel: "DEBUG",
pactUrls: [
path.resolve(
process.cwd(),
`./__tests__/contract/pacts/${identity_data.nameConsumerPactFile}-${identity_data.nameProviderPactFile}.json`
),
],
requestFilter: async (req, res, next) => {
req.headers["authorization"] = "Bearer UQiQPSG-MtD3mNHG0JZT2mqfBh1",
next()
},
consumerVersionTags: ["QA"],
providerVersionTags: ["QA"],
publishVerificationResult: false,
providerVersion: "1.0.0"
}
return new Verifier(opts).verifyProvider()
.then((res) => {
console.log('-------> here I need to get the response <-------', res);
}).catch((res) => {
console.log('Pact Verification FAIL!: Get identity ', res);
});
})
})