2021-06-01 12:20:20 +00:00
|
|
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
2018-09-11 14:57:48 +00:00
|
|
|
FactoryBot.define do
|
|
|
|
factory :postmaster_filter do
|
2020-06-22 09:57:45 +00:00
|
|
|
sequence(:name) { |n| "Test PostmasterFilter #{n}" }
|
2019-03-27 09:01:36 +00:00
|
|
|
channel { 'email' }
|
|
|
|
match { { 'from' => { 'operator' => 'contains', 'value' => 'a' } } }
|
|
|
|
perform { { 'x-zammad-ticket-tags' => { 'operator' => 'remove', 'value' => 'test2, test7' } } }
|
|
|
|
active { true }
|
|
|
|
created_by_id { 1 }
|
|
|
|
updated_by_id { 1 }
|
2018-09-11 14:57:48 +00:00
|
|
|
end
|
|
|
|
end
|