diff --git a/aws-sns-project/src/test/java/com/learning/awssns/common/ContainersConfig.java b/aws-sns-project/src/test/java/com/learning/awssns/common/ContainersConfig.java index ba856e11..5715dc6d 100644 --- a/aws-sns-project/src/test/java/com/learning/awssns/common/ContainersConfig.java +++ b/aws-sns-project/src/test/java/com/learning/awssns/common/ContainersConfig.java @@ -3,7 +3,6 @@ import org.springframework.boot.test.context.TestConfiguration; import org.springframework.boot.testcontainers.service.connection.ServiceConnection; import org.springframework.context.annotation.Bean; -import org.springframework.test.context.DynamicPropertyRegistry; import org.testcontainers.containers.localstack.LocalStackContainer; import org.testcontainers.utility.DockerImageName; @@ -12,7 +11,7 @@ public class ContainersConfig { @Bean @ServiceConnection - LocalStackContainer localstackContainer(DynamicPropertyRegistry registry) { + LocalStackContainer localstackContainer() { return new LocalStackContainer( DockerImageName.parse("localstack/localstack").withTag("3.7.0")); } diff --git a/aws-sqs-project/docker/docker-compose.yml b/aws-sqs-project/docker/docker-compose.yml index c1898349..65a4c5a3 100644 --- a/aws-sqs-project/docker/docker-compose.yml +++ b/aws-sqs-project/docker/docker-compose.yml @@ -10,7 +10,7 @@ services: ports: - "5432:5432" healthcheck: - test: [ "CMD-SHELL", "pg_isready -U postgres" ] + test: [ "CMD-SHELL", "pg_isready -U appuser" ] interval: 10s timeout: 5s retries: 5