Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (3)
Adding a patch to skip tests requiring network access.
· 8a2b103a
Andrius Merkys
authored
Nov 12, 2019
8a2b103a
Adding description for skip-network-tests.patch.
· ac2e1158
Andrius Merkys
authored
Nov 12, 2019
ac2e1158
Preparing for release.
· 544f5161
Andrius Merkys
authored
Nov 12, 2019
544f5161
Show whitespace changes
Inline
Side-by-side
debian/changelog
View file @
544f5161
jsonld-java (0.12.5-3) unstable; urgency=medium
* Adding a patch to skip tests requiring network access.
-- Andrius Merkys <merkys@debian.org> 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
View file @
544f5161
skip-network-tests.patch
add-httpclient-cache.patch
debian/patches/skip-network-tests.patch
0 → 100644
View file @
544f5161
Description: Ignoring tests that require network access.
Author: Andrius Merkys <merkys@debian.org>
--- 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/");