Skip to content

Commit

Permalink
🐛 Fix test fail
Browse files Browse the repository at this point in the history
  • Loading branch information
nowgnas committed Dec 27, 2023
1 parent ba35ed9 commit a138ce8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/kr/bb/product/config/AWSConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import autovalue.shaded.org.jetbrains.annotations.NotNull;
import com.amazonaws.auth.AWSStaticCredentialsProvider;
import com.amazonaws.auth.BasicAWSCredentials;
import com.amazonaws.regions.Regions;
import com.amazonaws.services.sqs.AmazonSQSAsync;
import com.amazonaws.services.sqs.AmazonSQSAsyncClientBuilder;
import org.springframework.beans.factory.annotation.Value;
Expand All @@ -25,7 +26,7 @@ public class AWSConfiguration {
@Value("${cloud.aws.credentials.SECRET_ACCESS_KEY}")
private String secretAccessKey;

// java1

@NotNull
private BasicAWSCredentials getBasicAWSCredentials() {
return new BasicAWSCredentials(accessKeyId, secretAccessKey);
Expand All @@ -42,7 +43,7 @@ public AwsCredentialsProvider getAwsCredentials() {
@Bean
public AmazonSQSAsync amazonSQSAsync() {
return AmazonSQSAsyncClientBuilder.standard()
.withRegion(region)
.withRegion(Regions.AP_NORTHEAST_1)
.withCredentials(new AWSStaticCredentialsProvider(getBasicAWSCredentials()))
.build();
}
Expand Down
3 changes: 3 additions & 0 deletions src/test/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,8 @@ cloud:
name: ""
url: ""
sale-count-update-queue:
name: ""
url: ""
store-average-rating-update-queue:
name: ""
url: ""

0 comments on commit a138ce8

Please sign in to comment.