[Git][java-team/maven-verifier][master] 4 commits: Disable tests requiring network access (Closes: #1037064)
Tony Mancill (@tmancill)
gitlab at salsa.debian.org
Fri Jun 16 04:19:31 BST 2023
Tony Mancill pushed to branch master at Debian Java Maintainers / maven-verifier
Commits:
c761ab42 by tony mancill at 2023-06-15T20:14:21-07:00
Disable tests requiring network access (Closes: #1037064)
- - - - -
04863c93 by tony mancill at 2023-06-15T20:14:24-07:00
Freshen years in debian/copyright
- - - - -
e9f3b11b by tony mancill at 2023-06-15T20:14:24-07:00
Set Rules-Requires-Root: no in debian/control
- - - - -
b64d1edb by tony mancill at 2023-06-15T20:14:24-07:00
Prepare changelog for upload
- - - - -
4 changed files:
- debian/changelog
- debian/control
- debian/copyright
- debian/patches/01-fix-builder-test-failures.patch
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,12 @@
+maven-verifier (1.8.0-2) unstable; urgency=medium
+
+ * Team upload.
+ * Rework tests patch to disable network access (Closes: #1037064)
+ * Freshen years in debian/copyright
+ * Set Rules-Requires-Root: no in debian/control
+
+ -- tony mancill <tmancill at debian.org> Thu, 15 Jun 2023 20:13:15 -0700
+
maven-verifier (1.8.0-1) unstable; urgency=medium
* Team upload.
=====================================
debian/control
=====================================
@@ -17,6 +17,7 @@ Standards-Version: 4.6.2
Vcs-Git: https://salsa.debian.org/java-team/maven-verifier.git
Vcs-Browser: https://salsa.debian.org/java-team/maven-verifier
Homepage: http://maven.apache.org/shared/maven-verifier/
+Rules-Requires-Root: no
Package: libmaven-verifier-java
Architecture: all
=====================================
debian/copyright
=====================================
@@ -1,4 +1,4 @@
-Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: Maven Verifier
Source: https://github.com/apache/maven-verifier
@@ -11,6 +11,8 @@ License: Apache-2.0
Files: debian/*
Copyright: 2009, Ludovic Claude <ludovic.claude at laposte.net>
2011, Torsten Werner <twerner at debian.org>
+ 2017-2023, Emmanuel Bourg <ebourg at apache.org>
+ 2023, tony mancill <tmancill at debian.org>
License: GPL-3+
On Debian GNU/Linux system you can find the complete text of the
GPL-3 license in '/usr/share/common-licenses/GPL-3'
=====================================
debian/patches/01-fix-builder-test-failures.patch
=====================================
@@ -1,21 +1,35 @@
-Description: Skips the test requiring a home directory (which is missing on the builders)
-Author: Emmanuel Bourg <ebourg at apache.org>
+Description: Skips the test requiring network access
+ I spent some time exploring an alternate approach - specifically
+ running Maven in offline mode (with -o) and setting maven.repo.local
+ to point to /usr/share/maven-repo, but the embedded Maven was unable
+ to resolve the org.eclipse.sisu:sisu-maven-plugin.
+Bug-Debian: https://bugs.debian.org/1037064
+Author: tony mancill <tmancill at debian.org>
Forwarded: not-needed
+
--- a/src/test/java/org/apache/maven/it/Embedded3xLauncherTest.java
+++ b/src/test/java/org/apache/maven/it/Embedded3xLauncherTest.java
-@@ -42,6 +42,7 @@
+@@ -24,6 +24,7 @@
+ import java.nio.file.Paths;
+ import java.util.Properties;
+
++import org.junit.Ignore;
+ import org.junit.Rule;
+ import org.junit.Test;
+ import org.junit.rules.TemporaryFolder;
+@@ -40,6 +41,7 @@
+ private final String workingDir = Paths.get( "src/test/resources" ).toAbsolutePath().toString();
+
@Test
++ @Ignore("disable test that requires network access")
public void testWithClasspath() throws Exception
{
-+ org.junit.Assume.assumeTrue("Missing user home directory", new File(System.getProperty("user.home")).exists());
MavenLauncher launcher = Embedded3xLauncher.createFromClasspath();
- runLauncher( launcher );
+@@ -47,6 +49,7 @@
}
-@@ -49,6 +50,7 @@
+
@Test
++ @Ignore("disable test that requires network access")
public void testWithMavenHome() throws Exception
{
-+ org.junit.Assume.assumeTrue("Missing user home directory", new File(System.getProperty("user.home")).exists());
MavenLauncher launcher = Embedded3xLauncher.createFromMavenHome(
- System.getProperty( "maven.home" ), null, null );
- runLauncher( launcher );
View it on GitLab: https://salsa.debian.org/java-team/maven-verifier/-/compare/87e62901e616d27a0de12f660247f07c62a29602...b64d1edb6aa7b545b3fce2b3d9c78b8560c0c801
--
View it on GitLab: https://salsa.debian.org/java-team/maven-verifier/-/compare/87e62901e616d27a0de12f660247f07c62a29602...b64d1edb6aa7b545b3fce2b3d9c78b8560c0c801
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/pkg-java-commits/attachments/20230616/09431e7b/attachment.htm>
More information about the pkg-java-commits
mailing list