incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r1205559 - /sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/auth/AuthenticationResponseCodeTest.java
Date Wed, 23 Nov 2011 20:08:10 GMT
Author: fmeschbe
Date: Wed Nov 23 20:08:09 2011
New Revision: 1205559

URL: http://svn.apache.org/viewvc?rev=1205559&view=rev
Log:
SLING-2299 Browser check in the Sling Authenticator now uses the User-Agent (and not the Accept)
header.

Modified:
    sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/auth/AuthenticationResponseCodeTest.java

Modified: sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/auth/AuthenticationResponseCodeTest.java
URL: http://svn.apache.org/viewvc/sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/auth/AuthenticationResponseCodeTest.java?rev=1205559&r1=1205558&r2=1205559&view=diff
==============================================================================
--- sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/auth/AuthenticationResponseCodeTest.java
(original)
+++ sling/trunk/launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/auth/AuthenticationResponseCodeTest.java
Wed Nov 23 20:08:09 2011
@@ -136,8 +136,9 @@ public class AuthenticationResponseCodeT
         params.add(new NameValuePair("j_username", "garbage"));
         params.add(new NameValuePair("j_password", "garbage"));
 
+        // simulate a browser request
         List<Header> headers = new ArrayList<Header>();
-        headers.add(new Header("Accept", "text/html"));
+        headers.add(new Header("User-Agent", "Mozilla/5.0 Sling Integration Test"));
 
         HttpMethod post = assertPostStatus(HTTP_BASE_URL + "/j_security_check",
                 HttpServletResponse.SC_MOVED_TEMPORARILY, params, headers, null);



Mime
View raw message