httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cove...@apache.org
Subject svn commit: r1782484 - in /httpd/test/framework/trunk/t: conf/proxy.conf.in modules/proxy_fcgi.t
Date Fri, 10 Feb 2017 15:32:22 GMT
Author: covener
Date: Fri Feb 10 15:32:22 2017
New Revision: 1782484

URL: http://svn.apache.org/viewvc?rev=1782484&view=rev
Log:
test unsetting a var. Thanks jchampion for the harness


Modified:
    httpd/test/framework/trunk/t/conf/proxy.conf.in
    httpd/test/framework/trunk/t/modules/proxy_fcgi.t

Modified: httpd/test/framework/trunk/t/conf/proxy.conf.in
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/conf/proxy.conf.in?rev=1782484&r1=1782483&r2=1782484&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/conf/proxy.conf.in (original)
+++ httpd/test/framework/trunk/t/conf/proxy.conf.in Fri Feb 10 15:32:22 2017
@@ -60,6 +60,7 @@
         ProxyFCGISetEnvIf false TEST_NOT_SET
         ProxyFCGISetEnvIf true  TEST_DOCROOT "%{DOCUMENT_ROOT}"
         ProxyFCGISetEnvIf "reqenv('GATEWAY_INTERFACE') =~ m#CGI/(.\..)#" TEST_CGI_VERSION
"v$1"
+        ProxyFCGISetEnvIf true !PATH_TRANSLATED
       </Location>
     </IfVersion>
   </VirtualHost>

Modified: httpd/test/framework/trunk/t/modules/proxy_fcgi.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/modules/proxy_fcgi.t?rev=1782484&r1=1782483&r2=1782484&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/modules/proxy_fcgi.t (original)
+++ httpd/test/framework/trunk/t/modules/proxy_fcgi.t Fri Feb 10 15:32:22 2017
@@ -5,7 +5,7 @@ use Apache::Test;
 use Apache::TestRequest;
 use Apache::TestUtil;
 
-plan tests => 6,
+plan tests => 7,
      need (
         'mod_proxy_fcgi',
         'FCGI',
@@ -117,6 +117,7 @@ ok t_cmp($envs{'TEST_NOT_SET'},     unde
 ok t_cmp($envs{'TEST_EMPTY'},       '',           "ProxyFCGISetEnvIf can set empty values");
 ok t_cmp($envs{'TEST_DOCROOT'},     $docroot,     "ProxyFCGISetEnvIf can replace with request
variables");
 ok t_cmp($envs{'TEST_CGI_VERSION'}, 'v1.1',       "ProxyFCGISetEnvIf can replace with backreferences");
+ok t_cmp($envs{'PATH_TRANSLATED'}, undef,         "ProxyFCGISetEnvIf can unset var");
 
 # Rejoin the child FCGI process.
 waitpid($child, 0);



Mime
View raw message