[Rt-commit] rt branch, 4.2/smime-test-on-fastcgi, created. rt-4.1.23-222-gdfc4d63
Alex Vandiver
alexmv at bestpractical.com
Wed Oct 2 12:14:53 EDT 2013
The branch, 4.2/smime-test-on-fastcgi has been created
at dfc4d639fd3208726d9c35b03cf3f11afa5c82c1 (commit)
- Log -----------------------------------------------------------------
commit dfc4d639fd3208726d9c35b03cf3f11afa5c82c1
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Wed Oct 2 12:14:35 2013 -0400
Set RejectOnUnencrypted explicitly, for fastcgi tests
Fiddling the config at runtime does not propagate to the
RT_SiteConfig.pm file on disk, which is what the fastcgi tests use.
Using the explicit config argument to the test module properly
configures the Crypt setting in the fastcgi child.
diff --git a/t/mail/smime/reject_on_unencrypted.t b/t/mail/smime/reject_on_unencrypted.t
index 8987a7d..f8d61ad 100644
--- a/t/mail/smime/reject_on_unencrypted.t
+++ b/t/mail/smime/reject_on_unencrypted.t
@@ -1,15 +1,13 @@
use strict;
use warnings;
-use RT::Test::SMIME tests => undef;
+use RT::Test::SMIME tests => undef, config => 'Set( %Crypt, RejectOnUnencrypted => 1 );';
my $test = 'RT::Test::SMIME';
use IPC::Run3 'run3';
use String::ShellQuote 'shell_quote';
use RT::Tickets;
-RT->Config->Get('Crypt')->{'RejectOnUnencrypted'} = 1;
-
my ($url, $m) = RT::Test->started_ok;
ok $m->login, "logged in";
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list