Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bestpractical/rt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Brandt <jbrandt@bestpractical.com>2019-06-26 21:58:50 +0300
committerJim Brandt <jbrandt@bestpractical.com>2019-06-26 21:58:50 +0300
commit5b5d8bd7d958369729c046695a683cf16bf9b46e (patch)
treeb9c44f442f45f3efdbe502c1d7b06386c0c77a94
parent396c91b42e2b65ca86eb1579570061a7297151ff (diff)
Update tests with new parse failure log message4.4/ticket-create-from-email-error
-rw-r--r--t/mail/header-characters.t9
1 files changed, 6 insertions, 3 deletions
diff --git a/t/mail/header-characters.t b/t/mail/header-characters.t
index 38a04b5df8..6bc9e95d83 100644
--- a/t/mail/header-characters.t
+++ b/t/mail/header-characters.t
@@ -20,7 +20,8 @@ here's some content
my ($status, $id);
warnings_like { ( $status, $id ) = RT::Test->send_via_mailgate($mail) }
[(qr/Unable to parse an email address from/) x 2,
- qr/Couldn't parse or find sender's address/
+ qr/Couldn't parse or find sender's address/,
+ qr/Couldn't parse or find sender's address: Couldn't parse or find sender's address in email headers/
],
'Got parse error for non-ASCII in From';
TODO: {
@@ -44,7 +45,8 @@ here's some content
my ($status, $id);
warnings_like { ( $status, $id ) = RT::Test->send_via_mailgate($mail) }
[(qr/Unable to parse an email address from/) x 2,
- qr/Couldn't parse or find sender's address/
+ qr/Couldn't parse or find sender's address/,
+ qr/Couldn't parse or find sender's address: Couldn't parse or find sender's address in email headers/
],
'Got parse error for iso-8859-1 in From';
TODO: {
@@ -66,7 +68,8 @@ here's some content
my ($status, $id);
warnings_like { ( $status, $id ) = RT::Test->send_via_mailgate($mail) }
- [qr/Couldn't parse or find sender's address/],
+ [qr/Couldn't parse or find sender's address/,
+ qr/Couldn't parse or find sender's address: Couldn't parse or find sender's address in email headers/],
'Got parse error with no sender fields';
is( $status >> 8, 1, "The mail gateway failed" );
ok( !$id, "No ticket created" );