Skip to content

Commit

Permalink
Upgrade AWS SDK to 2.28.2 (#1216)
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejwalkowiak committed Sep 18, 2024
1 parent 2a13bbf commit cdfdaa8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ public ConfiguredAwsPresigner(SdkPresigner presigner) {
}

public URI getEndpoint() {
return attributes.get(SdkClientOption.ENDPOINT);
return attributes.get(SdkClientOption.CLIENT_ENDPOINT_PROVIDER).clientEndpoint();
}

public boolean isEndpointOverridden() {
return attributes.get(SdkClientOption.ENDPOINT_OVERRIDDEN);
return attributes.get(SdkClientOption.CLIENT_ENDPOINT_PROVIDER).isEndpointOverridden();
}

public Boolean getFipsEnabled() {
Expand Down
2 changes: 1 addition & 1 deletion spring-cloud-aws-dependencies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<properties>
<spotless.version>2.31.0</spotless.version>
<awssdk-v2.version>2.25.70</awssdk-v2.version>
<awssdk-v2.version>2.28.2</awssdk-v2.version>
<amazon.dax.version>2.0.4</amazon.dax.version>
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
<spring-cloud-commons.version>4.1.4</spring-cloud-commons.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ void canBeAppliedToPutObjectRequest() {
PutObjectRequest.Builder builder = PutObjectRequest.builder();
objectMetadata.apply(builder);

assertThat(builder)
.usingRecursiveComparison().ignoringFields("awsRequestOverrideConfig", "checksumCRC32C", "checksumSHA1",
"checksumSHA256", "key", "contentMD5", "bucket", "checksumCRC32", "contentLength")
assertThat(builder).usingRecursiveComparison()
.ignoringFields("awsRequestOverrideConfig", "checksumCRC32C", "checksumSHA1", "checksumSHA256", "key",
"contentMD5", "bucket", "checksumCRC32", "contentLength", "ifNoneMatch")
.isEqualTo(objectMetadata);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import static java.util.Collections.singletonMap;
import static org.assertj.core.api.Assertions.assertThat;
import static org.awaitility.Awaitility.await;
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;

import com.fasterxml.jackson.databind.ObjectMapper;
Expand Down Expand Up @@ -188,7 +189,10 @@ void receivesMessageBatch() throws Exception {
List<Message<String>> messages = create10Messages("receivesMessageBatch");
sqsTemplate.sendMany(RECEIVES_MESSAGE_BATCH_QUEUE_NAME, messages);
logger.debug("Sent 10 messages to queue {}", RECEIVES_MESSAGE_BATCH_QUEUE_NAME);
assertThat(latchContainer.receivesMessageBatchLatch.await(10, TimeUnit.SECONDS)).isTrue();
await().untilAsserted(() -> {
// ensure that first batch was processed more than once
assertThat(latchContainer.receivesMessageBatchLatch.getCount()).isLessThan(10);
});
assertThat(latchContainer.acknowledgementCallbackBatchLatch.await(10, TimeUnit.SECONDS)).isTrue();
}

Expand Down

0 comments on commit cdfdaa8

Please sign in to comment.