Author: ogusakov
Date: Mon Sep 29 11:50:03 2008
New Revision: 700207

URL: http://svn.apache.org/viewvc?rev=700207&view=rev
Log:
modified the test to check for general proxy flow, not just a non-spec header. 
"Proxy-Connection" is not part of http spec, but an extended header, and as 
such cannot be expected from all the clients

Modified:
    
maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3599useHttpProxyForWebDAV.java

Modified: 
maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3599useHttpProxyForWebDAV.java
URL: 
http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3599useHttpProxyForWebDAV.java?rev=700207&r1=700206&r2=700207&view=diff
==============================================================================
--- 
maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3599useHttpProxyForWebDAV.java
 (original)
+++ 
maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3599useHttpProxyForWebDAV.java
 Mon Sep 29 11:50:03 2008
@@ -76,6 +76,16 @@
                     
                     System.out.println( "Proxy-Connection found." );
                 }
+                else if( 
+                    request.getRequestURI().startsWith( 
"/org/apache/maven/its/mng3599/test-dependency" )
+                    && request.getRequestURL().toString().startsWith( 
"http://www.example.com"; )
+                )
+                {
+                    response.setStatus( HttpServletResponse.SC_OK );
+                    response.getWriter().println( content );
+                    
+                    System.out.println( "Correct proxied request 
'http://www.example.com' for resource 
'/org/apache/maven/its/mng3599/test-dependency' found." );
+                }
                 else
                 {
                     response.setStatus( HttpServletResponse.SC_BAD_REQUEST );


Reply via email to