Merge branch '2.3.x'
This commit is contained in:
commit
45f1133e1e
|
@ -31,7 +31,6 @@ import org.springframework.boot.autoconfigure.data.elasticsearch.city.CityReposi
|
|||
import org.springframework.boot.autoconfigure.data.empty.EmptyDataPackage;
|
||||
import org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchRestClientAutoConfiguration;
|
||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
|
||||
import org.springframework.boot.testsupport.testcontainers.VersionOverridingElasticsearchContainer;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.data.elasticsearch.core.ElasticsearchRestTemplate;
|
||||
import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories;
|
||||
|
|
|
@ -30,7 +30,6 @@ import org.springframework.boot.autoconfigure.data.elasticsearch.city.City;
|
|||
import org.springframework.boot.autoconfigure.data.elasticsearch.city.ReactiveCityRepository;
|
||||
import org.springframework.boot.autoconfigure.data.empty.EmptyDataPackage;
|
||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
|
||||
import org.springframework.boot.testsupport.testcontainers.VersionOverridingElasticsearchContainer;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.data.elasticsearch.core.ReactiveElasticsearchTemplate;
|
||||
import org.springframework.data.elasticsearch.repository.config.EnableReactiveElasticsearchRepositories;
|
||||
|
|
|
@ -30,7 +30,6 @@ import org.testcontainers.junit.jupiter.Testcontainers;
|
|||
|
||||
import org.springframework.boot.autoconfigure.AutoConfigurations;
|
||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
|
||||
import org.springframework.boot.testsupport.testcontainers.VersionOverridingElasticsearchContainer;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.data.elasticsearch.client.ClientConfiguration;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.springframework.boot.testsupport.testcontainers;
|
||||
package org.springframework.boot.autoconfigure.data.elasticsearch;
|
||||
|
||||
import org.elasticsearch.Version;
|
||||
import org.testcontainers.elasticsearch.ElasticsearchContainer;
|
|
@ -41,7 +41,6 @@ import org.testcontainers.junit.jupiter.Testcontainers;
|
|||
|
||||
import org.springframework.boot.autoconfigure.AutoConfigurations;
|
||||
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
|
||||
import org.springframework.boot.testsupport.testcontainers.VersionOverridingElasticsearchContainer;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
|
@ -59,8 +58,8 @@ import static org.mockito.Mockito.mock;
|
|||
class ElasticsearchRestClientAutoConfigurationTests {
|
||||
|
||||
@Container
|
||||
static final ElasticsearchContainer elasticsearch = new VersionOverridingElasticsearchContainer()
|
||||
.withStartupAttempts(5).withStartupTimeout(Duration.ofMinutes(10));
|
||||
static final ElasticsearchContainer elasticsearch = new ElasticsearchContainer().withStartupAttempts(5)
|
||||
.withStartupTimeout(Duration.ofMinutes(10));
|
||||
|
||||
private final ApplicationContextRunner contextRunner = new ApplicationContextRunner()
|
||||
.withConfiguration(AutoConfigurations.of(ElasticsearchRestClientAutoConfiguration.class));
|
||||
|
|
|
@ -156,7 +156,7 @@ bom {
|
|||
]
|
||||
}
|
||||
}
|
||||
library("Testcontainers", "1.15.0") {
|
||||
library("Testcontainers", "1.14.3") {
|
||||
group("org.testcontainers") {
|
||||
imports = [
|
||||
"testcontainers-bom"
|
||||
|
|
|
@ -11,13 +11,11 @@ dependencies {
|
|||
compileOnly("com.datastax.oss:java-driver-core")
|
||||
compileOnly("javax.servlet:javax.servlet-api")
|
||||
compileOnly("junit:junit")
|
||||
compileOnly("org.elasticsearch:elasticsearch")
|
||||
compileOnly("org.junit.jupiter:junit-jupiter")
|
||||
compileOnly("org.junit.platform:junit-platform-engine")
|
||||
compileOnly("org.mockito:mockito-core")
|
||||
compileOnly("org.springframework:spring-context")
|
||||
compileOnly("org.springframework.data:spring-data-redis")
|
||||
compileOnly("org.testcontainers:elasticsearch")
|
||||
compileOnly("org.testcontainers:testcontainers")
|
||||
|
||||
implementation("org.apache.maven.resolver:maven-resolver-connector-basic")
|
||||
|
|
Loading…
Reference in New Issue