Merge remote-tracking branch 'origin/jetty-10.0.x' into jetty-11.0.x

This commit is contained in:
Joakim Erdfelt 2022-10-01 15:14:17 -05:00
commit 8867b9198a
No known key found for this signature in database
GPG Key ID: 2D0E1FB8FE4B68B4
4 changed files with 13 additions and 11 deletions

View File

@ -15,6 +15,7 @@ package org.eclipse.jetty.test.keystore;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.nio.file.Path;
import jakarta.servlet.ServletException; import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletRequest;
@ -34,7 +35,7 @@ import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.ServerConnector; import org.eclipse.jetty.server.ServerConnector;
import org.eclipse.jetty.server.SslConnectionFactory; import org.eclipse.jetty.server.SslConnectionFactory;
import org.eclipse.jetty.server.handler.AbstractHandler; import org.eclipse.jetty.server.handler.AbstractHandler;
import org.eclipse.jetty.toolchain.test.MavenTestingUtils; import org.eclipse.jetty.toolchain.test.jupiter.WorkDir;
import org.eclipse.jetty.util.ssl.SslContextFactory; import org.eclipse.jetty.util.ssl.SslContextFactory;
import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.BeforeEach;
@ -55,12 +56,12 @@ public class KeystoreGeneratorTest
} }
@BeforeEach @BeforeEach
public void before() throws Exception public void before(WorkDir workDir) throws Exception
{ {
// Generate a test keystore. // Generate a test keystore.
String password = "myKeystorePassword"; String password = "myKeystorePassword";
File targetTestingDir = MavenTestingUtils.getTargetTestingDir(); Path outputFile = workDir.getEmptyPathDir().resolve("keystore-test.p12");
File myPassword = KeystoreGenerator.generateTestKeystore(targetTestingDir.getAbsolutePath(), password); File myPassword = KeystoreGenerator.generateTestKeystore(outputFile.toString(), password);
assertTrue(myPassword.exists()); assertTrue(myPassword.exists());
// Configure the SslContextFactory and HttpConnectionFactory to use the keystore. // Configure the SslContextFactory and HttpConnectionFactory to use the keystore.

View File

@ -14,7 +14,7 @@
<properties> <properties>
<osgi-version>3.18.100</osgi-version> <osgi-version>3.18.100</osgi-version>
<osgi-services-version>3.10.200</osgi-services-version> <osgi-services-version>3.10.200</osgi-services-version>
<osgi-util-version>3.7.1</osgi-util-version> <osgi-util-version>3.7.100</osgi-util-version>
<osgi-util-function-version>1.2.0</osgi-util-function-version> <osgi-util-function-version>1.2.0</osgi-util-function-version>
<osgi-util-promise-version>1.2.0</osgi-util-promise-version> <osgi-util-promise-version>1.2.0</osgi-util-promise-version>
<osgi-util-measurement-version>1.0.2</osgi-util-measurement-version> <osgi-util-measurement-version>1.0.2</osgi-util-measurement-version>

View File

@ -130,6 +130,7 @@ public class WSServer extends LocalServer implements LocalFuzzer.Provider
{ {
File testWebXml = MavenTestingUtils.getTestResourceFile(testResourceName); File testWebXml = MavenTestingUtils.getTestResourceFile(testResourceName);
Path webXml = webInf.resolve("web.xml"); Path webXml = webInf.resolve("web.xml");
Files.deleteIfExists(webXml);
IO.copy(testWebXml, webXml.toFile()); IO.copy(testWebXml, webXml.toFile());
} }

12
pom.xml
View File

@ -29,7 +29,7 @@
<apache.httpclient.version>4.5.13</apache.httpclient.version> <apache.httpclient.version>4.5.13</apache.httpclient.version>
<apache.httpcore.version>4.4.15</apache.httpcore.version> <apache.httpcore.version>4.4.15</apache.httpcore.version>
<asciidoctorj-diagram.version>2.2.3</asciidoctorj-diagram.version> <asciidoctorj-diagram.version>2.2.3</asciidoctorj-diagram.version>
<asciidoctorj.version>2.5.5</asciidoctorj.version> <asciidoctorj.version>2.5.6</asciidoctorj.version>
<asm.version>9.3</asm.version> <asm.version>9.3</asm.version>
<awaitility.version>4.2.0</awaitility.version> <awaitility.version>4.2.0</awaitility.version>
<bndlib.version>6.3.1</bndlib.version> <bndlib.version>6.3.1</bndlib.version>
@ -52,7 +52,7 @@
<hawtio.version>2.15.2</hawtio.version> <hawtio.version>2.15.2</hawtio.version>
<hazelcast.version>4.2.5</hazelcast.version> <hazelcast.version>4.2.5</hazelcast.version>
<infinispan.protostream.version>4.4.4.Final</infinispan.protostream.version> <infinispan.protostream.version>4.4.4.Final</infinispan.protostream.version>
<infinispan.version>11.0.15.Final</infinispan.version> <infinispan.version>11.0.16.Final</infinispan.version>
<jackson.annotations.version>2.13.4</jackson.annotations.version> <jackson.annotations.version>2.13.4</jackson.annotations.version>
<jackson.core.version>2.13.4</jackson.core.version> <jackson.core.version>2.13.4</jackson.core.version>
<jackson.databind.version>2.13.4</jackson.databind.version> <jackson.databind.version>2.13.4</jackson.databind.version>
@ -89,7 +89,7 @@
<jetty.servlet.api.version>5.0.2</jetty.servlet.api.version> <jetty.servlet.api.version>5.0.2</jetty.servlet.api.version>
<jetty-quiche-native.version>0.12.0</jetty-quiche-native.version> <jetty-quiche-native.version>0.12.0</jetty-quiche-native.version>
<jetty-test-policy.version>1.2</jetty-test-policy.version> <jetty-test-policy.version>1.2</jetty-test-policy.version>
<jetty.test.version>5.9</jetty.test.version> <jetty.test.version>6.0</jetty.test.version>
<jmh.version>1.35</jmh.version> <jmh.version>1.35</jmh.version>
<jna.version>5.12.1</jna.version> <jna.version>5.12.1</jna.version>
<jnr-constants.version>0.10.3</jnr-constants.version> <jnr-constants.version>0.10.3</jnr-constants.version>
@ -104,7 +104,7 @@
<kerb-simplekdc.version>2.0.2</kerb-simplekdc.version> <kerb-simplekdc.version>2.0.2</kerb-simplekdc.version>
<log4j2.version>2.19.0</log4j2.version> <log4j2.version>2.19.0</log4j2.version>
<logback.version>1.4.1</logback.version> <logback.version>1.4.1</logback.version>
<mariadb.version>3.0.7</mariadb.version> <mariadb.version>3.0.8</mariadb.version>
<mariadb.docker.version>10.3.6</mariadb.docker.version> <mariadb.docker.version>10.3.6</mariadb.docker.version>
<maven.resolver.version>1.8.2</maven.resolver.version> <maven.resolver.version>1.8.2</maven.resolver.version>
<maven.version>3.8.6</maven.version> <maven.version>3.8.6</maven.version>
@ -120,7 +120,7 @@
<springboot.version>2.1.1.RELEASE</springboot.version> <springboot.version>2.1.1.RELEASE</springboot.version>
<taglibs-standard-impl.version>1.2.5</taglibs-standard-impl.version> <taglibs-standard-impl.version>1.2.5</taglibs-standard-impl.version>
<taglibs-standard-spec.version>1.2.5</taglibs-standard-spec.version> <taglibs-standard-spec.version>1.2.5</taglibs-standard-spec.version>
<testcontainers.version>1.17.3</testcontainers.version> <testcontainers.version>1.17.4</testcontainers.version>
<weld.version>4.0.3.Final</weld.version> <weld.version>4.0.3.Final</weld.version>
<wildfly.common.version>1.6.0.Final</wildfly.common.version> <wildfly.common.version>1.6.0.Final</wildfly.common.version>
<wildfly.elytron.version>2.0.0.Final</wildfly.elytron.version> <wildfly.elytron.version>2.0.0.Final</wildfly.elytron.version>
@ -149,7 +149,7 @@
<maven.gpg.plugin.version>3.0.1</maven.gpg.plugin.version> <maven.gpg.plugin.version>3.0.1</maven.gpg.plugin.version>
<maven.install.plugin.version>3.0.1</maven.install.plugin.version> <maven.install.plugin.version>3.0.1</maven.install.plugin.version>
<maven.invoker.plugin.version>3.3.0</maven.invoker.plugin.version> <maven.invoker.plugin.version>3.3.0</maven.invoker.plugin.version>
<maven.jar.plugin.version>3.2.2</maven.jar.plugin.version> <maven.jar.plugin.version>3.3.0</maven.jar.plugin.version>
<maven.javadoc.plugin.version>3.4.1</maven.javadoc.plugin.version> <maven.javadoc.plugin.version>3.4.1</maven.javadoc.plugin.version>
<maven.plugin-tools.version>3.6.4</maven.plugin-tools.version> <maven.plugin-tools.version>3.6.4</maven.plugin-tools.version>
<maven-plugin.plugin.version>3.6.4</maven-plugin.plugin.version> <maven-plugin.plugin.version>3.6.4</maven-plugin.plugin.version>