Update integration tests
This commit is contained in:
@@ -5,7 +5,7 @@ dependencyManagement {
|
|||||||
mavenBom 'org.springframework:spring-framework-bom:5.0.7.RELEASE'
|
mavenBom 'org.springframework:spring-framework-bom:5.0.7.RELEASE'
|
||||||
mavenBom 'org.springframework.data:spring-data-releasetrain:Kay-SR8'
|
mavenBom 'org.springframework.data:spring-data-releasetrain:Kay-SR8'
|
||||||
mavenBom 'org.springframework.security:spring-security-bom:5.0.6.RELEASE'
|
mavenBom 'org.springframework.security:spring-security-bom:5.0.6.RELEASE'
|
||||||
mavenBom 'org.testcontainers:testcontainers-bom:1.7.3'
|
mavenBom 'org.testcontainers:testcontainers-bom:1.8.1'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ import org.springframework.test.web.servlet.htmlunit.webdriver.MockMvcHtmlUnitDr
|
|||||||
@SpringBootTest(webEnvironment = WebEnvironment.MOCK)
|
@SpringBootTest(webEnvironment = WebEnvironment.MOCK)
|
||||||
public class FindByUsernameTests {
|
public class FindByUsernameTests {
|
||||||
|
|
||||||
private static final String DOCKER_IMAGE = "redis:4.0.9";
|
private static final String DOCKER_IMAGE = "redis:4.0.10";
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private MockMvc mockMvc;
|
private MockMvc mockMvc;
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||||||
@AutoConfigureMockMvc
|
@AutoConfigureMockMvc
|
||||||
public class HttpRedisJsonTest {
|
public class HttpRedisJsonTest {
|
||||||
|
|
||||||
private static final String DOCKER_IMAGE = "redis:4.0.9";
|
private static final String DOCKER_IMAGE = "redis:4.0.10";
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private MockMvc mockMvc;
|
private MockMvc mockMvc;
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||||||
@SpringBootTest
|
@SpringBootTest
|
||||||
public class RedisSerializerTest {
|
public class RedisSerializerTest {
|
||||||
|
|
||||||
private static final String DOCKER_IMAGE = "redis:4.0.9";
|
private static final String DOCKER_IMAGE = "redis:4.0.10";
|
||||||
|
|
||||||
@SpringSessionRedisOperations
|
@SpringSessionRedisOperations
|
||||||
private RedisTemplate<Object, Object> sessionRedisTemplate;
|
private RedisTemplate<Object, Object> sessionRedisTemplate;
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ import org.springframework.test.web.servlet.htmlunit.webdriver.MockMvcHtmlUnitDr
|
|||||||
@SpringBootTest(webEnvironment = WebEnvironment.MOCK)
|
@SpringBootTest(webEnvironment = WebEnvironment.MOCK)
|
||||||
public class BootTests {
|
public class BootTests {
|
||||||
|
|
||||||
private static final String DOCKER_IMAGE = "redis:4.0.9";
|
private static final String DOCKER_IMAGE = "redis:4.0.10";
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private MockMvc mockMvc;
|
private MockMvc mockMvc;
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||||||
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
|
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
|
||||||
public class AttributeTests {
|
public class AttributeTests {
|
||||||
|
|
||||||
private static final String DOCKER_IMAGE = "redis:4.0.9";
|
private static final String DOCKER_IMAGE = "redis:4.0.10";
|
||||||
|
|
||||||
@LocalServerPort
|
@LocalServerPort
|
||||||
private int port;
|
private int port;
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ import static org.assertj.core.api.Assertions.assertThatThrownBy;
|
|||||||
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
|
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
|
||||||
public class ApplicationTests {
|
public class ApplicationTests {
|
||||||
|
|
||||||
private static final String DOCKER_IMAGE = "redis:4.0.9";
|
private static final String DOCKER_IMAGE = "redis:4.0.10";
|
||||||
|
|
||||||
@Value("${local.server.port}")
|
@Value("${local.server.port}")
|
||||||
private String port;
|
private String port;
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactor
|
|||||||
@Profile("embedded-redis")
|
@Profile("embedded-redis")
|
||||||
public class EmbeddedRedisConfig {
|
public class EmbeddedRedisConfig {
|
||||||
|
|
||||||
private static final String DOCKER_IMAGE = "redis:4.0.9";
|
private static final String DOCKER_IMAGE = "redis:4.0.10";
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public GenericContainer redisContainer() {
|
public GenericContainer redisContainer() {
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactor
|
|||||||
@Profile("embedded-redis")
|
@Profile("embedded-redis")
|
||||||
public class EmbeddedRedisConfig {
|
public class EmbeddedRedisConfig {
|
||||||
|
|
||||||
private static final String DOCKER_IMAGE = "redis:4.0.9";
|
private static final String DOCKER_IMAGE = "redis:4.0.10";
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public GenericContainer redisContainer() {
|
public GenericContainer redisContainer() {
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
|
|||||||
@WebAppConfiguration
|
@WebAppConfiguration
|
||||||
public class RestMockMvcTests {
|
public class RestMockMvcTests {
|
||||||
|
|
||||||
private static final String DOCKER_IMAGE = "redis:4.0.9";
|
private static final String DOCKER_IMAGE = "redis:4.0.10";
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private SessionRepositoryFilter<? extends Session> sessionRepositoryFilter;
|
private SessionRepositoryFilter<? extends Session> sessionRepositoryFilter;
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactor
|
|||||||
@Profile("embedded-redis")
|
@Profile("embedded-redis")
|
||||||
public class EmbeddedRedisConfig {
|
public class EmbeddedRedisConfig {
|
||||||
|
|
||||||
private static final String DOCKER_IMAGE = "redis:4.0.9";
|
private static final String DOCKER_IMAGE = "redis:4.0.10";
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public GenericContainer redisContainer() {
|
public GenericContainer redisContainer() {
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactor
|
|||||||
@Profile("embedded-redis")
|
@Profile("embedded-redis")
|
||||||
public class EmbeddedRedisConfig {
|
public class EmbeddedRedisConfig {
|
||||||
|
|
||||||
private static final String DOCKER_IMAGE = "redis:4.0.9";
|
private static final String DOCKER_IMAGE = "redis:4.0.10";
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public GenericContainer redisContainer() {
|
public GenericContainer redisContainer() {
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactor
|
|||||||
@Profile("embedded-redis")
|
@Profile("embedded-redis")
|
||||||
public class EmbeddedRedisConfig {
|
public class EmbeddedRedisConfig {
|
||||||
|
|
||||||
private static final String DOCKER_IMAGE = "redis:4.0.9";
|
private static final String DOCKER_IMAGE = "redis:4.0.10";
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public GenericContainer redisContainer() {
|
public GenericContainer redisContainer() {
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactor
|
|||||||
*/
|
*/
|
||||||
public abstract class AbstractRedisITests {
|
public abstract class AbstractRedisITests {
|
||||||
|
|
||||||
private static final String DOCKER_IMAGE = "redis:4.0.9";
|
private static final String DOCKER_IMAGE = "redis:4.0.10";
|
||||||
|
|
||||||
protected static class BaseConfig {
|
protected static class BaseConfig {
|
||||||
|
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ public class MariaDb10JdbcOperationsSessionRepositoryITests
|
|||||||
private static class MariaDb10Container extends MariaDBContainer<MariaDb10Container> {
|
private static class MariaDb10Container extends MariaDBContainer<MariaDb10Container> {
|
||||||
|
|
||||||
MariaDb10Container() {
|
MariaDb10Container() {
|
||||||
super("mariadb:10.3.7");
|
super("mariadb:10.3.8");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ import javax.sql.DataSource;
|
|||||||
import com.microsoft.sqlserver.jdbc.SQLServerDataSource;
|
import com.microsoft.sqlserver.jdbc.SQLServerDataSource;
|
||||||
import org.junit.AfterClass;
|
import org.junit.AfterClass;
|
||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.testcontainers.containers.MSSQLServerContainer;
|
import org.testcontainers.containers.MSSQLServerContainer;
|
||||||
|
|
||||||
@@ -40,7 +39,6 @@ import org.springframework.test.context.web.WebAppConfiguration;
|
|||||||
*
|
*
|
||||||
* @author Vedran Pavic
|
* @author Vedran Pavic
|
||||||
*/
|
*/
|
||||||
@Ignore
|
|
||||||
@RunWith(SpringRunner.class)
|
@RunWith(SpringRunner.class)
|
||||||
@WebAppConfiguration
|
@WebAppConfiguration
|
||||||
@ContextConfiguration
|
@ContextConfiguration
|
||||||
@@ -88,12 +86,9 @@ public class SqlServerJdbcOperationsSessionRepositoryITests
|
|||||||
extends MSSQLServerContainer<SqlServer2007Container> {
|
extends MSSQLServerContainer<SqlServer2007Container> {
|
||||||
|
|
||||||
SqlServer2007Container() {
|
SqlServer2007Container() {
|
||||||
super("microsoft/mssql-server-linux:2017-CU7");
|
super("microsoft/mssql-server-linux:2017-CU8");
|
||||||
}
|
withStartupTimeoutSeconds(240);
|
||||||
|
withConnectTimeoutSeconds(240);
|
||||||
@Override
|
|
||||||
protected int getStartupTimeoutSeconds() {
|
|
||||||
return 240;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
microsoft/mssql-server-linux:2017-CU8
|
||||||
Reference in New Issue
Block a user