Skip to content
Commits on Source (2)
htsjdk (2.18.2+dfsg-2) unstable; urgency=medium
[ Matthias Klose ]
* Disabled the java/htsjdk/samtools/util/HttpUtilsTest test,
requires network access.
Closes: #923539
-- Andreas Tille <tille@debian.org> Fri, 01 Mar 2019 23:04:57 +0100
htsjdk (2.18.2+dfsg-1) unstable; urgency=medium
* New upstream version
......
Author: Matthias Klose <doko@debian.org>
Last-Update: Fri, 1 Mar 2019 18:06:32 +0100
Bug-Debian: https://bugs.debian.org/923539
Description: Ignore test that accesses the network during the build
--- a/src/test/java/htsjdk/samtools/util/HttpUtilsTest.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package htsjdk.samtools.util;
-import java.io.IOException;
-import java.net.URL;
-
-import org.testng.Assert;
-import org.testng.annotations.DataProvider;
-import org.testng.annotations.Test;
-
-import htsjdk.HtsjdkTest;
-
-public class HttpUtilsTest extends HtsjdkTest {
- @DataProvider(name = "existing_urls")
- public Object[][] testExistingURLsData() {
- return new Object[][]{
- {"http://broadinstitute.github.io/picard/testdata/index_test.bam"},
- {"http://ftp.1000genomes.ebi.ac.uk/vol1/ftp/current.tree"}
- };
- }
-
- @Test(dataProvider="existing_urls")
- public void testGetHeaderField(final String url) throws IOException {
- final String field = HttpUtils.getHeaderField(new URL(url), "Content-Length");
- Assert.assertNotNull(field);
- final long length = Long.parseLong(field);
- Assert.assertTrue(length > 0L);
- }
-
- @Test(dataProvider="existing_urls")
- public void testGetETag(final String url) throws IOException {
- final String field = HttpUtils.getETag(new URL(url));
- Assert.assertNotNull(field);
- }
-}
......@@ -11,3 +11,4 @@
92-disable-testhttp.patch
100-fix-java11
110-debian-lib-version.patch
disable-network-tests.diff