[unirest-java] 01/02: disable UnirestTest.testSetTimeouts() unit-test.
Tony Mancill
tmancill at moszumanska.debian.org
Mon Dec 12 03:15:31 UTC 2016
This is an automated email from the git hooks/post-receive script.
tmancill pushed a commit to branch master
in repository unirest-java.
commit e860f91bdf15f30fbe2be8454eba26f33c62d3d0
Author: tony mancill <tmancill at debian.org>
Date: Sun Dec 11 19:10:46 2016 -0800
disable UnirestTest.testSetTimeouts() unit-test.
This test was causing build failures on some architectures and basically
amounts to an IP scan of 192.168.1.0/24.
---
debian/patches/disable_external_web_tests.patch | 38 +++++++++++++++----------
1 file changed, 23 insertions(+), 15 deletions(-)
diff --git a/debian/patches/disable_external_web_tests.patch b/debian/patches/disable_external_web_tests.patch
index f165369..fd8bcdb 100644
--- a/debian/patches/disable_external_web_tests.patch
+++ b/debian/patches/disable_external_web_tests.patch
@@ -218,7 +218,15 @@ Forwarded: not-needed
@Test
public void testDefaultHeaders() throws Exception {
Unirest.setDefaultHeader("X-Custom-Header", "hello");
-@@ -545,6 +572,7 @@
+@@ -523,6 +550,7 @@
+ assertFalse(jsonResponse.getBody().getObject().getJSONObject("headers").has("X-Custom-Header"));
+ }
+
++ @Ignore
+ @Test
+ public void testSetTimeouts() throws Exception {
+ String address = "http://" + findAvailableIpAddress() + "/";
+@@ -545,6 +573,7 @@
}
}
@@ -226,7 +234,7 @@ Forwarded: not-needed
@Test
public void testPathParameters() throws Exception {
HttpResponse<JsonNode> jsonResponse = Unirest.get("http://httpbin.org/{method}").routeParam("method", "get").queryString("name", "Mark").asJson();
-@@ -553,6 +581,7 @@
+@@ -553,6 +582,7 @@
assertEquals(jsonResponse.getBody().getObject().getJSONObject("args").getString("name"), "Mark");
}
@@ -234,7 +242,7 @@ Forwarded: not-needed
@Test
public void testQueryAndBodyParameters() throws Exception {
HttpResponse<JsonNode> jsonResponse = Unirest.post("http://httpbin.org/{method}").routeParam("method", "post").queryString("name", "Mark").field("wot", "wat").asJson();
-@@ -562,6 +591,7 @@
+@@ -562,6 +592,7 @@
assertEquals(jsonResponse.getBody().getObject().getJSONObject("form").getString("wot"), "wat");
}
@@ -242,7 +250,7 @@ Forwarded: not-needed
@Test
public void testPathParameters2() throws Exception {
HttpResponse<JsonNode> jsonResponse = Unirest.patch("http://httpbin.org/{method}").routeParam("method", "patch").field("name", "Mark").asJson();
-@@ -571,6 +601,7 @@
+@@ -571,6 +602,7 @@
assertEquals(jsonResponse.getBody().getObject().getJSONObject("form").getString("name"), "Mark");
}
@@ -250,7 +258,7 @@ Forwarded: not-needed
@Test
public void testMissingPathParameter() throws Exception {
try {
-@@ -581,6 +612,7 @@
+@@ -581,6 +613,7 @@
}
}
@@ -258,7 +266,7 @@ Forwarded: not-needed
@Test
public void parallelTest() throws Exception {
Unirest.setConcurrency(10, 5);
-@@ -616,6 +648,7 @@
+@@ -616,6 +649,7 @@
newFixedThreadPool.awaitTermination(10, TimeUnit.MINUTES);
}
@@ -266,7 +274,7 @@ Forwarded: not-needed
@Test
public void testAsyncCustomContentType() throws Exception {
Unirest.post("http://httpbin.org/post").header("accept", "application/json").header("Content-Type", "application/json").body("{\"hello\":\"world\"}").asJsonAsync(new Callback<JsonNode>() {
-@@ -646,6 +679,7 @@
+@@ -646,6 +680,7 @@
assertTrue(status);
}
@@ -274,7 +282,7 @@ Forwarded: not-needed
@Test
public void testAsyncCustomContentTypeAndFormParams() throws Exception {
Unirest.post("http://httpbin.org/post").header("accept", "application/json").header("Content-Type", "application/x-www-form-urlencoded").field("name", "Mark").field("hello", "world").asJsonAsync(new Callback<JsonNode>() {
-@@ -676,6 +710,7 @@
+@@ -676,6 +711,7 @@
assertTrue(status);
}
@@ -282,7 +290,7 @@ Forwarded: not-needed
@Test
public void testGetQuerystringArray() throws Exception {
HttpResponse<JsonNode> response = Unirest.get("http://httpbin.org/get").queryString("name", "Mark").queryString("name", "Tom").asJson();
-@@ -687,6 +722,7 @@
+@@ -687,6 +723,7 @@
assertEquals("Tom", names.getString(1));
}
@@ -290,7 +298,7 @@ Forwarded: not-needed
@Test
public void testPostMultipleFiles() throws Exception {
HttpResponse<JsonNode> response = Unirest.post("http://httpbin.org/post").field("param3", "wot").field("file1", new File(getClass().getResource("/test").toURI())).field("file2", new File(getClass().getResource("/test").toURI())).asJson();
-@@ -700,6 +736,7 @@
+@@ -700,6 +737,7 @@
assertEquals("wot", response.getBody().getObject().getJSONObject("form").getString("param3"));
}
@@ -298,7 +306,7 @@ Forwarded: not-needed
@Test
public void testGetArray() throws Exception {
HttpResponse<JsonNode> response = Unirest.get("http://httpbin.org/get").queryString("name", Arrays.asList("Mark", "Tom")).asJson();
-@@ -711,6 +748,7 @@
+@@ -711,6 +749,7 @@
assertEquals("Tom", names.getString(1));
}
@@ -306,7 +314,7 @@ Forwarded: not-needed
@Test
public void testPostArray() throws Exception {
HttpResponse<JsonNode> response = Unirest.post("http://httpbin.org/post").field("name", "Mark").field("name", "Tom").asJson();
-@@ -722,6 +760,7 @@
+@@ -722,6 +761,7 @@
assertEquals("Tom", names.getString(1));
}
@@ -314,7 +322,7 @@ Forwarded: not-needed
@Test
public void testPostCollection() throws Exception {
HttpResponse<JsonNode> response = Unirest.post("http://httpbin.org/post").field("name", Arrays.asList("Mark", "Tom")).asJson();
-@@ -733,6 +772,7 @@
+@@ -733,6 +773,7 @@
assertEquals("Tom", names.getString(1));
}
@@ -322,7 +330,7 @@ Forwarded: not-needed
@Test
public void testCaseInsensitiveHeaders() throws Exception {
GetRequest request = Unirest.get("http://httpbin.org/headers").header("Name", "Marco");
-@@ -787,6 +827,7 @@
+@@ -787,6 +828,7 @@
}
}
@@ -330,7 +338,7 @@ Forwarded: not-needed
@Test
public void testObjectMapperRead() throws Exception {
Unirest.setObjectMapper(new JacksonObjectMapper());
-@@ -800,6 +841,7 @@
+@@ -800,6 +842,7 @@
assertEquals(getResponse.getBody().getUrl(), getResponseMock.getUrl());
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/unirest-java.git
More information about the pkg-java-commits
mailing list