RE: [Catalyst] Application Testing, Mocking Apache Headers/Environment

2012-04-16 Thread brainbuz
to do something.' ) ; FROM: John Napiorkowski [mailto:jjn1...@yahoo.com] SENT: Sunday, April 15, 2012 3:35 PM TO: The elegant MVC web framework SUBJECT: Re: [Catalyst] Application Testing, Mocking Apache Headers/Environment John, Could you give us a bit more information? For example do you have

Re: [Catalyst] Application Testing, Mocking Apache Headers/Environment

2012-04-16 Thread Tomas Doran
On 16 Apr 2012, at 07:11, brainbuz wrote: In my auto action I have something like: $c-{ USERNAME } = $c-engine-env-{ HTTP_COOKIE } ;#Authenticated via apache 2.4 mod_auth_form $c-{ USERRIGHTS } = $c-model( ‘method returning a ref to a list of the rights for $c-{ USERNAME }’);

Re: [Catalyst] Application Testing, Mocking Apache Headers/Environment

2012-04-16 Thread brainbuz
- the answer you're probably looking for is to use Plack::Middleware::ForceEnv Thanks I peeked at the documentation it looks like exactly the approach I wanted to take. The documentation is brief and the tests are all directly against plackup. You wouldn't happen to have some handy examples you

Re: [Catalyst] Application Testing, Mocking Apache Headers/Environment

2012-04-15 Thread John Napiorkowski
: Thursday, April 12, 2012 3:39 PM Subject: [Catalyst] Application Testing, Mocking Apache Headers/Environment I am trying to test an application that is deployed behind a proxy and which is dependent on obtaining information from the request through $c-engine-env this information includes the logged

[Catalyst] Application Testing, Mocking Apache Headers/Environment

2012-04-12 Thread John Karr
I am trying to test an application that is deployed behind a proxy and which is dependent on obtaining information from the request through $c-engine-env this information includes the logged in user and client ip address. I've been using the config file to provide override values, however, this is