[Rt-commit] r8515 - in rt/branches/3.7-EXPERIMENTAL-TUNIS: .
sartak at bestpractical.com
sartak at bestpractical.com
Mon Aug 13 13:54:22 EDT 2007
Author: sartak
Date: Mon Aug 13 13:54:22 2007
New Revision: 8515
Modified:
rt/branches/3.7-EXPERIMENTAL-TUNIS/ (props changed)
rt/branches/3.7-EXPERIMENTAL-TUNIS/t/mail/gnupg-realmail.t
Log:
r37369 at gorgoroth: sartak | 2007-08-13 13:53:50 -0400
Various test fixes
Modified: rt/branches/3.7-EXPERIMENTAL-TUNIS/t/mail/gnupg-realmail.t
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-TUNIS/t/mail/gnupg-realmail.t (original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/t/mail/gnupg-realmail.t Mon Aug 13 13:54:22 2007
@@ -8,7 +8,7 @@
use String::ShellQuote 'shell_quote';
use IPC::Run3 'run3';
-my $homedir = File::Spec->catdir( getcwd(), qw(lib t data crypt-gnupg-mail) );
+my $homedir = File::Spec->catdir( getcwd(), qw(lib t data crypt-gnupg-realmail) );
RT->Config->Set( LogToScreen => 'debug' );
RT->Config->Set( 'GnuPG',
@@ -16,14 +16,24 @@
OutgoingMessagesFormat => 'RFC' );
RT->Config->Set( 'GnuPGOptions',
- homedir => $homedir );
+ homedir => $homedir,
+ passphrase => 'rt-test');
RT->Config->Set( 'MailPlugins' => 'Auth::MailFrom', 'Auth::GnuPG' );
my ($baseurl, $m) = RT::Test->started_ok;
+
+$m->get( $baseurl."?user=root;pass=password" );
+$m->content_like(qr/Logout/, 'we did log in');
+$m->get( $baseurl.'/Admin/Queues/');
+$m->follow_link_ok( {text => 'General'} );
+$m->submit_form( form_number => 3,
+ fields => { CorrespondAddress => 'rt-recipient at example.com' } );
+$m->content_like(qr/rt-recipient\@example.com.* - never/, 'has key info.');
+
ok(my $user = RT::User->new($RT::SystemUser));
ok($user->Load('root'), "Loaded user 'root'");
-$user->SetEmailAddress('rt-test at example.com');
+$user->SetEmailAddress('ternus at mit.edu');
my $eid = 0;
for my $usage (qw/signed encrypted signed&encrypted/) {
More information about the Rt-commit
mailing list