Re: Add TAP test for auth_delay extension

2022-10-11 Thread Michael Paquier
On Sat, Jul 30, 2022 at 05:13:12PM -0400, Tom Lane wrote: > If we don't do it like that, I'd vote for rejecting the patch. Yep. Done this way. -- Michael signature.asc Description: PGP signature

Re: Add TAP test for auth_delay extension

2022-07-30 Thread Tom Lane
Dong Wook Lee writes: > On 22/06/18 12:07오후, Michael Paquier wrote: >> As a whole, I am not sure that this is really worth spending cycles on >> when running check-world or similar, and the code of the extension is >> trivial. > Even though it is trivial, I think it would be better if there was a

Re: Add TAP test for auth_delay extension

2022-06-20 Thread Dong Wook Lee
On 22/06/18 12:07오후, Michael Paquier wrote: > On Sat, Jun 18, 2022 at 11:06:02AM +0900, Dong Wook Lee wrote: > > I have written a test for the auth_delay extension before, > > but if it is okay, can you review it? > > +# check enter wrong password > +my $t0 = [gettimeofday]; > +test_login($node, '

Re: Add TAP test for auth_delay extension

2022-06-17 Thread Michael Paquier
On Sat, Jun 18, 2022 at 11:06:02AM +0900, Dong Wook Lee wrote: > I have written a test for the auth_delay extension before, > but if it is okay, can you review it? +# check enter wrong password +my $t0 = [gettimeofday]; +test_login($node, 'user_role', "wrongpass", 2); +my $elapsed = tv_interval($t

Re: Add TAP test for auth_delay extension

2022-06-17 Thread Dong Wook Lee
2022년 6월 7일 (화) 오후 6:32, Dong Wook Lee 님이 작성: > > Hi Hackers, > I just wrote a test for `auth_delay` extension. > It's a test which confirms whether there is a delay for a second when > you enter the wrong password. > I sent an email using mutt, but I have a problem and sent it again. > > --- > Reg

Re: Add TAP test for auth_delay extension

2022-06-07 Thread Dong Wook Lee
Hi Hackers, I just wrote a test for `auth_delay` extension. It's a test which confirms whether there is a delay for a second when you enter the wrong password. I sent an email using mutt, but I have a problem and sent it again. --- Regards, Dong Wook Lee.

Add TAP test for auth_delay extension

2022-06-07 Thread sh95119
diff --git a/contrib/auth_delay/Makefile b/contrib/auth_delay/Makefile index 4b86ec37f0..b65097789a 100644 --- a/contrib/auth_delay/Makefile +++ b/contrib/auth_delay/Makefile @@ -3,6 +3,8 @@ MODULES = auth_delay PGFILEDESC = "auth_delay - delay authentication failure reports" +TAP_TESTS = 1 +