jetty.project/tests/test-distribution/pom.xml

245 lines
7.9 KiB
XML
Raw Normal View History

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>org.eclipse.jetty.tests</groupId>
<artifactId>tests-parent</artifactId>
2021-10-06 15:51:32 -04:00
<version>10.0.8-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>test-distribution</artifactId>
<packaging>jar</packaging>
<properties>
<bundle-symbolic-name>${project.groupId}.tests.distribution</bundle-symbolic-name>
<distribution.debug.port>-1</distribution.debug.port>
<home.start.timeout>10</home.start.timeout>
</properties>
<dependencies>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-util</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-artifact</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-resolver-provider</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-util</artifactId>
<version>${maven.resolver.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-api</artifactId>
<version>${maven.resolver.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-spi</artifactId>
<version>${maven.resolver.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-connector-basic</artifactId>
<version>${maven.resolver.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-transport-file</artifactId>
<version>${maven.resolver.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-transport-http</artifactId>
<version>${maven.resolver.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-slf4j-impl</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-home</artifactId>
<type>zip</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-client</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.http2</groupId>
<artifactId>http2-http-client-transport</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.demos</groupId>
<artifactId>demo-simple-webapp</artifactId>
<type>war</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.tests</groupId>
<artifactId>test-simple-session-webapp</artifactId>
<version>${project.version}</version>
<type>war</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.tests</groupId>
Issue #3804 - Update Decorator integration for various CDI implementations (#3838) * Jetty Issue #3804 WELD-2587 Support CDI integration: + cdi2 module exposes jetty APIs + cdi module uses DecorationListener Signed-off-by: Greg Wilkins <gregw@webtide.com> * Jetty Issue #3804 WELD-2587 Remove DecoratingListener tests from test-jetty-webapp Signed-off-by: Greg Wilkins <gregw@webtide.com> * improve CDI test Signed-off-by: Greg Wilkins <gregw@webtide.com> * Jetty Issue #3804 WELD-2587 Reverted test to use released CDI and cdi2 module for now. To test new mechanism, you need to build the weld snapshot locally, rebuild and switch to cdi module Signed-off-by: Greg Wilkins <gregw@webtide.com> * remove cdi2 webapp references Signed-off-by: Greg Wilkins <gregw@webtide.com> * document attribute Signed-off-by: Greg Wilkins <gregw@webtide.com> * improved documentation Signed-off-by: Greg Wilkins <gregw@webtide.com> * logging Signed-off-by: Greg Wilkins <gregw@webtide.com> * improved javadoc Signed-off-by: Greg Wilkins <gregw@webtide.com> * Fixed version Signed-off-by: Greg Wilkins <gregw@webtide.com> * Reverted to also provide the DecoratingListener in the decorate module. Renamed cdi-demo to weld-cdi-demo Signed-off-by: Greg Wilkins <gregw@webtide.com> * revert from Weld SNAPSHOT Signed-off-by: Greg Wilkins <gregw@webtide.com> * test all 3 weld integrations Signed-off-by: Greg Wilkins <gregw@webtide.com> * updated destory implementation to release creationalcontext Signed-off-by: Greg Wilkins <gregw@webtide.com> * reverted to released Weld version Signed-off-by: Greg Wilkins <gregw@webtide.com> * Issue #3804 CDI integration dispose and release context in destroy Signed-off-by: Greg Wilkins <gregw@webtide.com> * Improved CDI module documentation Signed-off-by: Greg Wilkins <gregw@webtide.com> * WIP on OWB Signed-off-by: Greg Wilkins <gregw@webtide.com> * Updates from review Parameterised CDITests Signed-off-by: Greg Wilkins <gregw@webtide.com> * share webapp resources for cdi webapp test Signed-off-by: olivier lamy <oliver.lamy@gmail.com> * Initialize OWB with a SCI so that listeners can be decorated Signed-off-by: Greg Wilkins <gregw@webtide.com> * Added OwbDecorator so that cdi2 module can be tested with OWB Signed-off-by: Greg Wilkins <gregw@webtide.com> * Lookup attribute name Signed-off-by: Greg Wilkins <gregw@webtide.com> * Cleanups Signed-off-by: Greg Wilkins <gregw@webtide.com> * Cleanup from Review Don't do lazy bindings Signed-off-by: Greg Wilkins <gregw@webtide.com> * Cleanup from Review Treat partial CDI same as no CDI Signed-off-by: Greg Wilkins <gregw@webtide.com> * fix maven it test no more need of weld-servlet Signed-off-by: olivier lamy <oliver.lamy@gmail.com> * cleanup it parent pom removing non needed weld servlet Signed-off-by: olivier lamy <oliver.lamy@gmail.com> * upgraded to Weld 3.1.2.Final Signed-off-by: Greg Wilkins <gregw@webtide.com> * Cleanup from Review Signed-off-by: Greg Wilkins <gregw@webtide.com> * Cleanup from Review Signed-off-by: Greg Wilkins <gregw@webtide.com>
2019-08-07 22:04:07 -04:00
<artifactId>test-weld-cdi-webapp</artifactId>
<version>${project.version}</version>
<type>war</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.demos</groupId>
<artifactId>demo-jetty-webapp</artifactId>
<type>war</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.toolchain</groupId>
<artifactId>jetty-test-helper</artifactId>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-unixsocket-server</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-unixsocket-client</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.websocket</groupId>
<artifactId>websocket-jetty-client</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-util-ajax</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.websocket</groupId>
<artifactId>websocket-jetty-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.tests</groupId>
<artifactId>test-felix-webapp</artifactId>
<version>${project.version}</version>
<scope>test</scope>
<type>war</type>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.tests</groupId>
<artifactId>test-websocket-webapp</artifactId>
<version>${project.version}</version>
<scope>test</scope>
<type>war</type>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.tests</groupId>
<artifactId>test-bad-websocket-webapp</artifactId>
<version>${project.version}</version>
<scope>test</scope>
<type>war</type>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>testcontainers</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>mariadb</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>gcloud</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>mongodb</artifactId>
<scope>test</scope>
</dependency>
Issue #5684 - Windows test overhaul (#6581) Issue #5684 - Window's test overhaul + Migrate from @DisabledOnOs(WINDOWS) to assumptions on capabilities instead. + Fix other outstanding windows testing issues. + Cleanup FileBufferedResponseHandlerTest expectations on Windows. + PathWatcher scan interval is variable on windows + If unable to start testcase based on assumption, the stop shouldn't fail testcase + Increase various wait timeouts + Make tests less strict due to system speed issues + Disable Sni tests due to TLS behaviors differences in Windows + Windows TLSv1.3 seems to introduce this difference + If we restrict to TLSv1.2 this passes. + On Linux TLSv.13 on client side will always return a + javax.net.ssl.SSLHandshakeException in those test cases that expect it. + However, on Windows, Only the TLSv1.2 implementation will return a javax.net.ssl.SSLHandshakeException, + All other TLS versions on Windows will result in a + javax.net.ssl.SSLException: Software caused connection abort: recv failed + Disable ConcurrentStreamCreationTest + Not possible to create all of these streams. + Fixing DeploymentTempDirTest + Using unique workdir per testcase. + Don't expect to delete files / directories between tests (not supported on windows due to file locking anyway) + Fixing line ending difference on windows + InvalidPathException is a 404 Not Found + Cannot reuse test directory between runs due to memory mapped files that are still in use from previous run. + java.nio.file.FileSystemException: C:\code\jetty.project\jetty-webapp\target\tests\welcome#\index.html: The requested operation cannot be performed on a file with a user-mapped section open. at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92) at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103) at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108) at java.base/sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:235) at java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:478) at java.base/java.nio.file.Files.newOutputStream(Files.java:220) at org.eclipse.jetty.webapp/org.eclipse.jetty.webapp.WebAppDefaultServletTest.prepareServer(WebAppDefaultServletTest.java:84) + As is typical on windows, we are often unable to delete a file due to file locking issues. + Use a unique resource base between tests. This is to avoid file locking behaviors that prevent the resource base from being reused too quickly on windows. + Prevent test run if symlinks not supported + Allowing for Windows slosh char as well in asserts + SelectorUtils is File.separator dependent + Regex is now FS.separator independent + Using SelectorUtils from plexus correctly for include/exclude + Turning off mapped files for testing reasons. + Fix and re-enable RFC2616NIOHttpsTest + Issue #6552 - Fix test failures due to slf4j dep + Issue #6552 - upgrade testcontainers + Issue #6552 - move to assumption based docker existence + Issue #6552 - Fix enforcer rule violation on jna. Addresses the following side effect of upgrading testcontainers. [WARNING] Rule 3: org.apache.maven.plugins.enforcer.RequireUpperBoundDeps failed with message: Failed while enforcing RequireUpperBoundDeps. The error(s) are [ Require upper bound dependencies error for net.java.dev.jna:jna:5.6.0 paths to dependency are: +-org.eclipse.jetty:infinispan-remote-query:10.0.7-SNAPSHOT +-org.testcontainers:testcontainers:1.16.0 +-com.github.docker-java:docker-java-transport-zerodep:3.2.11 +-net.java.dev.jna:jna:5.6.0 (managed) <-- net.java.dev.jna:jna:5.8.0 + use annotation to disable test when docker not available and needed + Disabling FileSessionDistributionTests.stopRestartWebappTestSessionContentSaved on Windows + Using TLS basic + Programmatic removal of memory mapped behavior during testing + Fixing slf4j warning Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com> Co-authored-by: Olivier Lamy <oliver.lamy@gmail.com>
2021-08-26 12:26:46 -04:00
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mariadb.jdbc</groupId>
<artifactId>mariadb-java-client</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<mavenRepoPath>${settings.localRepository}</mavenRepoPath>
<jettyVersion>${project.version}</jettyVersion>
<hazelcast.version>${hazelcast.version}</hazelcast.version>
<mariadb.docker.version>${mariadb.docker.version}</mariadb.docker.version>
<distribution.debug.port>$(distribution.debug.port}</distribution.debug.port>
<home.start.timeout>${home.start.timeout}</home.start.timeout>
<mariadb.version>${mariadb.version}</mariadb.version>
<sessionLogLevel>${sessionLogLevel}</sessionLogLevel>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>jdk16</id>
<activation>
<jdk>[16,)</jdk>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<cdi.tests.jvmArgs>--add-opens java.base/jdk.internal.misc=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED</cdi.tests.jvmArgs>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles>
</project>