diff --git a/common/pom.xml b/common/pom.xml index 43e823b1e..4c8229282 100644 --- a/common/pom.xml +++ b/common/pom.xml @@ -109,15 +109,23 @@ - org.springframework.cloud + io.awspring.cloud + spring-cloud-aws-autoconfigure + ${spring-cloud-aws.version} + + + + io.awspring.cloud spring-cloud-starter-aws-messaging - 2.2.6.RELEASE + ${spring-cloud-aws.version} + org.springframework.cloud spring-cloud-starter-openfeign 3.1.5 + gov.cms.ab2d ab2d-contracts-client diff --git a/common/src/test/java/gov/cms/ab2d/common/util/AB2DSQSMockConfig.java b/common/src/test/java/gov/cms/ab2d/common/util/AB2DSQSMockConfig.java index 0121f5c60..ac896939d 100644 --- a/common/src/test/java/gov/cms/ab2d/common/util/AB2DSQSMockConfig.java +++ b/common/src/test/java/gov/cms/ab2d/common/util/AB2DSQSMockConfig.java @@ -1,21 +1,19 @@ package gov.cms.ab2d.common.util; +import com.amazonaws.auth.AWSCredentialsProvider; +import com.amazonaws.auth.DefaultAWSCredentialsProviderChain; import com.amazonaws.services.sqs.AmazonSQSAsync; import gov.cms.ab2d.eventclient.clients.SQSEventClient; -import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.test.context.TestConfiguration; import org.springframework.boot.test.mock.mockito.MockBean; -import org.springframework.boot.test.mock.mockito.SpyBean; -import org.springframework.cloud.aws.autoconfigure.context.ContextStackAutoConfiguration; -import org.springframework.cloud.aws.autoconfigure.messaging.MessagingAutoConfiguration; -import org.springframework.cloud.aws.messaging.config.SimpleMessageListenerContainerFactory; -import org.springframework.cloud.aws.messaging.listener.QueueMessageHandler; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Primary; +import io.awspring.cloud.messaging.config.SimpleMessageListenerContainerFactory; +import io.awspring.cloud.messaging.listener.QueueMessageHandler; + import static org.mockito.Mockito.mock; @TestConfiguration -@EnableAutoConfiguration(exclude = {MessagingAutoConfiguration.class, ContextStackAutoConfiguration.class}) public class AB2DSQSMockConfig { static { @@ -42,7 +40,14 @@ public QueueMessageHandler messageHandler() { } @Bean("mockAmazonSQS") + @Primary public AmazonSQSAsync amazonSQSAsync() { return mock(AmazonSQSAsync.class); } + + @Bean + @Primary + public AWSCredentialsProvider awsCredentialsProvider() { + return new DefaultAWSCredentialsProviderChain(); + } } \ No newline at end of file diff --git a/pom.xml b/pom.xml index f2397ed83..945cc7887 100644 --- a/pom.xml +++ b/pom.xml @@ -36,6 +36,8 @@ 1.18.3 8.4.0 42.6.0 + + 2.4.4 0.8.10 @@ -43,15 +45,27 @@ 2.3 - 1.11.8 - 2.0.16 - 1.1.11 - 1.2.12 - 1.8.7 - 1.1.9 - 1.1.4 + 1.12.0 + 2.1.0 + 1.2.0 + 1.3.0 + 1.9.0 + 1.2.0 + 1.2.0 + + org.projectlombok @@ -82,6 +96,22 @@ 1.18.3 test + + io.awspring.cloud + spring-cloud-aws-dependencies + ${spring-cloud-aws.version} + pom + + + io.awspring.cloud + spring-cloud-aws-autoconfigure + ${spring-cloud-aws.version} + + + io.awspring.cloud + spring-cloud-starter-aws-messaging + ${spring-cloud-aws.version} +