X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Ft%2Fmail%2Fgnupg-reverification.t;h=06c2e0d4008f54c151802cc08fbbfaba0a736444;hb=31dfca5cd65c92b9dce0af6d41db394b17ac0bf4;hp=deef1ec245b3b461240e1e59e0b6ffc7139c3f9f;hpb=45d35d5739d05e602bc317739485693e0e9ff0b5;p=freeside.git diff --git a/rt/t/mail/gnupg-reverification.t b/rt/t/mail/gnupg-reverification.t index deef1ec24..06c2e0d40 100644 --- a/rt/t/mail/gnupg-reverification.t +++ b/rt/t/mail/gnupg-reverification.t @@ -1,7 +1,7 @@ use strict; use warnings; -use RT::Test::GnuPG tests => 232, gnupg_options => { passphrase => 'rt-test' }; +use RT::Test::GnuPG tests => undef, gnupg_options => { passphrase => 'rt-test' }; diag "load Everyone group"; my $everyone; @@ -46,8 +46,7 @@ foreach my $file ( @files ) { is $status >> 8, 0, "$eid: the mail gateway exited normally"; ok $id, "$eid: got id of a newly created ticket - $id"; - like($warnings, qr/Had a problem during decrypting and verifying/); - like($warnings, qr/public key not found/); + like($warnings, qr/Public key '0xD328035D84881F1B' is not available/); my $ticket = RT::Ticket->new( RT->SystemUser ); $ticket->Load( $id ); @@ -62,12 +61,10 @@ foreach my $file ( @files ) { $m->content_like(qr/This is .*ID:$eid/ims, "$eid: content is there and message is decrypted"); $m->next_warning_like(qr/public key not found/); - $m->next_warning_like(qr/above error may result from an unconfigured RT\/GPG/); # some mails contain multiple signatures if ($eid == 5 || $eid == 17 || $eid == 18) { $m->next_warning_like(qr/public key not found/); - $m->next_warning_like(qr/above error may result from an unconfigured RT\/GPG/); } $m->no_leftover_warnings_ok; @@ -90,3 +87,5 @@ foreach my $id ( @ticket_ids ) { $m->no_warnings_ok; } +undef $m; +done_testing;