[med-svn] [Git][med-team/htsjdk][master] 2 commits: Disabled the java/htsjdk/samtools/util/HttpUtilsTest test, requires network access
Andreas Tille
gitlab at salsa.debian.org
Fri Mar 1 22:06:51 GMT 2019
Andreas Tille pushed to branch master at Debian Med / htsjdk
Commits:
e459159d by Andreas Tille at 2019-03-01T22:04:48Z
Disabled the java/htsjdk/samtools/util/HttpUtilsTest test, requires network access
- - - - -
ece5838c by Andreas Tille at 2019-03-01T22:05:04Z
Upload to unstable
- - - - -
3 changed files:
- debian/changelog
- + debian/patches/disable-network-tests.diff
- debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,12 @@
+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 at debian.org> Fri, 01 Mar 2019 23:04:57 +0100
+
htsjdk (2.18.2+dfsg-1) unstable; urgency=medium
* New upstream version
=====================================
debian/patches/disable-network-tests.diff
=====================================
@@ -0,0 +1,41 @@
+Author: Matthias Klose <doko at 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);
+- }
+-}
=====================================
debian/patches/series
=====================================
@@ -11,3 +11,4 @@
92-disable-testhttp.patch
100-fix-java11
110-debian-lib-version.patch
+disable-network-tests.diff
View it on GitLab: https://salsa.debian.org/med-team/htsjdk/compare/aee39987d0402ad208a29961e4afafb6d7a8610d...ece5838ca4f2de7dea357cdef51423aec07c7e79
--
View it on GitLab: https://salsa.debian.org/med-team/htsjdk/compare/aee39987d0402ad208a29961e4afafb6d7a8610d...ece5838ca4f2de7dea357cdef51423aec07c7e79
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20190301/d1e7d9cd/attachment-0001.html>
More information about the debian-med-commit
mailing list