mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-12-27 09:27:27 +00:00
parent
300597fc6c
commit
3b90fac983
3 changed files with 5 additions and 9 deletions
|
|
@ -49,7 +49,7 @@ import org.springframework.web.client.RestTemplate;
|
|||
import org.testcontainers.DockerClientFactory;
|
||||
|
||||
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT, properties = { "spring.docker.compose.skip.in-tests=false", //
|
||||
"spring.docker.compose.profiles.active=postgres" })
|
||||
"spring.docker.compose.start.arguments=--force-recreate,--renew-anon-volumes,postgres" })
|
||||
@ActiveProfiles("postgres")
|
||||
@DisabledInNativeImage
|
||||
public class PostgresIntegrationTests {
|
||||
|
|
@ -72,7 +72,7 @@ public class PostgresIntegrationTests {
|
|||
new SpringApplicationBuilder(PetClinicApplication.class) //
|
||||
.profiles("postgres") //
|
||||
.properties( //
|
||||
"spring.docker.compose.profiles.active=postgres" //
|
||||
"spring.docker.compose.start.arguments=postgres" //
|
||||
) //
|
||||
.listeners(new PropertiesLogger()) //
|
||||
.run(args);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue