Skip to content

Commit

Permalink
Polish spring-boot-smoke-test-data-mongo
Browse files Browse the repository at this point in the history
Remove `@ImportAutoConfiguration(SslAutoConfiguration.class)`, since
`SslAutoConfiguration.class` is already provided as an
auto-configuration with `@SpringBootTest`

See spring-projectsgh-35655
  • Loading branch information
eddumelendez authored and scottfrederick committed May 30, 2023
1 parent 0ec804f commit 127f852
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
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;
Expand All @@ -40,7 +38,6 @@
"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
Expand Down

0 comments on commit 127f852

Please sign in to comment.