Basu Silviu
02/03/2023, 11:38 AMPACT_DO_NOT_TRACK
to true (similar to the way I am setting the pact.verifier.publishResults
to true which works). Unfortunately, I still get at build the message:
Please note: we are tracking events anonymously to gather important usage statistics like JVM version and operating system. To disable tracking, set the 'pact_do_not_track' system property or environment variable to 'true'.
which makes me believe it is not working. Is there another way of writing the PACT_DO_NOT_TRACK
(e.g. with dots)?
The Surefire looks like:
<systemProperties>
<property>
<name>pact.verifier.publishResults</name>
<value>true</value>
</property>
<property>
<name>PACT_DO_NOT_TRACK</name>
<value>true</value>
</property>
</systemProperties>
Thanks,Ondřej Hájek
02/06/2023, 10:53 AMcontract requiring verification published
which works nicely, except for one important scenario:
1. I make a pull request to my consumer, which changes the contract
2. My consumer pact tests pass and publish new pact to the broker
3. The provider verification job gets triggered, by the webhook
4. My can-i-deploy job correctly waits for the verification results and shows that I can’t deploy no sign
So far so good… but now I go to fix my provider according to the new contract and when I am done, the updated provider is merged, I want to go back to the PR for consumer and just restart the build and get Yesyes sign from can-I-deploy. This doesn’t work though, because the webhook is not triggered again. I understand, why it’s not triggered and I think I can solve it by using the contract published
event, but I don’t think that’s the best approach, is it? What am I missing? Thanks for any suggestions…Prashant singh
02/06/2023, 4:03 PMGeetika Joshi
02/08/2023, 6:16 AMJeroen Lamain
02/08/2023, 12:02 PMPallavi Anirban Bose
02/08/2023, 1:21 PMKerry McKeever
02/10/2023, 9:54 PMService A (consumer)
and Service B (provider)
. However, in this particular test, and for the particular endpoint we're exercising, Service B (provider)
makes an additional call to its own provider, Service C
.
My question is: Has anyone encountered this and worked out a solution where you can still run the contract test with Service B (provider)
running in isolation, without the need for Service C
to be running concurrently?Greg Tyler
02/13/2023, 8:57 AM--format RspecJunitFormatter --out /output/junit.xml
. When I do a verification against multiple consumers, I would hope this would create a single JUnit file of the combined results, but it seems to overwrite the file for each consumer, meaning in the end I only get the last-run consumer’s results. If any other consumers fail, I lose their JUnit output and can’t tell where the failure occurred. This results in failed pipelines without knowing what the error was.
Is it possible to either combine multiple consumer-runs into a single JUnit file? Or to output to a dir (--out-dir /output
) or multiple files (--out /outout/junit-{consumer}.xml
)?Basu Silviu
02/14/2023, 8:55 AM"providerStates" -> "name": "My services are up"
"interactions" -> "description": "Get Customer information Request",
But in the PactBroker the following string is displayed:
Get Customer information Request given my services are up
Basu Silviu
02/14/2023, 8:56 AMinteractions
respect the sensitivity but not the states
Constantin J.
02/15/2023, 4:09 PM.feature
files to control the 'given' behaviour of pact with the 'given' of cucumber - and in the end I call 'writePact' to get my output
The cucumber would execute selenium/puppeteer UI actions 🙂Bryen
02/16/2023, 4:54 PMgiven we make a request to this endpoint with these query params, we expect this EXACT response
sort of style, right?
Please feel free to correct me if I'm wrong on any of these assumptions, and thanks in advance! 🤗Kerry McKeever
02/16/2023, 9:17 PMcan-i-deploy
and record-deployment
for both, then it seems I will come to a stalemate since the pipeline changes would exist for both in the same commit, nothing is merged into the target branch, so there's nothing to verify can-i-deploy
against.
I assume I can do this across multiple PRs where I configure the consumer test
, provider test
, provider verification webhook
, and record-deployment
, let it deploy to my target branch, then configure can-i-deploy
? Or is there a preferred method of managing this in a monorepo?Yousaf Nabi (pactflow.io)
Geetika Joshi
02/24/2023, 7:19 AMAdam Cox
03/01/2023, 12:37 PMBasu Silviu
03/01/2023, 2:03 PMCyrus Devnomad
03/03/2023, 11:20 AMError Message:
System.InvalidOperationException : Unable to start mock server
Stack Trace:
at PactNet.Drivers.HttpPactDriver.CreateMockServer(String host, Nullable`1 port, Boolean tls)
at PactNet.PactBuilder.StartMockServer()
at PactNet.PactBuilder.VerifyAsync(Func`2 interact)
at MyConsumer.PactConsumer.MyConsumerPactTest.GetUsersByValidParam() in /pact/MyConsumer.PactConsumer/MyConsumerPactTest.cs:line 93
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
I'm not sure whether the source of this error is in Pact.NET library or in deeper non .NET pact libraries involved.
I have asked this question also in Pact.NET forum with a test project to reproduce the problem:
https://pact-foundation.slack.com/archives/C9UTHV2AD/p1676368784117769Yousaf Nabi (pactflow.io)
Adam Cox
03/03/2023, 3:05 PMSyed Muhammad Dawoud Sheraz Ali
03/03/2023, 3:59 PMJacob Waller
03/07/2023, 3:16 AMYousaf Nabi (pactflow.io)
RetroRocket
03/13/2023, 12:40 PMBrett Knapik
03/13/2023, 5:34 PMThomas K
03/14/2023, 12:34 PM"eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJhZy1zdGFnaW5nLW1vYmlsZUBhcHBzcG90LmdzZXJ2aWNlYWNjb3VudC5jb20iLCJhdWQiOiJodHRwczov" +
"L2lkZW50aXR5dG9vbGtpdC5nb29nbGVhcGlzLmNvbS9nb29nbGUuaWRlbnRpdHkuaWRlbnRpdHl0b29sa2l0LnYxLklkZW50aXR5VG9vbGtpdCIsImV4cCI6MTY0NjMxNjU5NywiaWF0Ij" +
"oxNjQ2MzEyOTk2LCJzdWIiOiJhZy1zdGFnaW5nLW1vYmlsZUBhcHBzcG90LmdzZXJ2aWNlYWNjb3VudC5jb20iLCJ1aWQiOiI0MTEwMDAzNyJ9.MLpkCQI5bOSmdJuneQdwChEYvXhkaig" +
"d4ouPOn5f2Rw"
that needs to match my jwt regex of private val jwtRegex = "^[A-Za-z0-9-_=]+\\.[A-Za-z0-9-_=]+\\.?[A-Za-z0-9-_.+/=]*\$"
most of the time in CI this is fine during pactPublish, but occasionally I get this annoying json parser error like below...
/usr/lib/ruby/gems/3.0.0/gems/json-2.6.2/lib/json/common.rb:216:in `parse': 859: unexpected token at 'nbGUuaWRlbnRpdHkuaWRlbnRpdHl0b29sa2l0LnYxLklkZW50aXR5VG9vbGtpdCIsImV4cCI6MTY0NjMxNjU5NywiaWF0IjoxNjQ2MzEyOTk2LCJzdWIiOiJhZy1zdGFnaW5nLW1vYmlsZUBhcHBzcG90LmdzZXJ2aWNlYWNjb3VudC5jb20iLCJ1aWQiOiI0MTEwMDAzNyJ9.MLpkCQI5bOSmdJuneQdwChEYvXhkaigd4ouPOn5f2Rw" (JSON::ParserError)
},
"headers": {
"Content-Type": "application/json; charset=UTF-8"
},
"matchingRules": {
"$.body.token": {
"match": "regex",
"regex": "^[A-Za-z0-9-_=]+\\\\.[A-Za-z0-9-_=]+\\\\.?[A-Za-z0-9-_.+/=]*$"
}
},
"status": 200
}
}
],
"metadata": {
"pact-jvm": {
"version": "4.3.5"
},
"pactSpecification": {
"version": "2.0.0"
}
},
"provider": {
"name": "OtacProviderService"
}
}
'
it doesn't happen 100% and I've tried countless things to fix it with my variable and my regex etc but it still pops up every so often, can anyone please give some guidance here 🙏 ?
im using kotlin so pact-jvm, apologies if wrong channel and then pact cli docker imageThomas K
03/14/2023, 12:36 PM\\\\
every so often when parsed 😕Adam Cox
03/14/2023, 2:51 PMstart_mock_server
function on the Plugin trait does not have a mutable reference to the Plugin struct and so I can’t store a reference to the server.
Is there some guidance I can get on how to implement this properly?Siddharth Gupta
03/20/2023, 8:19 AMKevin Grady
03/20/2023, 11:22 PMthe mockService property on the Pact class is no longer an actual MockService, but supports the baseUrl property for compatibility.
But I am seeing an error that mockService is not a known property of PactV3. What are my options here?