always run the test except if Docker not available
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
This commit is contained in:
parent
7cc3573ceb
commit
2b1fa80b63
|
@ -26,7 +26,9 @@
|
|||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<skip>true</skip>
|
||||
<systemPropertyVariables>
|
||||
<mariadb.docker.version>${mariadb.docker.version}</mariadb.docker.version>
|
||||
</systemPropertyVariables>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
@ -85,29 +87,4 @@
|
|||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>remote-session-tests</id>
|
||||
<activation>
|
||||
<property>
|
||||
<name>mariadb.enabled</name>
|
||||
<value>true</value>
|
||||
</property>
|
||||
</activation>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<skip>false</skip>
|
||||
<systemPropertyVariables>
|
||||
<mariadb.docker.version>${mariadb.docker.version}</mariadb.docker.version>
|
||||
</systemPropertyVariables>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
||||
|
|
|
@ -19,10 +19,12 @@
|
|||
package org.eclipse.jetty.server.session;
|
||||
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.testcontainers.junit.jupiter.Testcontainers;
|
||||
|
||||
/**
|
||||
* ClusteredInvalidationSessionTest
|
||||
*/
|
||||
@Testcontainers(disabledWithoutDocker = true)
|
||||
public class ClusteredInvalidationSessionTest extends AbstractClusteredInvalidationSessionTest
|
||||
{
|
||||
|
||||
|
|
|
@ -19,10 +19,12 @@
|
|||
package org.eclipse.jetty.server.session;
|
||||
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.testcontainers.junit.jupiter.Testcontainers;
|
||||
|
||||
/**
|
||||
* ClusteredOrphanedSessionTest
|
||||
*/
|
||||
@Testcontainers(disabledWithoutDocker = true)
|
||||
public class ClusteredOrphanedSessionTest extends AbstractClusteredOrphanedSessionTest
|
||||
{
|
||||
/**
|
||||
|
|
|
@ -31,6 +31,7 @@ import org.eclipse.jetty.client.api.ContentResponse;
|
|||
import org.eclipse.jetty.client.api.Request;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.testcontainers.junit.jupiter.Testcontainers;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
@ -45,6 +46,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
|||
* Rather, it tests all of the machinery above the SessionDataStore. Thus,
|
||||
* to reduce test time, we only apply it to the JDBCSessionDataStore.
|
||||
*/
|
||||
@Testcontainers(disabledWithoutDocker = true)
|
||||
public class ClusteredSessionMigrationTest extends AbstractTestBase
|
||||
{
|
||||
|
||||
|
|
|
@ -19,10 +19,12 @@
|
|||
package org.eclipse.jetty.server.session;
|
||||
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.testcontainers.junit.jupiter.Testcontainers;
|
||||
|
||||
/**
|
||||
* ClusteredSessionScavengingTest
|
||||
*/
|
||||
@Testcontainers(disabledWithoutDocker = true)
|
||||
public class ClusteredSessionScavengingTest extends AbstractClusteredSessionScavengingTest
|
||||
{
|
||||
/**
|
||||
|
|
|
@ -20,10 +20,12 @@ package org.eclipse.jetty.server.session;
|
|||
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.testcontainers.junit.jupiter.Testcontainers;
|
||||
|
||||
/**
|
||||
* JDBCSessionDataStoreTest
|
||||
*/
|
||||
@Testcontainers(disabledWithoutDocker = true)
|
||||
public class JDBCSessionDataStoreTest extends AbstractSessionDataStoreTest
|
||||
{
|
||||
|
||||
|
|
|
@ -37,6 +37,7 @@ import org.eclipse.jetty.webapp.WebAppContext;
|
|||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.extension.ExtendWith;
|
||||
import org.testcontainers.junit.jupiter.Testcontainers;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertFalse;
|
||||
|
@ -47,6 +48,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
|||
* ReloadedSessionMissingClassTest
|
||||
*/
|
||||
@ExtendWith(WorkDirExtension.class)
|
||||
@Testcontainers(disabledWithoutDocker = true)
|
||||
public class ReloadedSessionMissingClassTest
|
||||
{
|
||||
public WorkDir testdir;
|
||||
|
|
|
@ -27,6 +27,7 @@ import org.eclipse.jetty.server.handler.ContextHandler;
|
|||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.testcontainers.junit.jupiter.Testcontainers;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertFalse;
|
||||
|
@ -38,6 +39,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
|||
* Test the SessionTableSchema behaviour when the database treats "" as a NULL,
|
||||
* like Oracle does.
|
||||
*/
|
||||
@Testcontainers(disabledWithoutDocker = true)
|
||||
public class SessionTableSchemaTest
|
||||
{
|
||||
DatabaseAdaptor _da;
|
||||
|
|
|
@ -21,10 +21,12 @@ package org.eclipse.jetty.server.session;
|
|||
import org.eclipse.jetty.util.resource.Resource;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.testcontainers.junit.jupiter.Testcontainers;
|
||||
|
||||
/**
|
||||
* WebAppObjectInSessionTest
|
||||
*/
|
||||
@Testcontainers(disabledWithoutDocker = true)
|
||||
public class WebAppObjectInSessionTest extends AbstractWebAppObjectInSessionTest
|
||||
{
|
||||
|
||||
|
|
Loading…
Reference in New Issue