Move Couchbase testcontainers support into spring-boot-couchbase
This commit is contained in:
committed by
Phillip Webb
parent
dac8ed9eef
commit
33f146a461
@@ -15,12 +15,13 @@ dependencies {
|
||||
|
||||
optional(project(":spring-boot-project:spring-boot-actuator-autoconfigure"))
|
||||
optional(project(":spring-boot-project:spring-boot-autoconfigure"))
|
||||
optional(project(":spring-boot-project:spring-boot-testcontainers"))
|
||||
optional(project(":spring-boot-project:spring-boot-jackson"))
|
||||
optional("org.testcontainers:couchbase")
|
||||
|
||||
dockerTestImplementation(project(":spring-boot-project:spring-boot-test"))
|
||||
dockerTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support-docker"))
|
||||
dockerTestImplementation("org.junit.jupiter:junit-jupiter")
|
||||
dockerTestImplementation("org.testcontainers:couchbase")
|
||||
dockerTestImplementation("org.testcontainers:junit-jupiter")
|
||||
|
||||
testImplementation(project(":spring-boot-project:spring-boot-test"))
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.testcontainers.service.connection.couchbase;
|
||||
package org.springframework.boot.couchbase.testcontainers;
|
||||
|
||||
import com.couchbase.client.java.Cluster;
|
||||
import org.junit.jupiter.api.Test;
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
<include resource="org/springframework/boot/logging/logback/base.xml"/>
|
||||
</configuration>
|
||||
@@ -0,0 +1 @@
|
||||
spring.test.context.cache.maxSize=1
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.boot.testcontainers.service.connection.couchbase;
|
||||
package org.springframework.boot.couchbase.testcontainers;
|
||||
|
||||
import org.testcontainers.couchbase.CouchbaseContainer;
|
||||
|
||||
@@ -17,4 +17,4 @@
|
||||
/**
|
||||
* Support for testcontainers Couchbase service connections.
|
||||
*/
|
||||
package org.springframework.boot.testcontainers.service.connection.couchbase;
|
||||
package org.springframework.boot.couchbase.testcontainers;
|
||||
@@ -0,0 +1,3 @@
|
||||
# Connection Details Factories
|
||||
org.springframework.boot.autoconfigure.service.connection.ConnectionDetailsFactory=\
|
||||
org.springframework.boot.couchbase.testcontainers.CouchbaseContainerConnectionDetailsFactory
|
||||
@@ -11,7 +11,6 @@ dependencies {
|
||||
api(project(":spring-boot-project:spring-boot-autoconfigure"))
|
||||
api(project(":spring-boot-project:spring-boot-testcontainers"))
|
||||
|
||||
dockerTestImplementation(project(":spring-boot-project:spring-boot-couchbase"))
|
||||
dockerTestImplementation(project(":spring-boot-project:spring-boot-flyway"))
|
||||
dockerTestImplementation(project(":spring-boot-project:spring-boot-jdbc"))
|
||||
dockerTestImplementation(project(":spring-boot-project:spring-boot-kafka"))
|
||||
@@ -24,7 +23,6 @@ dependencies {
|
||||
dockerTestImplementation(testFixtures(project(":spring-boot-project:spring-boot-testcontainers")))
|
||||
dockerTestImplementation("ch.qos.logback:logback-classic")
|
||||
dockerTestImplementation("co.elastic.clients:elasticsearch-java")
|
||||
dockerTestImplementation("com.couchbase.client:java-client")
|
||||
dockerTestImplementation("io.micrometer:micrometer-registry-otlp")
|
||||
dockerTestImplementation("io.rest-assured:rest-assured")
|
||||
dockerTestImplementation("org.assertj:assertj-core")
|
||||
@@ -50,7 +48,6 @@ dependencies {
|
||||
dockerTestRuntimeOnly("org.postgresql:postgresql")
|
||||
|
||||
optional(project(":spring-boot-project:spring-boot-actuator-autoconfigure-all"))
|
||||
optional(project(":spring-boot-project:spring-boot-couchbase"))
|
||||
optional(project(":spring-boot-project:spring-boot-data-redis"))
|
||||
optional(project(":spring-boot-project:spring-boot-elasticsearch"))
|
||||
optional(project(":spring-boot-project:spring-boot-flyway"))
|
||||
@@ -68,7 +65,6 @@ dependencies {
|
||||
optional("org.springframework.data:spring-data-mongodb")
|
||||
optional("org.springframework.data:spring-data-neo4j")
|
||||
optional("org.testcontainers:clickhouse")
|
||||
optional("org.testcontainers:couchbase")
|
||||
optional("org.testcontainers:elasticsearch")
|
||||
optional("org.testcontainers:grafana")
|
||||
optional("org.testcontainers:jdbc")
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
# Connection Details Factories
|
||||
org.springframework.boot.autoconfigure.service.connection.ConnectionDetailsFactory=\
|
||||
org.springframework.boot.testcontainers.service.connection.couchbase.CouchbaseContainerConnectionDetailsFactory,\
|
||||
org.springframework.boot.testcontainers.service.connection.elasticsearch.ElasticsearchContainerConnectionDetailsFactory,\
|
||||
org.springframework.boot.testcontainers.service.connection.flyway.FlywayContainerConnectionDetailsFactory,\
|
||||
org.springframework.boot.testcontainers.service.connection.hazelcast.HazelcastContainerConnectionDetailsFactory,\
|
||||
|
||||
@@ -9,7 +9,7 @@ dependencies {
|
||||
dockerTestImplementation(project(":spring-boot-project:spring-boot-reactor"))
|
||||
dockerTestImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))
|
||||
dockerTestImplementation(project(":spring-boot-project:spring-boot-test"))
|
||||
dockerTestImplementation(project(":spring-boot-project:spring-boot-testcontainers-all"))
|
||||
dockerTestImplementation(project(":spring-boot-project:spring-boot-testcontainers"))
|
||||
dockerTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support-docker"))
|
||||
dockerTestImplementation("io.projectreactor:reactor-test")
|
||||
dockerTestImplementation("org.apache.httpcomponents.client5:httpclient5")
|
||||
|
||||
Reference in New Issue
Block a user