You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Randy Kobes <ra...@theoryx5.uwinnipeg.ca> on 2004/07/05 19:08:48 UTC

[mp2] pseudo_http test

On my linux system, I've disabled a number of loaded
modules, in particular mod_auth, but not mod_access. The
recent protocol/pseudo_http test fails on this setup (in
fact, the tests don't start, as there's an unknown directive
AuthUserFile used), as I think because it's set up to run if
mod_access is available, but it instead needs mod_auth. This
patch:
========================================================
Index: t/protocol/pseudo_http.t
===================================================================
RCS file: /home/cvs/modperl-2.0/t/protocol/pseudo_http.t,v
retrieving revision 1.1
diff -u -r1.1 pseudo_http.t
--- t/protocol/pseudo_http.t	5 Jul 2004 01:36:47 -0000	1.1
+++ t/protocol/pseudo_http.t	5 Jul 2004 16:59:12 -0000
@@ -18,7 +18,7 @@
 my $passgood = "foobar";
 my $passbad  = "foObaR";

-plan tests => 13, have_access;
+plan tests => 13, have_auth;

 {
     # supply correct credential when prompted for such and ask the
Index: t/protocol/TestProtocol/pseudo_http.pm
===================================================================
RCS file: /home/cvs/modperl-2.0/t/protocol/TestProtocol/pseudo_http.pm,v
retrieving revision 1.1
diff -u -r1.1 pseudo_http.pm
--- t/protocol/TestProtocol/pseudo_http.pm	5 Jul 2004 01:36:47 -0000	1.1
+++ t/protocol/TestProtocol/pseudo_http.pm	5 Jul 2004 16:59:13 -0000
@@ -136,7 +136,7 @@
     PerlProcessConnectionHandler TestProtocol::pseudo_http

     <Location TestProtocol::pseudo_http>
-        <IfModule mod_access.c>
+        <IfModule mod_auth.c>
             Order Deny,Allow
             Allow from @servername@
             Require user stas

================================================================
skips it for me.

-- 
best regards,
randy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: [mp2] pseudo_http test

Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Tue, 6 Jul 2004, Geoffrey Young wrote:

>
> >> -        <IfModule mod_access.c>
> >> +        <IfModule mod_auth.c>
>
> those should be <IfModule @ACCESS_MODULE@> and <IfModule @AUTH_MODULE@> so
> we can support both 2.0 and 2.1.

Thanks - I just committed a change for this that includes
both in this format.

-- 
best regards,
randy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: [mp2] pseudo_http test

Posted by Geoffrey Young <ge...@modperlcookbook.org>.
>> -        <IfModule mod_access.c>
>> +        <IfModule mod_auth.c>

those should be <IfModule @ACCESS_MODULE@> and <IfModule @AUTH_MODULE@> so
we can support both 2.0 and 2.1.

--Geoff

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: [mp2] pseudo_http test

Posted by Stas Bekman <st...@stason.org>.
Randy Kobes wrote:
> On my linux system, I've disabled a number of loaded
> modules, in particular mod_auth, but not mod_access. The
> recent protocol/pseudo_http test fails on this setup (in
> fact, the tests don't start, as there's an unknown directive
> AuthUserFile used), as I think because it's set up to run if
> mod_access is available, but it instead needs mod_auth. This
> patch:

Yup, you are mostly correct, Randy, but as mentioned in the other email, both 
are needed.

> ========================================================
> Index: t/protocol/pseudo_http.t
> ===================================================================
> RCS file: /home/cvs/modperl-2.0/t/protocol/pseudo_http.t,v
> retrieving revision 1.1
> diff -u -r1.1 pseudo_http.t
> --- t/protocol/pseudo_http.t	5 Jul 2004 01:36:47 -0000	1.1
> +++ t/protocol/pseudo_http.t	5 Jul 2004 16:59:12 -0000
> @@ -18,7 +18,7 @@
>  my $passgood = "foobar";
>  my $passbad  = "foObaR";
> 
> -plan tests => 13, have_access;
> +plan tests => 13, have_auth;
> 
>  {
>      # supply correct credential when prompted for such and ask the
> Index: t/protocol/TestProtocol/pseudo_http.pm
> ===================================================================
> RCS file: /home/cvs/modperl-2.0/t/protocol/TestProtocol/pseudo_http.pm,v
> retrieving revision 1.1
> diff -u -r1.1 pseudo_http.pm
> --- t/protocol/TestProtocol/pseudo_http.pm	5 Jul 2004 01:36:47 -0000	1.1
> +++ t/protocol/TestProtocol/pseudo_http.pm	5 Jul 2004 16:59:13 -0000
> @@ -136,7 +136,7 @@
>      PerlProcessConnectionHandler TestProtocol::pseudo_http
> 
>      <Location TestProtocol::pseudo_http>
> -        <IfModule mod_access.c>
> +        <IfModule mod_auth.c>
>              Order Deny,Allow
>              Allow from @servername@
>              Require user stas
> 
> ================================================================
> skips it for me.
> 


-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org