From e6a08c75177ac7fa05b21ddccc90e0036d69e55d Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Sun, 17 Apr 2022 21:31:02 +1000 Subject: use testcontainers to run cassandra tests (#79) * use testcontainers for cassandra test Signed-off-by: Olivier Lamy --- .../metadata-store-cassandra/pom.xml | 169 ++------------------- 1 file changed, 12 insertions(+), 157 deletions(-) (limited to 'archiva-modules/metadata/metadata-store-provider/metadata-store-cassandra/pom.xml') diff --git a/archiva-modules/metadata/metadata-store-provider/metadata-store-cassandra/pom.xml b/archiva-modules/metadata/metadata-store-provider/metadata-store-cassandra/pom.xml index 4aee87311..fcdce8a99 100644 --- a/archiva-modules/metadata/metadata-store-provider/metadata-store-cassandra/pom.xml +++ b/archiva-modules/metadata/metadata-store-provider/metadata-store-cassandra/pom.xml @@ -44,12 +44,6 @@ org.apache.archiva metadata-repository-api - - org.apache.archiva - metadata-repository-api - tests - test - org.apache.archiva archiva-common @@ -79,7 +73,6 @@ metadata-model - jakarta.annotation jakarta.annotation-api @@ -119,11 +112,11 @@ ${datastax.driver.version} - - org.junit.jupiter - junit-jupiter-api + org.apache.archiva + metadata-repository-api + tests test @@ -165,158 +158,32 @@ org.apache.logging.log4j - log4j-1.2-api + log4j-core ${log4j.version} test - org.junit.jupiter - junit-jupiter-engine + org.testcontainers + cassandra + 1.17.1 test - - - - src/test/filtered-resources - true - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - reserve-ports - process-test-resources - - reserve-network-port - - - - cassandra.rpcPort - cassandra.storagePort - cassandra.stopPort - cassandra.jmxPort - cassandra.nativeTransportPort - - - - - - - org.codehaus.mojo - cassandra-maven-plugin - 3.7-SNAPSHOT - - - start-cassandra - pre-integration-test - - start - - - ${cassandra.nativeTransportPort} - ${cassandra.rpcPort} - ${cassandra.storagePort} - ${cassandra.stopPort} - ${cassandra.jmxPort} - false - false - 500 - true - INFO - false - - ${cassandra.jmxPort} - - - - - - stop-cassandra - post-integration-test - - stop - - - - - - org.slf4j - slf4j-simple - ${slf4j.version} - - - net.java.dev.jna - jna - 4.2.2 - - - org.apache.cassandra - cassandra-all - ${cassandraVersion} - - - - - org.apache.maven.plugins - maven-failsafe-plugin - 3.0.0-M5 - - - - integration-test - verify - - - - - - **/*Test.java - - - ${cassandra.nativeTransportPort} - 127.0.0.1 - cassandra - ${project.build.directory}/appserver-base - true - - false - false - ${project.build.outputDirectory} - - - - org.junit.jupiter - junit-jupiter-engine - ${junit.jupiter.version} - - - - - org.apache.maven.plugins maven-surefire-plugin - - - true + + cassandra + ${project.build.directory}/appserver-base + ${cassandraVersion} + @@ -326,7 +193,6 @@ num_tokens: 1 src/cassandra/** - src/test/resources/cassandra-test.yaml @@ -334,15 +200,4 @@ num_tokens: 1 - - - jdk9+ - - [1.9,) - - - true - - - -- cgit v1.2.3