httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: FW: Re: Apache::TestRequest + Cookies
Date Tue, 30 Nov 2004 16:03:23 GMT
Christopher H. Laco wrote:
> Stas Bekman wrote:
> [snip]
> 
>> Why don't you first post what you had on your mind. May be your idea 
>> doesn't need that at all.
>>
>>
> 
> Well, here's what I was thinking. First, write a quick and dirty 
> mod_perl handler that looked for a specific cookie; let's say 'ApacheTest'.
> 
> If it wasn't supplied by the client, send a new copy out. If it was sent 
> by the client, simply return the supplied cookie/value.
> 
> Shouldn't take more than a few lines of code, and it removes the 
> dependency of usertrack and Apache::Session.
> 
> Then, simply write a test that makes a series of requests to that 
> handler. The first response should return a new ApacheTest cookie/value, 
> and the second test should pass back the same ApacheTest cookie/value if
> 
>     Apache::TestRequest::user_agent( cookie_jar => {});
> 
> and it's surroundings are woroking fine.

Sounds good. Though it'll probably need to leave in the modperl2's test 
suite and not Apache-Test's one. but let's see the code first and then see 
where it's the best to apply it. You can use the
http://perl.apache.org/~geoff/Apache-Test-skeleton-mp2.tar.gz
to make it easy to write the test.

-- 
__________________________________________________________________
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

Mime
View raw message