You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by he...@apache.org on 2019/10/02 10:25:18 UTC
svn commit: r1867881 - in /spamassassin: branches/3.4/t/uri.t trunk/t/uri.t
Author: hege
Date: Wed Oct 2 10:25:18 2019
New Revision: 1867881
URL: http://svn.apache.org/viewvc?rev=1867881&view=rev
Log:
Add uri test for http://foo/ Firefix like rewrite
Modified:
spamassassin/branches/3.4/t/uri.t
spamassassin/trunk/t/uri.t
Modified: spamassassin/branches/3.4/t/uri.t
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.4/t/uri.t?rev=1867881&r1=1867880&r2=1867881&view=diff
==============================================================================
--- spamassassin/branches/3.4/t/uri.t (original)
+++ spamassassin/branches/3.4/t/uri.t Wed Oct 2 10:25:18 2019
@@ -16,7 +16,7 @@ if (-e 'test_dir') { # runnin
}
use strict;
-use Test::More tests => 101;
+use Test::More tests => 102;
use lib '.'; use lib 't';
use SATest; sa_t_init("uri");
@@ -277,6 +277,14 @@ ok(try_canon([
'http://204.80.137.15/',
]));
+# Firefox like foo -> www.foo.com rewrite
+ok (try_canon([
+ 'http://foo/',
+ ], [
+ 'http://foo/',
+ 'http://www.foo.com/',
+ ]));
+
##############################################
sub try {
Modified: spamassassin/trunk/t/uri.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/uri.t?rev=1867881&r1=1867880&r2=1867881&view=diff
==============================================================================
--- spamassassin/trunk/t/uri.t (original)
+++ spamassassin/trunk/t/uri.t Wed Oct 2 10:25:18 2019
@@ -25,7 +25,7 @@ use Test::More;
use lib '.'; use lib 't';
use SATest; sa_t_init("uri");
-my $tests = 101;
+my $tests = 102;
$tests += 5 if $have_libidn;
plan tests => $tests;
@@ -295,6 +295,14 @@ ok(try_canon([
'http://204.80.137.15/',
]));
+# Firefox like foo -> www.foo.com rewrite
+ok (try_canon([
+ 'http://foo/',
+ ], [
+ 'http://foo/',
+ 'http://www.foo.com/',
+ ]));
+
##############################################
sub try {