|
|
|
@ -22,8 +22,6 @@ import org.testcontainers.junit.jupiter.Container;
|
|
|
|
|
import org.testcontainers.junit.jupiter.Testcontainers;
|
|
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
|
|
|
|
|
import org.springframework.boot.autoconfigure.ssl.SslAutoConfiguration;
|
|
|
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
|
|
|
import org.springframework.boot.testcontainers.service.connection.ServiceConnection;
|
|
|
|
|
import org.springframework.data.mongodb.core.MongoTemplate;
|
|
|
|
@ -40,7 +38,6 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|
|
|
|
"spring.ssl.bundle.pem.client.keystore.certificate=classpath:ssl/test-client.crt",
|
|
|
|
|
"spring.ssl.bundle.pem.client.keystore.private-key=classpath:ssl/test-client.key",
|
|
|
|
|
"spring.ssl.bundle.pem.client.truststore.certificate=classpath:ssl/test-ca.crt" })
|
|
|
|
|
@ImportAutoConfiguration(SslAutoConfiguration.class)
|
|
|
|
|
class SampleMongoApplicationSslTests {
|
|
|
|
|
|
|
|
|
|
@Container
|
|
|
|
|