summaryrefslogtreecommitdiffstats
path: root/vespa-http-client
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@yahoo-inc.com>2017-01-05 16:23:40 +0100
committerBjørn Christian Seime <bjorncs@yahoo-inc.com>2017-01-05 16:23:40 +0100
commitd18a717692cb1d5763f37acb656a79d261d6820c (patch)
tree107f0445293df3a407ca038d584178e3b1ad6ac9 /vespa-http-client
parent0cd2574748cdd923f83e078753b6e539cd0c5513 (diff)
Assert fail fast for 401-Unauthorized and 403-Forbidden
Diffstat (limited to 'vespa-http-client')
-rw-r--r--vespa-http-client/src/test/java/com/yahoo/vespa/http/client/V3HttpAPITest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/vespa-http-client/src/test/java/com/yahoo/vespa/http/client/V3HttpAPITest.java b/vespa-http-client/src/test/java/com/yahoo/vespa/http/client/V3HttpAPITest.java
index bd894e84ed4..a095cb184a0 100644
--- a/vespa-http-client/src/test/java/com/yahoo/vespa/http/client/V3HttpAPITest.java
+++ b/vespa-http-client/src/test/java/com/yahoo/vespa/http/client/V3HttpAPITest.java
@@ -109,7 +109,9 @@ public class V3HttpAPITest extends TestOnCiBuildingSystemOnly {
@Test
public void requireThatBadResponseCodeFails() throws Exception {
- testServerWithMock(new V3MockParsingRequestHandler(407), true);
+ testServerWithMock(new V3MockParsingRequestHandler(401/*Unauthorized*/), true);
+ testServerWithMock(new V3MockParsingRequestHandler(403/*Forbidden*/), true);
+ testServerWithMock(new V3MockParsingRequestHandler(407/*Proxy Authentication Required*/), true);
}
@Test