Move Zipkin testcontainers support into spring-boot-zipkin

See gh-46148
This commit is contained in:
Phillip Webb
2025-07-01 12:02:29 +01:00
committed by Andy Wilkinson
parent b12fe23662
commit 4bf2be4ef8
8 changed files with 16 additions and 7 deletions
@@ -5,5 +5,4 @@ org.springframework.boot.testcontainers.service.connection.otlp.GrafanaOpenTelem
org.springframework.boot.testcontainers.service.connection.otlp.GrafanaOpenTelemetryTracingContainerConnectionDetailsFactory,\
org.springframework.boot.testcontainers.service.connection.otlp.OpenTelemetryLoggingContainerConnectionDetailsFactory,\
org.springframework.boot.testcontainers.service.connection.otlp.OpenTelemetryMetricsContainerConnectionDetailsFactory,\
org.springframework.boot.testcontainers.service.connection.otlp.OpenTelemetryTracingContainerConnectionDetailsFactory,\
org.springframework.boot.testcontainers.service.connection.zipkin.ZipkinContainerConnectionDetailsFactory
org.springframework.boot.testcontainers.service.connection.otlp.OpenTelemetryTracingContainerConnectionDetailsFactory
@@ -18,6 +18,7 @@
plugins {
id "java-library"
id "org.springframework.boot.auto-configuration"
id "org.springframework.boot.docker-test"
id "org.springframework.boot.configuration-properties"
id "org.springframework.boot.deployed"
id "org.springframework.boot.optional-dependencies"
@@ -30,9 +31,15 @@ dependencies {
api("io.zipkin.reporter2:zipkin-reporter-brave")
optional(project(":spring-boot-project:spring-boot-autoconfigure"))
optional(project(":spring-boot-project:spring-boot-testcontainers"))
optional("io.zipkin.reporter2:zipkin-reporter-brave")
dockerTestImplementation(project(":spring-boot-project:spring-boot-test"))
dockerTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support-docker"))
dockerTestImplementation("org.testcontainers:junit-jupiter")
testImplementation(project(":spring-boot-project:spring-boot-test"))
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
testImplementation(testFixtures(project(":spring-boot-project:spring-boot-testcontainers")))
testImplementation("com.squareup.okhttp3:mockwebserver")
}
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.testcontainers.service.connection.zipkin;
package org.springframework.boot.zipkin.testcontainers;
import org.junit.jupiter.api.Test;
import org.testcontainers.containers.GenericContainer;
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.testcontainers.service.connection.zipkin;
package org.springframework.boot.zipkin.testcontainers;
import org.testcontainers.containers.Container;
import org.testcontainers.containers.GenericContainer;
@@ -17,4 +17,4 @@
/**
* Support for testcontainers Zipkin service connections.
*/
package org.springframework.boot.testcontainers.service.connection.zipkin;
package org.springframework.boot.zipkin.testcontainers;
@@ -0,0 +1,3 @@
# Connection Details Factories
org.springframework.boot.autoconfigure.service.connection.ConnectionDetailsFactory=\
org.springframework.boot.zipkin.testcontainers.ZipkinContainerConnectionDetailsFactory
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.testcontainers.service.connection.zipkin;
package org.springframework.boot.zipkin.testcontainers;
import org.junit.jupiter.api.Test;
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.boot.testcontainers.service.connection.zipkin;
package org.springframework.boot.zipkin.testcontainers;
import org.junit.jupiter.api.Test;