houdini/spec/factories/object_event_hook_configs.rb

17 lines
508 B
Ruby
Raw Normal View History

2021-02-09 01:37:47 +00:00
# frozen_string_literal: true
# License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE
FactoryBot.define do
factory :open_fn_config, class: ObjectEventHookConfig do
webhook_service { :open_fn }
configuration do
{
webhook_url: 'https://www.openfn.org/inbox/my-inbox-id',
headers: { 'x-api-key': 'my-secret-key' }
}
end
object_event_types { ['supporter.update'] }
end
end