httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r1815820 - /httpd/test/framework/trunk/t/ssl/basicauth.t
Date Mon, 20 Nov 2017 15:52:36 GMT
Author: jorton
Date: Mon Nov 20 15:52:36 2017
New Revision: 1815820

URL: http://svn.apache.org/viewvc?rev=1815820&view=rev
Log:
Test for 403 with colon in fakebasicauth username.

Modified:
    httpd/test/framework/trunk/t/ssl/basicauth.t

Modified: httpd/test/framework/trunk/t/ssl/basicauth.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/ssl/basicauth.t?rev=1815820&r1=1815819&r2=1815820&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/ssl/basicauth.t (original)
+++ httpd/test/framework/trunk/t/ssl/basicauth.t Mon Nov 20 15:52:36 2017
@@ -13,7 +13,7 @@ Apache::TestRequest::user_agent_keepaliv
 
 my $url = '/ssl-fakebasicauth/index.html';
 
-plan tests => 3, need need_auth, need_lwp;
+plan tests => 4, need need_auth, need_lwp;
 
 Apache::TestRequest::scheme('https');
 
@@ -31,3 +31,13 @@ ok t_cmp (GET_RC($url, cert => 'client_o
           401,
           "Getting $url with client_ok cert"
          );
+
+if (!have_min_apache_version("2.5.1")) {
+    skip "Colon in username test skipped.";
+}
+else {
+    ok t_cmp (GET_RC($url, cert => 'client_colon'),
+              403,
+              "Getting $url with client_colon cert"
+        );
+}



Mime
View raw message