Mrigendra Ranjan
07/27/2022, 1:28 PMError: Error relocating /builds/app/node_modules/@pact-foundation/pact-core/build/Release/libpact_ffi.so: __vsnprintf_chk: symbol not found
I have tried with beta60 and beta62 as well but I don’t think its an issue with the version.Akash Sharma
07/28/2022, 7:51 AMpollet
07/28/2022, 2:46 PMYair Shkedi
07/29/2022, 1:17 PM[{ l1: fields[{k1, v1}] ,
l2: fields[]}
In other words, what about the case of API that has children that has attrbiute as value with array type, but some of the array could be an empty array, I think this is a common case
saw this post as well
https://stackoverflow.com/questions/61772433/how-to-verify-pact-when-data-returns-items-with-or-without-children-filled-in-o
and I understood the issue if min value would be 0, but from the other case, i think it is a common case that couldn’t be checked
2 -
How can I verify a request with a dynamic id (url param). I looked into the documentation, and didn’t see a way to do that.
For example, I have an api that generate some request and the response is the id, then I want to call to a get request, by the id (the id is a url param) (the id is created dynamically)Harris Lee
08/01/2022, 4:42 AMjest-pact
as well? https://github.com/pact-foundation/jest-pact/blob/pact-js-v3/README.md#pact-js-v3 what is right usage for jest-pact now?Harris Lee
08/01/2022, 5:36 AMthread '<unnamed>' panicked at 'index out of bounds: the len is 1 but the index is 1', pact_matching/src/headers.rs:22:45
what is meaning?Matt (pactflow.io / pact-js / pact-go)
Dmitry Munda
08/01/2022, 4:17 PMTimeout waiting for verification process to complete
i found this
https://docs.pact.io/slack/pact-js.html#1586998747.127100
do i get it right, i need something like this ?
return new MessageProviderPact({
...
timeout: 60000,
...
}).verify()
}
Dwiparna Pal
08/02/2022, 1:58 PMDwiparna Pal
08/03/2022, 3:27 PMQingyuan Liu
08/08/2022, 5:40 AMRemigijus Mažulis
08/08/2022, 5:45 AMLaura Cabantous
08/08/2022, 11:20 AMwith 30000 ms timeout for Pact
. I've tried to increase the timeout (quite significantly but it still fails with the same message).
Is there any way to check why it times out? It seems due to a promise that doesn't resolve...
Also it seems to be specifically when looking to get the provider to respond with status 400 🤔
Code snippet in 🧵Heera Singh
08/08/2022, 11:54 AM200
status and it worked well for me, my next task is to validate 401 Unauthorised
state, but my consumer test is failing https://codeshare.io/wnEOZD, could anyone point me to right direction.Arnon Ram
08/09/2022, 8:41 AMproviderState
to change the body (or part of it) of a POST request?
in the consumer side i add:
body: fromProviderState('${actualyPayload}', samplePayload),
and in the relevant stateHandler
on the provider side i added:
setup: () => {
return Promise.resolve({ actualPayload: payload });
},
But pact still seems to send the original payloadMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Heera Singh
08/09/2022, 9:08 AMproviderBaseUrl
in provider test by passing value directly process.env.BASE_URL
it does not recognize it, it says TypeError: Invalid URL
while passing url in string works https://codeshare.io/BAQW7b, any idea what I am missing.Abdurahman Hijazi
08/11/2022, 11:26 AMMatt (pactflow.io / pact-js / pact-go)
Adam Witko
08/11/2022, 2:26 PMcustomProviderHeaders: { [key: string]: string }
. Not a problem to swap from the v9 array to v10, but this then pumps out an error:Joel
08/12/2022, 6:59 AMwithRequest
method, I get a 500 from the mock server what makes debugging really hard (pushing this issue as it makes it hard to find out whats going on).
Is it intended to stick to PactV2 for GraphQL testing or is it possible to create a Pact with a body for the request with PactV3?
Just asking here to see if i missed something, otherwise I think I will open a issue with an example.Adam Witko
08/12/2022, 10:14 AMpublishVerificationResult
is false panic kermit ?Adam Witko
08/12/2022, 10:18 AM{
publishVerificationResult: false,
provider: 'delivery-promise-service',
providerBaseUrl: '<http://localhost:8000>',
providerVersion: '09fe6815',
providerBranch: 'DP-2086-state-handlers-for-rob-contracts',
pactBrokerUrl: '<https://pact-broker.dunelm.io/>',
enablePending: true,
consumerVersionSelectors: [
{ mainBranch: true },
{ deployedOrReleased: true },
{ matchingBranch: true }
],
customProviderHeaders: { 'x-apigateway-event': '""', 'x-apigateway-context': '""' }
}
Adam Witko
08/12/2022, 3:55 PMPrateek Madapurmath
08/15/2022, 1:17 AMconst provider = new PactV3({ consumer, provider, dir, port: 1234 })
describe('test 1', () => {
test('should pass', () => {
provider
.given('valid user session')
.uponReceiving('request')
.withRequest({
method: 'POST',
path: '/my-url',
headers: { custom_header },
body: reqBody
})
.willRespondWith({
status: 200,
headers: reponseHeaders,
body: like(exampleBody)
})
await provider.executeTest(async mockService => {
myApi.configureUrl(mockService.url)
const apiResp = await <http://myApi.post|myApi.post>({
headers: { custom_header },
data: reqBody,
})
})
})
})
however, the above test fails with The following request was expected but not received
and then it displays the request that I have defined under withRequest
i’m not sure what setup i got wrongMaxim Filimonov
08/16/2022, 7:59 AMV3Interaction
compatible with ApolloGraphqlInteraction
? I’m getting type errors:
Type 'ApolloGraphQLInteraction' is not assignable to type 'V3Interaction'.
Types of property 'uponReceiving' are incompatible.
Type '(description: string) => ApolloGraphQLInteraction' is not assignable to type 'string'.ts(2322)
Heera Singh
08/16/2022, 2:17 PMjest
with pact-js
and found when I try to run provider tests which has a wrong mapping with consumer contract file or contract file does not exist.
It still shows Test Suites
and Tests
as passed.
Of-course it does not show pact execution status (interaction, provider state, request, response) in run, but I was expecting Test Suites
and Tests
status as failed. Is there a way to achieve it? tried to see the logs as well but did not found any Error level logs there.Heera Singh
08/16/2022, 2:25 PM"completed": "2022-01-21T07:58:42.196238Z",
I used matcher like completed: Matchers.iso8601DateTimeWithMillis("2022-01-21T07:58:26.251019Z"),
to validate it.
In some cases it gives me value null
instead of date format string value. I know in pact we should try to get that state in provider states if we want to check exact case.
still looking if there is another way to validate it.