Andrius Merkys pushed to branch master at Debian Java Maintainers / jsonld-java
Commits: 8a2b103a by Andrius Merkys at 2019-11-12T17:00:36Z Adding a patch to skip tests requiring network access. - - - - - ac2e1158 by Andrius Merkys at 2019-11-12T17:01:24Z Adding description for skip-network-tests.patch. - - - - - 544f5161 by Andrius Merkys at 2019-11-12T17:06:53Z Preparing for release. - - - - - 3 changed files: - debian/changelog - debian/patches/series - + debian/patches/skip-network-tests.patch Changes: ===================================== debian/changelog ===================================== @@ -1,3 +1,9 @@ +jsonld-java (0.12.5-3) unstable; urgency=medium + + * Adding a patch to skip tests requiring network access. + + -- Andrius Merkys <[email protected]> Tue, 12 Nov 2019 12:06:34 -0500 + jsonld-java (0.12.5-2) unstable; urgency=medium * Bumping Standards-Version (no changes). ===================================== debian/patches/series ===================================== @@ -1 +1,2 @@ +skip-network-tests.patch add-httpclient-cache.patch ===================================== debian/patches/skip-network-tests.patch ===================================== @@ -0,0 +1,86 @@ +Description: Ignoring tests that require network access. +Author: Andrius Merkys <[email protected]> +--- a/core/src/test/java/com/github/jsonldjava/core/ContextCompactionTest.java ++++ b/core/src/test/java/com/github/jsonldjava/core/ContextCompactionTest.java +@@ -8,11 +8,13 @@ + import java.util.List; + import java.util.Map; + ++import org.junit.Ignore; + import org.junit.Test; + + public class ContextCompactionTest { + + // @Ignore("Disable until schema.org is fixed") ++ @Ignore("Requires network access") + @Test + public void testCompaction() throws Exception { + +--- a/core/src/test/java/com/github/jsonldjava/core/DocumentLoaderTest.java ++++ b/core/src/test/java/com/github/jsonldjava/core/DocumentLoaderTest.java +@@ -105,6 +105,7 @@ + } + + // @Ignore("Integration test") ++ @Ignore("Requires network access") + @Test + public void fromURLredirectHTTPSToHTTP() throws Exception { + final URL url = new URL("https://w3id.org/bundle/context"); +@@ -117,6 +118,7 @@ + } + + // @Ignore("Integration test") ++ @Ignore("Requires network access") + @Test + public void fromURLredirect() throws Exception { + final URL url = new URL("http://purl.org/wf4ever/ro-bundle/context.json"); +@@ -126,6 +128,7 @@ + } + + // @Ignore("Integration test") ++ @Ignore("Requires network access") + @Test + public void loadDocumentWf4ever() throws Exception { + final RemoteDocument document = documentLoader +@@ -152,6 +155,7 @@ + assertFalse(((Map<?, ?>) context).isEmpty()); + } + ++ @Ignore("Requires network access") + @Test + public void loadDocumentSchemaOrg() throws Exception { + final RemoteDocument document = documentLoader.loadDocument("http://schema.org/"); +@@ -160,6 +164,7 @@ + assertFalse(((Map<?, ?>) context).isEmpty()); + } + ++ @Ignore("Requires network access") + @Test + public void loadDocumentSchemaOrgDirect() throws Exception { + final RemoteDocument document = documentLoader +@@ -353,6 +358,7 @@ + } + } + ++ @Ignore("Requires network access") + @Test + public void testDisallowRemoteContexts() throws Exception { + final String testUrl = "http://json-ld.org/contexts/person.jsonld"; +@@ -410,6 +416,7 @@ + assertEquals(5, v); + } + ++ @Ignore("Requires network access") + @Test + public void testRemoteContextCaching() throws Exception { + final String[] urls = { "http://schema.org/", "http://schema.org/docs/jsonldcontext.json" }; +--- a/core/src/test/java/com/github/jsonldjava/core/MinimalSchemaOrgRegressionTest.java ++++ b/core/src/test/java/com/github/jsonldjava/core/MinimalSchemaOrgRegressionTest.java +@@ -68,6 +68,7 @@ + assertTrue("Unexpected length: " + outputString.length(), outputString.length() > 100000); + } + ++ @Ignore("Requires network access") + @Test + public void testApacheHttpClient() throws Exception { + final URL url = new URL("http://schema.org/"); View it on GitLab: https://salsa.debian.org/java-team/jsonld-java/compare/3962996ff4fe551a1c85a789c8573719310758f1...544f5161d248c59bb787f7866feaf57fb0c77ab6 -- View it on GitLab: https://salsa.debian.org/java-team/jsonld-java/compare/3962996ff4fe551a1c85a789c8573719310758f1...544f5161d248c59bb787f7866feaf57fb0c77ab6 You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ pkg-java-commits mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-commits

