Re: [Catalyst] Testing controller which require login.

2009-05-15 Thread Peter Karman
Peter Karman wrote on 05/14/2009 01:51 PM: > Louis Erickson wrote on 05/14/2009 09:39 AM: >> >> I'm using AuthTkt, and it works very well. > > glad to hear it. > > If you're using AuthTkt, then the whole cookie this is a non-issue. Just > pass the ticket as a URL param like the tests do. The pl

Re: [Catalyst] Testing controller which require login.

2009-05-15 Thread Tomas Doran
Louis Erickson wrote: Just today I spent time writing up some documentation patches you pointed out I could contribute on my blog. I'm going to try and keep adding things where I can. Applied in another thread - keep up the good work :) Random question about that... if I have diffs to send t

Re: [Catalyst] Testing controller which require login.

2009-05-14 Thread Peter Karman
Louis Erickson wrote on 05/14/2009 09:39 AM: > > I'm using AuthTkt, and it works very well. glad to hear it. If you're using AuthTkt, then the whole cookie this is a non-issue. Just pass the ticket as a URL param like the tests do. The plugin supports both ways (cookie and param). > > Why did

Re: [Catalyst] Testing controller which require login.

2009-05-14 Thread Louis Erickson
I'm using AuthTkt, and it works very well. Why didn't it occur to me to look at the tests for it? On Thu, 14 May 2009, Peter Karman wrote: > You can see the AuthTkt tests here[0]. The my_request() function just > sets $ENV{COOKIE} and lets the standard AsCGI magic work. I'm sure > that's a Bad

Re: [Catalyst] Testing controller which require login.

2009-05-14 Thread Peter Karman
Louis Erickson wrote on 05/13/2009 12:07 AM: > Can I just generate the cookie and put it in the cookie store directly > before the query is made to the application? I can generate the cookie > with the SSO library. I don't see a way to do that through either test > tool. > I'm coming in lat

Re: [Catalyst] Testing controller which require login.

2009-05-13 Thread Louis Erickson
First, let me say that I am pleased and impressed with the responses. So often I ask a question on a mailing list and get little or nothing back. It is a real treat to see a place where that is not the case! Complete sentences, coherent thoughts, *and* relevant answers to complex questions!

Re: [Catalyst] Testing controller which require login.

2009-05-13 Thread Matt S Trout
On Tue, May 12, 2009 at 10:07:49PM -0700, Louis Erickson wrote: > > I've been neglecting my test scripts, and I'm finally getting to that > before my app gets any bigger. I want to make sure I don't break anything > that's working, and that it works as well as I think it does. > > I'm probably

Re: [Catalyst] Testing controller which require login.

2009-05-13 Thread Tomas Doran
Louis Erickson wrote: > I'm probably going to have several questions in the next few days about > tests. As usual in these parts, all questions welcome, although you implicitly volunteered to document anything not covered in the Manual/documentation already. Well volunteered in advance. ;_) I

Re: [Catalyst] Testing controller which require login.

2009-05-13 Thread Peter Edwards
2009/5/13 Louis Erickson > > I haven't been able to get a test user logging in and out yet, though. > > I have several sections of my application that redirect the user away if > they are not logged in. I have another that returns a 404 if they don't > have access, so prying users can't find it (

Re: [Catalyst] Testing controller which require login.

2009-05-13 Thread luke saunders
On Wed, May 13, 2009 at 6:07 AM, Louis Erickson wrote: > > I've been neglecting my test scripts, and I'm finally getting to that > before my app gets any bigger. I want to make sure I don't break anything > that's working, and that it works as well as I think it does. > > I'm probably going to ha

[Catalyst] Testing controller which require login.

2009-05-12 Thread Louis Erickson
I've been neglecting my test scripts, and I'm finally getting to that before my app gets any bigger. I want to make sure I don't break anything that's working, and that it works as well as I think it does. I'm probably going to have several questions in the next few days about tests. I think