File tree Expand file tree Collapse file tree
dd-java-agent/instrumentation/spring-messaging-4/src/test/groovy/listener Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import org.springframework.context.annotation.Bean
88import org.springframework.context.annotation.Configuration
99import org.springframework.context.annotation.Import
1010import software.amazon.awssdk.auth.credentials.AnonymousCredentialsProvider
11+ import software.amazon.awssdk.regions.Region
1112import software.amazon.awssdk.services.sqs.SqsAsyncClient
1213
1314import jakarta.annotation.PreDestroy
@@ -34,6 +35,7 @@ class Config {
3435 def sqsAddress = sqsRestServer(). waitUntilStarted(). localAddress()
3536 return SqsAsyncClient . builder()
3637 .credentialsProvider(AnonymousCredentialsProvider . create())
38+ .region(Region . AWS_GLOBAL )
3739 .endpointOverride(new URI (" http://localhost:${ sqsAddress.port} " ))
3840 .build()
3941 }
You can’t perform that action at this time.
0 commit comments