Webhook Testing

49 views
Skip to first unread message

Conrad Fuhrman

unread,
Apr 5, 2013, 11:51:05 PM4/5/13
to brewer...@googlegroups.com
Is there anyway to test send a post to the webhook Ive registered, rather than waiting for one to occur? I would love to be able to test some of the processes and sample data that might be sent so I can set up local jobs to organize the data after the fact.

Thanks again!
Conrad

Steven Harman

unread,
Apr 6, 2013, 9:53:49 AM4/6/13
to brewer...@googlegroups.com
When initially setting up web hooks for http://brewdega.com, I registered a http://requestb.in/ URL to collect a few web hook POSTs from BreweryDB.com. I then inspected those POSTs and created several Rspec request specs to mimic those web hooks. After that it was a simple matter of driving out my code to make the tests pass.

When I finally enabled the hooks in production, they worked without a hitch!

I'm not sure what stack you're on, but hopefully your test framework of choice has a way to do lower-level HTTP API tests.

-- 
Steven Harman
--
You received this message because you are subscribed to the Google Groups "Brewery DB API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brewerydb-ap...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages