Patch the test files to disable url lookup Use maven-local-openjdk11 to be able to compile test files Reverse the order of %autosetup and %gpgverify Signed-off-by: Didik Supriadi <didiksupriadi41@fedoraproject.org>
62 lines
2.6 KiB
Diff
62 lines
2.6 KiB
Diff
From 4ee3ce3b2890f1a0d6842e1b336a017a348a2508 Mon Sep 17 00:00:00 2001
|
|
From: Didik Supriadi <didiksupriadi41@fedoraproject.org>
|
|
Date: Sat, 23 Apr 2022 15:53:45 +0700
|
|
Subject: [PATCH] disable-url-lookup
|
|
|
|
Signed-off-by: Didik Supriadi <didiksupriadi41@fedoraproject.org>
|
|
---
|
|
.../StringSubstitutorWithInterpolatorStringLookupTest.java | 3 +++
|
|
.../org/apache/commons/text/lookup/UrlStringLookupTest.java | 2 ++
|
|
2 files changed, 5 insertions(+)
|
|
|
|
diff --git a/src/test/java/org/apache/commons/text/StringSubstitutorWithInterpolatorStringLookupTest.java b/src/test/java/org/apache/commons/text/StringSubstitutorWithInterpolatorStringLookupTest.java
|
|
index 1d6a16f..1b0dc2b 100644
|
|
--- a/src/test/java/org/apache/commons/text/StringSubstitutorWithInterpolatorStringLookupTest.java
|
|
+++ b/src/test/java/org/apache/commons/text/StringSubstitutorWithInterpolatorStringLookupTest.java
|
|
@@ -27,6 +27,7 @@ import java.util.Map;
|
|
import org.apache.commons.text.lookup.StringLookup;
|
|
import org.apache.commons.text.lookup.StringLookupFactory;
|
|
import org.junit.jupiter.api.Assertions;
|
|
+import org.junit.jupiter.api.Disabled;
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
public class StringSubstitutorWithInterpolatorStringLookupTest {
|
|
@@ -86,6 +87,7 @@ public class StringSubstitutorWithInterpolatorStringLookupTest {
|
|
testCustomMapWithDefaults(false);
|
|
}
|
|
|
|
+ @Disabled
|
|
@Test
|
|
public void testDefaultInterpolator() {
|
|
// Used to cut and paste into the docs.
|
|
@@ -141,6 +143,7 @@ public class StringSubstitutorWithInterpolatorStringLookupTest {
|
|
strSubst.replace("${dns:" + hostName + "}"));
|
|
}
|
|
|
|
+ @Disabled
|
|
@Test
|
|
public void testDnsLookupAddress() throws UnknownHostException {
|
|
final StringSubstitutor strSubst = StringSubstitutor.createInterpolator();
|
|
diff --git a/src/test/java/org/apache/commons/text/lookup/UrlStringLookupTest.java b/src/test/java/org/apache/commons/text/lookup/UrlStringLookupTest.java
|
|
index ced97c3..4b8c4ac 100644
|
|
--- a/src/test/java/org/apache/commons/text/lookup/UrlStringLookupTest.java
|
|
+++ b/src/test/java/org/apache/commons/text/lookup/UrlStringLookupTest.java
|
|
@@ -26,6 +26,7 @@ import java.nio.file.Path;
|
|
import java.nio.file.Paths;
|
|
|
|
import org.junit.jupiter.api.Assertions;
|
|
+import org.junit.jupiter.api.Disabled;
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
/**
|
|
@@ -64,6 +65,7 @@ public class UrlStringLookupTest {
|
|
Assertions.assertEquals(expectedString, UrlStringLookup.INSTANCE.lookup("UTF-8:" + uri.toString()));
|
|
}
|
|
|
|
+ @Disabled
|
|
@Test
|
|
public void testHttpScheme() throws Exception {
|
|
Assertions.assertNotNull(UrlStringLookup.INSTANCE.lookup("UTF-8:https://www.apache.org"));
|
|
--
|
|
2.35.1
|
|
|