John,<br /><br />Could you give us a bit more information? For example do you have a test case you are trying to write, but can't? I'll a little confused as to what you are trying to do and maybe seeing more code would help.<br /><br />Oh, and Just FYI the newer versions of Catalyst move the env access from engine to request, and if you are planning of making heavy use of that I'd consider upgrading, so that you won't have compatibility issues later.<br /><br />John<br> <blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"> <div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr" > <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> John Karr <brainbuz@brainbuz.org><br> <b><span
style="font-weight: bold;">To:</span></b> 'The elegant MVC web framework' <catalyst@lists.scsys.co.uk> <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, April 12, 2012 3:39 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> [Catalyst] Application Testing, Mocking Apache Headers/Environment<br> </font> </div> <br>
I am trying to test an application that is deployed behind a proxy and which<BR>is dependent on obtaining information from the request through<BR>$c->engine->env this information includes the logged in user and client ip<BR>address. I've been using the config file to provide override values,<BR>however, this is not helpful for testing multiple values.<BR><BR><BR><BR><BR>_______________________________________________<BR>List: <a ymailto="mailto:Catalyst@lists.scsys.co.uk" href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a><BR>Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst<BR>Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/<BR>Dev site: http://dev.catalyst.perl.org/<BR><br><br> </div> </div> </blockquote>