Fixed routing issues.
This commit is contained in:
parent
ab0388df15
commit
8f9a67c966
1 changed files with 6 additions and 5 deletions
|
@ -158,7 +158,7 @@ class EmailHelperTest < ActiveSupport::TestCase
|
||||||
result = EmailHelper::Probe.inbound(
|
result = EmailHelper::Probe.inbound(
|
||||||
adapter: 'imap',
|
adapter: 'imap',
|
||||||
options: {
|
options: {
|
||||||
host: 'www.zammad.com',
|
host: 'www.znuny.com',
|
||||||
port: 993,
|
port: 993,
|
||||||
ssl: true,
|
ssl: true,
|
||||||
user: 'some@example.com',
|
user: 'some@example.com',
|
||||||
|
@ -167,7 +167,7 @@ class EmailHelperTest < ActiveSupport::TestCase
|
||||||
)
|
)
|
||||||
assert_equal('invalid', result[:result])
|
assert_equal('invalid', result[:result])
|
||||||
assert_equal('Connection refused!', result[:message_human])
|
assert_equal('Connection refused!', result[:message_human])
|
||||||
assert_equal('www.zammad.com', result[:settings][:options][:host])
|
assert_equal('www.znuny.com', result[:settings][:options][:host])
|
||||||
|
|
||||||
result = EmailHelper::Probe.inbound(
|
result = EmailHelper::Probe.inbound(
|
||||||
adapter: 'imap',
|
adapter: 'imap',
|
||||||
|
@ -273,8 +273,8 @@ class EmailHelperTest < ActiveSupport::TestCase
|
||||||
{
|
{
|
||||||
adapter: 'smtp',
|
adapter: 'smtp',
|
||||||
options: {
|
options: {
|
||||||
host: 'www.zammad.com',
|
host: 'www.znuny.com',
|
||||||
port: 25,
|
port: 26,
|
||||||
start_tls: true,
|
start_tls: true,
|
||||||
user: 'some@example.com',
|
user: 'some@example.com',
|
||||||
password: 'password',
|
password: 'password',
|
||||||
|
@ -284,7 +284,7 @@ class EmailHelperTest < ActiveSupport::TestCase
|
||||||
)
|
)
|
||||||
assert_equal('invalid', result[:result])
|
assert_equal('invalid', result[:result])
|
||||||
assert_equal('Connection refused!', result[:message_human])
|
assert_equal('Connection refused!', result[:message_human])
|
||||||
assert_equal('www.zammad.com', result[:settings][:options][:host])
|
assert_equal('www.znuny.com', result[:settings][:options][:host])
|
||||||
|
|
||||||
result = EmailHelper::Probe.outbound(
|
result = EmailHelper::Probe.outbound(
|
||||||
{
|
{
|
||||||
|
@ -399,6 +399,7 @@ class EmailHelperTest < ActiveSupport::TestCase
|
||||||
email: mailbox_user,
|
email: mailbox_user,
|
||||||
password: mailbox_password,
|
password: mailbox_password,
|
||||||
)
|
)
|
||||||
|
puts "Result #{result.inspect}"
|
||||||
assert_equal('ok', result[:result])
|
assert_equal('ok', result[:result])
|
||||||
assert_equal('arber.znuny.com', result[:setting][:inbound][:options][:host])
|
assert_equal('arber.znuny.com', result[:setting][:inbound][:options][:host])
|
||||||
assert_equal('arber.znuny.com', result[:setting][:outbound][:options][:host])
|
assert_equal('arber.znuny.com', result[:setting][:outbound][:options][:host])
|
||||||
|
|
Loading…
Reference in a new issue