You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2016/05/01 12:56:33 UTC

[31/50] [abbrv] maven-aether git commit: Extended HttpTransporterTest to cover another scenario of interest

Extended HttpTransporterTest to cover another scenario of interest


Project: http://git-wip-us.apache.org/repos/asf/maven-aether/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-aether/commit/dae06159
Tree: http://git-wip-us.apache.org/repos/asf/maven-aether/tree/dae06159
Diff: http://git-wip-us.apache.org/repos/asf/maven-aether/diff/dae06159

Branch: refs/heads/master
Commit: dae06159bbc67a153054efb374637cf139a77aec
Parents: e93b32d
Author: Benjamin Bentmann <be...@sonatype.com>
Authored: Sun Sep 28 17:21:08 2014 +0200
Committer: Benjamin Bentmann <be...@sonatype.com>
Committed: Sun Sep 28 17:21:08 2014 +0200

----------------------------------------------------------------------
 .../aether/transport/http/HttpTransporterTest.java    | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-aether/blob/dae06159/aether-transport-http/src/test/java/org/eclipse/aether/transport/http/HttpTransporterTest.java
----------------------------------------------------------------------
diff --git a/aether-transport-http/src/test/java/org/eclipse/aether/transport/http/HttpTransporterTest.java b/aether-transport-http/src/test/java/org/eclipse/aether/transport/http/HttpTransporterTest.java
index 0ebe893..b4a38d6 100644
--- a/aether-transport-http/src/test/java/org/eclipse/aether/transport/http/HttpTransporterTest.java
+++ b/aether-transport-http/src/test/java/org/eclipse/aether/transport/http/HttpTransporterTest.java
@@ -973,7 +973,7 @@ public class HttpTransporterTest
         assertEquals( 1, listener.startedCount );
     }
 
-    @Test( timeout = 10000 )
+    @Test( timeout = 20000 )
     public void testConcurrency()
         throws Exception
     {
@@ -1129,6 +1129,18 @@ public class HttpTransporterTest
     }
 
     @Test
+    public void testServerAuthScope_FollowsSslRedirect()
+        throws Exception
+    {
+        String username = "testuser", password = "testpass";
+        httpServer.setAuthentication( username, password );
+        httpServer.addSslConnector();
+        auth = new AuthenticationBuilder().addUsername( username ).addPassword( password ).build();
+        newTransporter( httpServer.getHttpUrl() );
+        transporter.get( new GetTask( URI.create( "redirect/file.txt?scheme=https" ) ) );
+    }
+
+    @Test
     public void testAuthSchemeReuse()
         throws Exception
     {