Merge remote-tracking branch 'origin/jetty-11.0.x' into jetty-12.0.x
This commit is contained in:
commit
c1f1a6018b
|
@ -14,8 +14,8 @@
|
|||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<!-- versions for these plugins are not based on parent pom -->
|
||||
<maven.remote-resources.plugin.version>3.0.0</maven.remote-resources.plugin.version>
|
||||
<maven.surefire.plugin.version>3.0.0</maven.surefire.plugin.version>
|
||||
<maven.remote-resources.plugin.version>3.1.0</maven.remote-resources.plugin.version>
|
||||
<maven.surefire.plugin.version>3.1.0</maven.surefire.plugin.version>
|
||||
<maven.deploy.skip>true</maven.deploy.skip>
|
||||
<maven.javadoc.skip>true</maven.javadoc.skip>
|
||||
<skipTests>true</skipTests>
|
||||
|
|
|
@ -35,10 +35,10 @@
|
|||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-util</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-slf4j-impl</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
|
|
@ -39,6 +39,9 @@ import org.junit.jupiter.api.extension.ExtendWith;
|
|||
|
||||
import static org.eclipse.jetty.quic.quiche.Quiche.QUICHE_MIN_CLIENT_INITIAL_LEN;
|
||||
import static org.hamcrest.MatcherAssert.assertThat;
|
||||
import static org.hamcrest.Matchers.both;
|
||||
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
|
||||
import static org.hamcrest.Matchers.lessThanOrEqualTo;
|
||||
import static org.hamcrest.Matchers.not;
|
||||
import static org.hamcrest.Matchers.nullValue;
|
||||
import static org.hamcrest.core.Is.is;
|
||||
|
@ -148,6 +151,20 @@ public class LowLevelQuicheClientCertTest
|
|||
assertThat(fed, is(expectedSize));
|
||||
}
|
||||
|
||||
private void drainServerToFeedClient(Map.Entry<ForeignIncubatorQuicheConnection, ForeignIncubatorQuicheConnection> entry, int expectedSizeLowerBound, int expectedSizeUpperBound) throws IOException
|
||||
{
|
||||
ForeignIncubatorQuicheConnection clientQuicheConnection = entry.getKey();
|
||||
ForeignIncubatorQuicheConnection serverQuicheConnection = entry.getValue();
|
||||
ByteBuffer buffer = ByteBuffer.allocate(QUICHE_MIN_CLIENT_INITIAL_LEN);
|
||||
|
||||
int drained = serverQuicheConnection.drainCipherBytes(buffer);
|
||||
|
||||
assertThat(drained, is(both(greaterThanOrEqualTo(expectedSizeLowerBound)).and(lessThanOrEqualTo(expectedSizeUpperBound))));
|
||||
buffer.flip();
|
||||
int fed = clientQuicheConnection.feedCipherBytes(buffer, clientSocketAddress, serverSocketAddress);
|
||||
assertThat(fed, is(both(greaterThanOrEqualTo(expectedSizeLowerBound)).and(lessThanOrEqualTo(expectedSizeUpperBound))));
|
||||
}
|
||||
|
||||
private void drainClientToFeedServer(Map.Entry<ForeignIncubatorQuicheConnection, ForeignIncubatorQuicheConnection> entry, int expectedSize) throws IOException
|
||||
{
|
||||
ForeignIncubatorQuicheConnection clientQuicheConnection = entry.getKey();
|
||||
|
@ -218,7 +235,7 @@ public class LowLevelQuicheClientCertTest
|
|||
assertThat(clientQuicheConnection.isConnectionEstablished(), is(true));
|
||||
|
||||
// 2nd round (needed b/c of client cert)
|
||||
drainServerToFeedClient(entry, 71);
|
||||
drainServerToFeedClient(entry, 71, 72);
|
||||
assertThat(serverQuicheConnection.isConnectionEstablished(), is(false));
|
||||
assertThat(clientQuicheConnection.isConnectionEstablished(), is(true));
|
||||
|
||||
|
|
|
@ -38,6 +38,9 @@ import org.junit.jupiter.api.extension.ExtendWith;
|
|||
|
||||
import static org.eclipse.jetty.quic.quiche.Quiche.QUICHE_MIN_CLIENT_INITIAL_LEN;
|
||||
import static org.hamcrest.MatcherAssert.assertThat;
|
||||
import static org.hamcrest.Matchers.both;
|
||||
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
|
||||
import static org.hamcrest.Matchers.lessThanOrEqualTo;
|
||||
import static org.hamcrest.Matchers.not;
|
||||
import static org.hamcrest.Matchers.nullValue;
|
||||
import static org.hamcrest.core.Is.is;
|
||||
|
@ -147,6 +150,20 @@ public class LowLevelQuicheClientCertTest
|
|||
assertThat(fed, is(expectedSize));
|
||||
}
|
||||
|
||||
private void drainServerToFeedClient(Map.Entry<JnaQuicheConnection, JnaQuicheConnection> entry, int expectedSizeLowerBound, int expectedSizeUpperBound) throws IOException
|
||||
{
|
||||
JnaQuicheConnection clientQuicheConnection = entry.getKey();
|
||||
JnaQuicheConnection serverQuicheConnection = entry.getValue();
|
||||
ByteBuffer buffer = ByteBuffer.allocate(QUICHE_MIN_CLIENT_INITIAL_LEN);
|
||||
|
||||
int drained = serverQuicheConnection.drainCipherBytes(buffer);
|
||||
|
||||
assertThat(drained, is(both(greaterThanOrEqualTo(expectedSizeLowerBound)).and(lessThanOrEqualTo(expectedSizeUpperBound))));
|
||||
buffer.flip();
|
||||
int fed = clientQuicheConnection.feedCipherBytes(buffer, clientSocketAddress, serverSocketAddress);
|
||||
assertThat(fed, is(both(greaterThanOrEqualTo(expectedSizeLowerBound)).and(lessThanOrEqualTo(expectedSizeUpperBound))));
|
||||
}
|
||||
|
||||
private void drainClientToFeedServer(Map.Entry<JnaQuicheConnection, JnaQuicheConnection> entry, int expectedSize) throws IOException
|
||||
{
|
||||
JnaQuicheConnection clientQuicheConnection = entry.getKey();
|
||||
|
@ -217,7 +234,7 @@ public class LowLevelQuicheClientCertTest
|
|||
assertThat(clientQuicheConnection.isConnectionEstablished(), is(true));
|
||||
|
||||
// 2nd round (needed b/c of client cert)
|
||||
drainServerToFeedClient(entry, 72);
|
||||
drainServerToFeedClient(entry, 71, 72);
|
||||
assertThat(serverQuicheConnection.isConnectionEstablished(), is(false));
|
||||
assertThat(clientQuicheConnection.isConnectionEstablished(), is(true));
|
||||
|
||||
|
|
|
@ -197,5 +197,10 @@
|
|||
<artifactId>jetty-ee9-websocket-jakarta-server</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-slf4j-impl</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
|
|
@ -27,12 +27,7 @@
|
|||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-slf4j-impl</artifactId>
|
||||
<scope>compile</scope>
|
||||
<artifactId>slf4j-simple</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty.ee9</groupId>
|
||||
|
|
|
@ -105,6 +105,10 @@
|
|||
<dependency>
|
||||
<groupId>org.eclipse.jetty.toolchain</groupId>
|
||||
<artifactId>jetty-test-helper</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-slf4j-impl</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
|
|
@ -27,11 +27,6 @@
|
|||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-slf4j-impl</artifactId>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<finalName>jetty-ee9-jmx-webapp</finalName>
|
||||
|
|
|
@ -13,15 +13,6 @@
|
|||
<name>EE9 :: Tests :: OpenId WebApp</name>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-slf4j-impl</artifactId>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty.toolchain</groupId>
|
||||
<artifactId>jetty-jakarta-servlet-api</artifactId>
|
||||
|
|
|
@ -15,12 +15,7 @@
|
|||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-slf4j-impl</artifactId>
|
||||
<scope>compile</scope>
|
||||
<artifactId>slf4j-simple</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty.toolchain</groupId>
|
||||
|
|
|
@ -15,12 +15,7 @@
|
|||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-slf4j-impl</artifactId>
|
||||
<scope>compile</scope>
|
||||
<artifactId>slf4j-simple</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty.toolchain</groupId>
|
||||
|
|
|
@ -18,9 +18,8 @@
|
|||
<artifactId>slf4j-api</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-slf4j-impl</artifactId>
|
||||
<scope>compile</scope>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-simple</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty.toolchain</groupId>
|
||||
|
|
|
@ -94,5 +94,10 @@
|
|||
<artifactId>jetty-test-helper</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-slf4j-impl</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
|
32
pom.xml
32
pom.xml
|
@ -36,7 +36,7 @@
|
|||
<apache.avro.version>1.11.1</apache.avro.version>
|
||||
<apache.httpclient.version>4.5.14</apache.httpclient.version>
|
||||
<apache.httpcore.version>4.4.16</apache.httpcore.version>
|
||||
<asciidoctorj-diagram.version>2.2.7</asciidoctorj-diagram.version>
|
||||
<asciidoctorj-diagram.version>2.2.8</asciidoctorj-diagram.version>
|
||||
<asciidoctorj.version>2.5.7</asciidoctorj.version>
|
||||
<mina.core.version>2.2.1</mina.core.version>
|
||||
<asm.version>9.5</asm.version>
|
||||
|
@ -46,7 +46,7 @@
|
|||
<checkstyle.version>10.6.0</checkstyle.version>
|
||||
<commons-codec.version>1.15</commons-codec.version>
|
||||
<commons.compress.version>1.23.0</commons.compress.version>
|
||||
<commons.io.version>2.11.0</commons.io.version>
|
||||
<commons.io.version>2.12.0</commons.io.version>
|
||||
<commons-lang3.version>3.12.0</commons-lang3.version>
|
||||
<conscrypt.version>2.5.2</conscrypt.version>
|
||||
<disruptor.version>3.4.2</disruptor.version>
|
||||
|
@ -97,7 +97,7 @@
|
|||
<jmh.version>1.36</jmh.version>
|
||||
<jna.version>5.13.0</jna.version>
|
||||
<json-simple.version>1.1.1</json-simple.version>
|
||||
<json-smart.version>2.4.10</json-smart.version>
|
||||
<json-smart.version>2.4.11</json-smart.version>
|
||||
<junit.version>5.9.3</junit.version>
|
||||
<jsp.impl.version>10.0.14</jsp.impl.version>
|
||||
<kerb-simplekdc.version>2.0.3</kerb-simplekdc.version>
|
||||
|
@ -107,7 +107,7 @@
|
|||
<mariadb.docker.version>10.3.6</mariadb.docker.version>
|
||||
<maven.deps.version>3.8.7</maven.deps.version>
|
||||
<maven-artifact-transfer.version>0.13.1</maven-artifact-transfer.version>
|
||||
<maven.resolver.version>1.9.8</maven.resolver.version>
|
||||
<maven.resolver.version>1.9.10</maven.resolver.version>
|
||||
<maven.version>3.9.0</maven.version>
|
||||
<mongodb.version>3.12.11</mongodb.version>
|
||||
<openpojo.version>0.9.1</openpojo.version>
|
||||
|
@ -142,13 +142,13 @@
|
|||
<springboot.version>2.1.1.RELEASE</springboot.version>
|
||||
<taglibs-standard-impl.version>1.2.5</taglibs-standard-impl.version>
|
||||
<taglibs-standard-spec.version>1.2.5</taglibs-standard-spec.version>
|
||||
<testcontainers.version>1.18.0</testcontainers.version>
|
||||
<testcontainers.version>1.18.3</testcontainers.version>
|
||||
<wildfly.common.version>1.6.0.Final</wildfly.common.version>
|
||||
<wildfly.elytron.version>2.1.0.Final</wildfly.elytron.version>
|
||||
<wildfly.elytron.version>2.2.0.Final</wildfly.elytron.version>
|
||||
<xmemcached.version>2.4.7</xmemcached.version>
|
||||
|
||||
<!-- some maven plugins versions -->
|
||||
<asciidoctor.maven.plugin.version>2.2.3</asciidoctor.maven.plugin.version>
|
||||
<asciidoctor.maven.plugin.version>2.2.4</asciidoctor.maven.plugin.version>
|
||||
<build-helper.maven.plugin.version>3.3.0</build-helper.maven.plugin.version>
|
||||
<buildnumber.maven.plugin.version>3.0.0</buildnumber.maven.plugin.version>
|
||||
<depends.maven.plugin.version>1.4.0</depends.maven.plugin.version>
|
||||
|
@ -159,29 +159,29 @@
|
|||
<jetty-version.maven.plugin.version>2.7</jetty-version.maven.plugin.version>
|
||||
<license.maven.plugin.version>4.1</license.maven.plugin.version>
|
||||
<maven.antrun.plugin.version>3.1.0</maven.antrun.plugin.version>
|
||||
<maven.assembly.plugin.version>3.5.0</maven.assembly.plugin.version>
|
||||
<maven.assembly.plugin.version>3.6.0</maven.assembly.plugin.version>
|
||||
<maven.bundle.plugin.version>5.1.8</maven.bundle.plugin.version>
|
||||
<maven.clean.plugin.version>3.2.0</maven.clean.plugin.version>
|
||||
<maven.checkstyle.plugin.version>3.2.2</maven.checkstyle.plugin.version>
|
||||
<maven.checkstyle.plugin.version>3.3.0</maven.checkstyle.plugin.version>
|
||||
<maven.compiler.plugin.version>3.11.0</maven.compiler.plugin.version>
|
||||
<maven.dependency.plugin.version>3.5.0</maven.dependency.plugin.version>
|
||||
<maven.dependency.plugin.version>3.6.0</maven.dependency.plugin.version>
|
||||
<maven.deploy.plugin.version>3.1.1</maven.deploy.plugin.version>
|
||||
<maven.enforcer.plugin.version>3.3.0</maven.enforcer.plugin.version>
|
||||
<maven.exec.plugin.version>3.1.0</maven.exec.plugin.version>
|
||||
<maven.gpg.plugin.version>3.0.1</maven.gpg.plugin.version>
|
||||
<maven.gpg.plugin.version>3.1.0</maven.gpg.plugin.version>
|
||||
<maven.install.plugin.version>3.1.1</maven.install.plugin.version>
|
||||
<maven.invoker.plugin.version>3.5.1</maven.invoker.plugin.version>
|
||||
<groovy.version>4.0.6</groovy.version>
|
||||
<maven.jar.plugin.version>3.3.0</maven.jar.plugin.version>
|
||||
<maven.javadoc.plugin.version>3.5.0</maven.javadoc.plugin.version>
|
||||
<maven.plugin-tools.version>3.8.2</maven.plugin-tools.version>
|
||||
<maven-plugin.plugin.version>3.8.2</maven-plugin.plugin.version>
|
||||
<maven.plugin-tools.version>3.9.0</maven.plugin-tools.version>
|
||||
<maven-plugin.plugin.version>3.9.0</maven-plugin.plugin.version>
|
||||
<maven.release.plugin.version>3.0.0</maven.release.plugin.version>
|
||||
<maven.remote-resources-plugin.version>3.0.0</maven.remote-resources-plugin.version>
|
||||
<maven.remote-resources-plugin.version>3.1.0</maven.remote-resources-plugin.version>
|
||||
<maven.resources.plugin.version>3.3.1</maven.resources.plugin.version>
|
||||
<maven.shade.plugin.version>3.4.1</maven.shade.plugin.version>
|
||||
<maven.surefire.plugin.version>3.0.0</maven.surefire.plugin.version>
|
||||
<maven.source.plugin.version>3.2.1</maven.source.plugin.version>
|
||||
<maven.surefire.plugin.version>3.1.0</maven.surefire.plugin.version>
|
||||
<maven.source.plugin.version>3.3.0</maven.source.plugin.version>
|
||||
<maven.war.plugin.version>3.3.2</maven.war.plugin.version>
|
||||
<spotbugs.maven.plugin.version>4.7.2.0</spotbugs.maven.plugin.version>
|
||||
<versions.maven.plugin.version>2.14.2</versions.maven.plugin.version>
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-slf4j-impl</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
|
|
Loading…
Reference in New Issue