[Rt-commit] rt branch, 4.2/smime-v2, updated. rt-4.0.4-349-g2d9294d
Jason May
jasonmay at bestpractical.com
Fri Dec 30 18:43:52 EST 2011
The branch, 4.2/smime-v2 has been updated
via 2d9294d4fb01069cadcb0495e5f1e47fb225459e (commit)
via 93cf069b2b8cf2e42ebcdc9db366a41c60b03668 (commit)
from be31ec9a0aabf815b2041b9f33ea645b6b65458c (commit)
Summary of changes:
t/mail/smime/incoming.t | 2 +-
t/mail/smime/outgoing.t | 2 +-
t/mail/smime/realmail.t | 18 +++++++++++++++++-
3 files changed, 19 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit 93cf069b2b8cf2e42ebcdc9db366a41c60b03668
Author: Jason May <jasonmay at bestpractical.com>
Date: Fri Dec 30 14:37:00 2011 -0500
Create the SMIME key CF
This silences warnings about the missing 'SMIME Key' custom field.
diff --git a/t/mail/smime/realmail.t b/t/mail/smime/realmail.t
index 1d710c4..fb45c00 100644
--- a/t/mail/smime/realmail.t
+++ b/t/mail/smime/realmail.t
@@ -2,7 +2,7 @@
use strict;
use warnings;
-use RT::Test tests => 89;
+use RT::Test tests => 92;
my $openssl = RT::Test->find_executable('openssl');
plan skip_all => 'openssl executable is required.'
@@ -34,6 +34,22 @@ RT->Config->Set( SMIME =>
);
RT->Config->Set( 'MailPlugins' => 'Auth::MailFrom', 'Auth::Crypt' );
+{
+ my $cf = RT::CustomField->new( $RT::SystemUser );
+ my ($ret, $msg) = $cf->Create(
+ Name => 'SMIME Key',
+ LookupType => RT::User->new( $RT::SystemUser )->CustomFieldLookupType,
+ Type => 'TextSingle',
+ );
+ ok($ret, "Custom Field created");
+
+ my $OCF = RT::ObjectCustomField->new( $RT::SystemUser );
+ $OCF->Create(
+ CustomField => $cf->id,
+ ObjectId => 0,
+ );
+}
+
RT::Test->import_smime_key('root at example.com');
RT::Test->import_smime_key('sender at example.com');
commit 2d9294d4fb01069cadcb0495e5f1e47fb225459e
Author: Jason May <jasonmay at bestpractical.com>
Date: Fri Dec 30 14:39:55 2011 -0500
Correct the test count in the SMIME tests
diff --git a/t/mail/smime/incoming.t b/t/mail/smime/incoming.t
index c4c5f3e..50aa382 100644
--- a/t/mail/smime/incoming.t
+++ b/t/mail/smime/incoming.t
@@ -2,7 +2,7 @@
use strict;
use warnings;
-use RT::Test tests => 19;
+use RT::Test tests => 21;
my $openssl = RT::Test->find_executable('openssl');
plan skip_all => 'openssl executable is required.'
diff --git a/t/mail/smime/outgoing.t b/t/mail/smime/outgoing.t
index b108456..d0a9407 100644
--- a/t/mail/smime/outgoing.t
+++ b/t/mail/smime/outgoing.t
@@ -2,7 +2,7 @@
use strict;
use warnings;
-use RT::Test tests => 14;
+use RT::Test tests => 15;
my $openssl = RT::Test->find_executable('openssl');
plan skip_all => 'openssl executable is required.'
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list