Since 858b2c92
we have a HTTP authentication implementation hence
we now get different exception messages when required authentication
headers are not available. This broke the HTTP tests.
Change-Id: Ie08c1ec37e497c2a6f70a75f7c59f0805812a5cc
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
tags/v0.10.1
@@ -280,7 +280,7 @@ public class HttpClientTests extends HttpTestCase { | |||
t.openFetch(); | |||
fail("connection opened even info/refs needs auth basic"); | |||
} catch (TransportException err) { | |||
String status = "401 Unauthorized"; | |||
String status = "authentication not supported"; | |||
String exp = dumbAuthBasicURI + ": " + status; | |||
assertEquals(exp, err.getMessage()); | |||
} | |||
@@ -297,7 +297,7 @@ public class HttpClientTests extends HttpTestCase { | |||
t.openFetch(); | |||
fail("connection opened even though service disabled"); | |||
} catch (TransportException err) { | |||
String status = "401 Unauthorized"; | |||
String status = "authentication not supported"; | |||
String exp = smartAuthBasicURI + ": " + status; | |||
assertEquals(exp, err.getMessage()); | |||
} |
@@ -398,7 +398,7 @@ public class SmartClientSmartServerTest extends HttpTestCase { | |||
t.push(NullProgressMonitor.INSTANCE, Collections.singleton(u)); | |||
fail("anonymous push incorrectly accepted without error"); | |||
} catch (TransportException e) { | |||
final String status = "401 Unauthorized"; | |||
final String status = "authentication not supported"; | |||
final String exp = remoteURI.toString() + ": " + status; | |||
assertEquals(exp, e.getMessage()); | |||
} |