Skip to content
Permalink
Browse files

Fixed mail delivery postmaster to sender test.

  • Loading branch information...
zammad-sync committed Sep 9, 2019
1 parent 33bef71 commit 37687e32a114d0d62bbcef1092d09184ec81b835
Showing with 6 additions and 2 deletions.
  1. +5 −1 test/integration/email_deliver_test.rb
  2. +1 −1 test/integration/email_postmaster_to_sender.rb
@@ -11,12 +11,16 @@ class EmailDeliverTest < ActiveSupport::TestCase
raise "Need MAIL_SERVER_ACCOUNT as ENV variable like export MAIL_SERVER_ACCOUNT='user:somepass'"
end

if ENV['MAIL_SERVER_EMAIL'].blank?
raise "Need MAIL_SERVER_EMAIL as ENV variable like export MAIL_SERVER_EMAIL='someunitest@example.com'"
end

server_login = ENV['MAIL_SERVER_ACCOUNT'].split(':')[0]
server_password = ENV['MAIL_SERVER_ACCOUNT'].split(':')[1]

email_address = EmailAddress.create!(
realname: 'me Helpdesk',
email: "me#{rand(999_999_999)}@example.com",
email: "some-zammad-#{ENV['MAIL_SERVER_EMAIL']}",
updated_by_id: 1,
created_by_id: 1,
)
@@ -30,7 +30,7 @@ class EmailPostmasterToSender < ActiveSupport::TestCase

@email_address = EmailAddress.create!(
realname: 'me Helpdesk',
email: "me#{@test_id}@example.com",
email: "some-zammad-#{ENV['MAIL_SERVER_EMAIL']}",
updated_by_id: 1,
created_by_id: 1,
)

0 comments on commit 37687e3

Please sign in to comment.
You can’t perform that action at this time.