:wave: I have noticed in pactflow, whenever I use ...
# general
d
👋 I have noticed in pactflow, whenever I use
Test webhook
from the screenshot below, it always triggering more than 10 triggers, not sure why? It looks like a bug, can someone confirm?
y
I’ve raised this with the team, I’ve just tested out a webhook and got the same behaviour.
When you press test webhook, does the payload look correct? (does it have the right provider/consumer name in) is it the same webhook payload being repeated in your ci runs?
d
number of triggers happening only when we clicked on
test
, in CI we only see one trigger with the correct config with the repository_dispatch event on
main
y
so the webhook payload in the test execution window in PactFlow has the correct payload? when it triggers your CI build, it is triggered that build multiple times, with the same content? So your bug is test webhook triggers multiple executions (with correct content) and when the webhook is just triggered via CI, when a pact is published requiring verification (outside of the test webhook page), everything is working as expected?
d
Thats correct! As far as I know right now it only doing multiple triggers when i do manually as a
test
from pactflow, in CI it seems working fine
y
You can test your webhook without using the UI, via the following API call https://github.com/pactflow/example-provider/blob/44af7987b6a7bd992ec4b38f284c109765f45350/Makefile#L98 I have just trialled that out, and it is not duplicating the webhook calls
Hi Dilip, The duplication of requests from the UI has now been resolved. I appear to have an issue in our test environment where by webhooks are triggering for pairs I have not specified, I have raised it with the team. Feel free to try out the webhook behaviour from the UI and let us know how you get on
d
Hey @Yousaf Nabi (pactflow.io) can you help on this here
y
d
@Yousaf Nabi (pactflow.io) - It is complaining about this
Copy code
SPEC_OPTS='' /Users/dpunna/.rbenv/versions/3.3.5/bin/ruby -S pact verify --pact-helper /Users/dpunna/Documents/Projects/orders/spec/contract/service_consumers/pact_helper.rb
/Users/dpunna/.rbenv/versions/3.3.5/lib/ruby/gems/3.3.0/gems/pact-support-1.18.1/lib/pact/shared/dsl.rb:21:in `method_missing': undefined method `fail_if_no_pacts_found' for main (NoMethodError)
do i need install as gem?
y
have you installed the pact ruby gem? what version is installed?
d
Ah, i just updated the latest version and it seems working thanks