Browse Source

Update spring-boot-smoke-test-kafka to use docker-test plugin

See gh-41228
pull/42868/head
Andy Wilkinson 2 years ago
parent
commit
bc57d30a1f
  1. 12
      spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-kafka/build.gradle
  2. 0
      spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-kafka/src/dockerTest/java/smoketest/kafka/ssl/SampleKafkaSslApplicationTests.java

12
spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-kafka/build.gradle

@ -1,20 +1,24 @@ @@ -1,20 +1,24 @@
plugins {
id "java"
id "org.springframework.boot.conventions"
id "org.springframework.boot.docker-test"
}
description = "Spring Boot Kafka smoke test"
dependencies {
dockerTestImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))
dockerTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
dockerTestImplementation("org.awaitility:awaitility")
dockerTestImplementation("org.testcontainers:junit-jupiter")
dockerTestImplementation("org.testcontainers:kafka")
implementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-json"))
implementation("org.springframework.kafka:spring-kafka")
testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
testImplementation("org.awaitility:awaitility")
testImplementation("org.springframework.kafka:spring-kafka-test") {
exclude group: "commons-logging", module: "commons-logging"
}
testImplementation("org.testcontainers:junit-jupiter")
testImplementation("org.testcontainers:kafka")
}

0
spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-kafka/src/test/java/smoketest/kafka/ssl/SampleKafkaSslApplicationTests.java → spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-kafka/src/dockerTest/java/smoketest/kafka/ssl/SampleKafkaSslApplicationTests.java

Loading…
Cancel
Save