Skip to content
Advertisement

Tag: spring-cloud-aws

How to disable AWS parameter store autoconfiguration for tests?

I have added spring-cloud-starter-aws-parameter-store-config dependency as explained in the spring documentation. Now, for unit tests I want to disable parameter store configuration. But not able to do it. I tried setting following property in test/application.properties Also tried excluding AwsParamStoreBootstrapConfiguration.class from AutoConfiguration but still not working. Exception Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagement]: Factory method ‘ssmClient’ threw exception; nested exception

Advertisement