[Rt-commit] rt branch, 4.2/inline-server-failed-tests, created. rt-4.2.5-68-g37ca0d2

? sunnavy sunnavy at bestpractical.com
Tue Jul 1 09:43:02 EDT 2014


The branch, 4.2/inline-server-failed-tests has been created
        at  37ca0d2fae96332ab17c07bb2783769005080dc7 (commit)

- Log -----------------------------------------------------------------
commit 7b37672205d4994fb43a0b74aeb08a676ae65d67
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed Apr 16 01:25:26 2014 +0800

    require actual_server since mailgate is called there

diff --git a/t/mail/smime/incoming.t b/t/mail/smime/incoming.t
index 50707a0..918844a 100644
--- a/t/mail/smime/incoming.t
+++ b/t/mail/smime/incoming.t
@@ -1,7 +1,7 @@
 use strict;
 use warnings;
 
-use RT::Test::SMIME tests => undef;
+use RT::Test::SMIME tests => undef, actual_server => 1;
 my $test = 'RT::Test::SMIME';
 
 use IPC::Run3 'run3';
diff --git a/t/mail/smime/reject_on_unencrypted.t b/t/mail/smime/reject_on_unencrypted.t
index f8d61ad..ab62d83 100644
--- a/t/mail/smime/reject_on_unencrypted.t
+++ b/t/mail/smime/reject_on_unencrypted.t
@@ -1,7 +1,7 @@
 use strict;
 use warnings;
 
-use RT::Test::SMIME tests => undef, config => 'Set( %Crypt, RejectOnUnencrypted => 1 );';
+use RT::Test::SMIME tests => undef, actual_server => 1, config => 'Set( %Crypt, RejectOnUnencrypted => 1 );';
 my $test = 'RT::Test::SMIME';
 
 use IPC::Run3 'run3';

commit 37ca0d2fae96332ab17c07bb2783769005080dc7
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed Apr 16 01:35:50 2014 +0800

    missed warnings check, which causes tests to fail in inline server mode

diff --git a/t/web/path-traversal.t b/t/web/path-traversal.t
index 9b45ba2..8207265 100644
--- a/t/web/path-traversal.t
+++ b/t/web/path-traversal.t
@@ -30,6 +30,7 @@ is($agent->status, $ENV{RT_TEST_WEB_HANDLER} =~ /^apache/ ? 400 : 403);
 # dotfiles, for example.
 $agent->get("$baseurl/Ticket/Attachment/28/9/.bashrc");
 is($agent->status, 200); # Even for a file not found, we return 200
+$agent->next_warning_like(qr/could not be loaded/, "couldn't loaded warning");
 $agent->content_like(qr/Attachment \S+ could not be loaded/);
 
 # do not reject these URLs, even though they contain /. outside the path
diff --git a/t/web/remote_user.t b/t/web/remote_user.t
index 7a58388..c17a933 100644
--- a/t/web/remote_user.t
+++ b/t/web/remote_user.t
@@ -185,6 +185,7 @@ diag "WebRemoteUserAutocreate";
         $m->auth("conflicting");
         $m->get($url);
         is $m->status, 403, "Forbidden";
+        $m->next_warning_like(qr/Couldn't auto-create user 'conflicting' when attempting WebRemoteUser: Email address in use/, 'found failed auth warning');
 
         my $user = RT::User->new( RT->SystemUser );
         $user->Load("conflicting");

-----------------------------------------------------------------------


More information about the rt-commit mailing list