|
40 | 40 | import org.junit.platform.suite.api.SelectClasses; |
41 | 41 | import org.junit.platform.suite.api.Suite; |
42 | 42 | import org.testcontainers.kafka.KafkaContainer; |
43 | | -import org.testcontainers.containers.GenericContainer; |
44 | 43 | import org.testcontainers.utility.DockerImageName; |
45 | 44 |
|
46 | 45 | import com.github.tomakehurst.wiremock.WireMockServer; |
@@ -102,11 +101,6 @@ public class StorageTestSuite { |
102 | 101 | private static final KafkaContainer kafkaContainer = new KafkaContainer(DockerImageName.parse("apache/kafka-native:4.2.0")) |
103 | 102 | .withStartupAttempts(3); |
104 | 103 |
|
105 | | - @SuppressWarnings("resource") |
106 | | - private static final GenericContainer<?> sidecarContainer = new GenericContainer<>( |
107 | | - DockerImageName.parse("folioci/folio-module-sidecar:latest")) |
108 | | - .withExposedPorts(8081) |
109 | | - .withNetworkAliases("folio-module-sidecar"); |
110 | 104 |
|
111 | 105 | /** |
112 | 106 | * Return a URL for the path and the parameters. |
@@ -159,7 +153,6 @@ public static void before() throws InterruptedException, |
159 | 153 | PostgresClient.setPostgresTester(new PostgresTesterContainer()); |
160 | 154 |
|
161 | 155 | kafkaContainer.start(); |
162 | | - sidecarContainer.start(); |
163 | 156 | var host = kafkaContainer.getHost(); |
164 | 157 | var port = String.valueOf(kafkaContainer.getFirstMappedPort()); |
165 | 158 | log.info("Starting Kafka host={} port={}", host, port); |
@@ -210,11 +203,6 @@ public static void after() |
210 | 203 | log.warn("after:: kafkaContainer.stop() failed (ignored): {}", e.getMessage()); |
211 | 204 | } |
212 | 205 |
|
213 | | - try { |
214 | | - sidecarContainer.stop(); |
215 | | - } catch (Throwable e) { |
216 | | - log.warn("after:: sidecarContainer.stop() failed (ignored): {}", e.getMessage()); |
217 | | - } |
218 | 206 |
|
219 | 207 | try { |
220 | 208 | mockServer.close(); |
|
0 commit comments