dougm 02/04/02 09:56:03
Modified: perl-framework/t/ssl basicauth.t env.t require.t verify.t
Log:
need to turn off keepalives for ssl tests that present different
certificates for the same URL. mod_ssl will only renegotiate until a
certificate is presented or access requirements have changed (which
doesn't happen when URL is always the same).
note that these testing scenerios would never happen in real life,
mod_ssl does the right thing here. in real-life a different
certificate may be required if the URL actually changes and has
different access config, in which case mod_ssl will renegotiate.
Revision Changes Path
1.4 +6 -0 httpd-test/perl-framework/t/ssl/basicauth.t
Index: basicauth.t
===================================================================
RCS file: /home/cvs/httpd-test/perl-framework/t/ssl/basicauth.t,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- basicauth.t 25 Mar 2002 01:27:28 -0000 1.3
+++ basicauth.t 2 Apr 2002 17:56:03 -0000 1.4
@@ -5,6 +5,12 @@
use Apache::TestConfig ();
use Apache::TestUtil;
+#if keepalives are on, renegotiation not happen again once
+#a client cert is presented. so on test #3, the cert from #2
+#will be used. this test scenerio would never
+#happen in real-life, so just disable keepalives here.
+Apache::TestRequest::user_agent_keepalive(0);
+
my $url = '/ssl-fakebasicauth/index.html';
plan tests => 3, have_module 'auth';
1.7 +4 -0 httpd-test/perl-framework/t/ssl/env.t
Index: env.t
===================================================================
RCS file: /home/cvs/httpd-test/perl-framework/t/ssl/env.t,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- env.t 29 Jan 2002 02:16:43 -0000 1.6
+++ env.t 2 Apr 2002 17:56:03 -0000 1.7
@@ -5,6 +5,10 @@
use Apache::TestConfig ();
use Apache::TestSSLCA ();
+#if keepalives are on, renegotiation not happen again once
+#a client cert is presented.
+Apache::TestRequest::user_agent_keepalive(0);
+
my $cert = 'client_snakeoil';
my $server_expect =
1.2 +6 -0 httpd-test/perl-framework/t/ssl/require.t
Index: require.t
===================================================================
RCS file: /home/cvs/httpd-test/perl-framework/t/ssl/require.t,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- require.t 17 Aug 2001 03:22:28 -0000 1.1
+++ require.t 2 Apr 2002 17:56:03 -0000 1.2
@@ -4,6 +4,12 @@
use Apache::Test;
use Apache::TestRequest;
+#if keepalives are on, renegotiation not happen again once
+#a client cert is presented. so on test #3, the cert from #2
+#will be used. this test scenerio would never
+#happen in real-life, so just disable keepalives here.
+Apache::TestRequest::user_agent_keepalive(0);
+
plan tests => 5;
Apache::TestRequest::scheme('https');
1.4 +6 -0 httpd-test/perl-framework/t/ssl/verify.t
Index: verify.t
===================================================================
RCS file: /home/cvs/httpd-test/perl-framework/t/ssl/verify.t,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- verify.t 14 Sep 2001 21:37:36 -0000 1.3
+++ verify.t 2 Apr 2002 17:56:03 -0000 1.4
@@ -5,6 +5,12 @@
use Apache::TestRequest;
use Apache::TestConfig ();
+#if keepalives are on, renegotiation not happen again once
+#a client cert is presented. so on test #3, the cert from #2
+#will be used. this test scenerio would never
+#happen in real-life, so just disable keepalives here.
+Apache::TestRequest::user_agent_keepalive(0);
+
my $url = '/verify/index.html';
plan tests => 3;