2021-06-01 12:20:20 +00:00
|
|
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
2018-07-11 09:01:54 +00:00
|
|
|
FactoryBot.define do
|
|
|
|
factory :http_log do
|
2019-03-27 09:01:36 +00:00
|
|
|
direction { 'in' }
|
|
|
|
facility { 'cti' }
|
2018-07-11 09:01:54 +00:00
|
|
|
add_attribute(:method) { 'post' }
|
2019-03-27 09:01:36 +00:00
|
|
|
url { 'https://zammad.fqdn.com/api/v1/integration/cti/log' }
|
2018-07-11 09:01:54 +00:00
|
|
|
request { { content: 'foo' } }
|
|
|
|
response { { content: 'bar' } }
|
2019-03-27 09:01:36 +00:00
|
|
|
created_by_id { 1 }
|
|
|
|
updated_by_id { 1 }
|
2018-07-11 09:01:54 +00:00
|
|
|
end
|
|
|
|
end
|