Skip to content

build(deps): bump aws-lambda-java-events from 3.11.1 to 3.11.2 #1215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/powertools-examples-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-lambda-java-events</artifactId>
<version>3.11.1</version>
<version>3.11.2</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
Expand Down
2 changes: 1 addition & 1 deletion examples/powertools-examples-idempotency/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-lambda-java-events</artifactId>
<version>3.11.1</version>
<version>3.11.2</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
Expand Down
2 changes: 1 addition & 1 deletion examples/powertools-examples-parameters/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-lambda-java-events</artifactId>
<version>3.11.1</version>
<version>3.11.2</version>
</dependency>

<!-- Test dependencies -->
Expand Down
2 changes: 1 addition & 1 deletion examples/powertools-examples-serialization/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-lambda-java-events</artifactId>
<version>3.11.1</version>
<version>3.11.2</version>
</dependency>

<!-- Test dependencies -->
Expand Down
2 changes: 1 addition & 1 deletion examples/powertools-examples-sqs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-lambda-java-events</artifactId>
<version>3.11.1</version>
<version>3.11.2</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<payloadoffloading-common.version>2.1.3</payloadoffloading-common.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<lambda.core.version>1.2.2</lambda.core.version>
<lambda.events.version>3.11.1</lambda.events.version>
<lambda.events.version>3.11.2</lambda.events.version>
<lambda.serial.version>1.1.2</lambda.serial.version>
<maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version>
<aspectj-maven-plugin.version>1.13.1</aspectj-maven-plugin.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public void saveInProgress_defaultConfig() {
assertThat(dr.getStatus()).isEqualTo(DataRecord.Status.INPROGRESS);
assertThat(dr.getExpiryTimestamp()).isEqualTo(now.plus(3600, ChronoUnit.SECONDS).getEpochSecond());
assertThat(dr.getResponseData()).isNull();
assertThat(dr.getIdempotencyKey()).isEqualTo("testFunction#47261bd5b456f400f8d191cfb3a7482f");
assertThat(dr.getIdempotencyKey()).isEqualTo("testFunction#7b40f56c086de5aa91dc467456329ed2");
assertThat(dr.getPayloadHash()).isEqualTo("");
assertThat(dr.getInProgressExpiryTimestamp()).isEmpty();
assertThat(status).isEqualTo(1);
Expand All @@ -105,7 +105,7 @@ public void saveInProgress_withRemainingTime() {
assertThat(dr.getStatus()).isEqualTo(DataRecord.Status.INPROGRESS);
assertThat(dr.getExpiryTimestamp()).isEqualTo(now.plus(3600, ChronoUnit.SECONDS).getEpochSecond());
assertThat(dr.getResponseData()).isNull();
assertThat(dr.getIdempotencyKey()).isEqualTo("testFunction#47261bd5b456f400f8d191cfb3a7482f");
assertThat(dr.getIdempotencyKey()).isEqualTo("testFunction#7b40f56c086de5aa91dc467456329ed2");
assertThat(dr.getPayloadHash()).isEqualTo("");
assertThat(dr.getInProgressExpiryTimestamp().orElse(-1)).isEqualTo(now.plus(lambdaTimeoutMs, ChronoUnit.MILLIS).toEpochMilli());
assertThat(status).isEqualTo(1);
Expand Down Expand Up @@ -216,7 +216,7 @@ public void saveSuccess_shouldUpdateRecord() throws JsonProcessingException {
assertThat(dr.getStatus()).isEqualTo(DataRecord.Status.COMPLETED);
assertThat(dr.getExpiryTimestamp()).isEqualTo(now.plus(3600, ChronoUnit.SECONDS).getEpochSecond());
assertThat(dr.getResponseData()).isEqualTo(JsonConfig.get().getObjectMapper().writeValueAsString(product));
assertThat(dr.getIdempotencyKey()).isEqualTo("testFunction#47261bd5b456f400f8d191cfb3a7482f");
assertThat(dr.getIdempotencyKey()).isEqualTo("testFunction#7b40f56c086de5aa91dc467456329ed2");
assertThat(dr.getPayloadHash()).isEqualTo("");
assertThat(status).isEqualTo(2);
assertThat(cache).isEmpty();
Expand All @@ -235,11 +235,11 @@ public void saveSuccess_withCacheEnabled_shouldSaveInCache() throws JsonProcessi

assertThat(status).isEqualTo(2);
assertThat(cache).hasSize(1);
DataRecord record = cache.get("testFunction#47261bd5b456f400f8d191cfb3a7482f");
DataRecord record = cache.get("testFunction#7b40f56c086de5aa91dc467456329ed2");
assertThat(record.getStatus()).isEqualTo(DataRecord.Status.COMPLETED);
assertThat(record.getExpiryTimestamp()).isEqualTo(now.plus(3600, ChronoUnit.SECONDS).getEpochSecond());
assertThat(record.getResponseData()).isEqualTo(JsonConfig.get().getObjectMapper().writeValueAsString(product));
assertThat(record.getIdempotencyKey()).isEqualTo("testFunction#47261bd5b456f400f8d191cfb3a7482f");
assertThat(record.getIdempotencyKey()).isEqualTo("testFunction#7b40f56c086de5aa91dc467456329ed2");
assertThat(record.getPayloadHash()).isEqualTo("");
}

Expand All @@ -257,7 +257,7 @@ public void getRecord_shouldReturnRecordFromPersistence() throws IdempotencyItem

Instant now = Instant.now();
DataRecord record = persistenceStore.getRecord(JsonConfig.get().getObjectMapper().valueToTree(event), now);
assertThat(record.getIdempotencyKey()).isEqualTo("testFunction.myfunc#47261bd5b456f400f8d191cfb3a7482f");
assertThat(record.getIdempotencyKey()).isEqualTo("testFunction.myfunc#7b40f56c086de5aa91dc467456329ed2");
assertThat(record.getStatus()).isEqualTo(DataRecord.Status.INPROGRESS);
assertThat(record.getResponseData()).isEqualTo("Response");
assertThat(status).isEqualTo(0);
Expand All @@ -272,15 +272,15 @@ public void getRecord_cacheEnabledNotExpired_shouldReturnRecordFromCache() throw

Instant now = Instant.now();
DataRecord dr = new DataRecord(
"testFunction.myfunc#47261bd5b456f400f8d191cfb3a7482f",
"testFunction.myfunc#7b40f56c086de5aa91dc467456329ed2",
DataRecord.Status.COMPLETED,
now.plus(3600, ChronoUnit.SECONDS).getEpochSecond(),
"result of the function",
null);
cache.put("testFunction.myfunc#47261bd5b456f400f8d191cfb3a7482f", dr);
cache.put("testFunction.myfunc#7b40f56c086de5aa91dc467456329ed2", dr);

DataRecord record = persistenceStore.getRecord(JsonConfig.get().getObjectMapper().valueToTree(event), now);
assertThat(record.getIdempotencyKey()).isEqualTo("testFunction.myfunc#47261bd5b456f400f8d191cfb3a7482f");
assertThat(record.getIdempotencyKey()).isEqualTo("testFunction.myfunc#7b40f56c086de5aa91dc467456329ed2");
assertThat(record.getStatus()).isEqualTo(DataRecord.Status.COMPLETED);
assertThat(record.getResponseData()).isEqualTo("result of the function");
assertThat(status).isEqualTo(-1); // getRecord must not be called (retrieve from cache)
Expand All @@ -295,15 +295,15 @@ public void getRecord_cacheEnabledExpired_shouldReturnRecordFromPersistence() th

Instant now = Instant.now();
DataRecord dr = new DataRecord(
"testFunction.myfunc#47261bd5b456f400f8d191cfb3a7482f",
"testFunction.myfunc#7b40f56c086de5aa91dc467456329ed2",
DataRecord.Status.COMPLETED,
now.minus(3, ChronoUnit.SECONDS).getEpochSecond(),
"result of the function",
null);
cache.put("testFunction.myfunc#47261bd5b456f400f8d191cfb3a7482f", dr);
cache.put("testFunction.myfunc#7b40f56c086de5aa91dc467456329ed2", dr);

DataRecord record = persistenceStore.getRecord(JsonConfig.get().getObjectMapper().valueToTree(event), now);
assertThat(record.getIdempotencyKey()).isEqualTo("testFunction.myfunc#47261bd5b456f400f8d191cfb3a7482f");
assertThat(record.getIdempotencyKey()).isEqualTo("testFunction.myfunc#7b40f56c086de5aa91dc467456329ed2");
assertThat(record.getStatus()).isEqualTo(DataRecord.Status.INPROGRESS);
assertThat(record.getResponseData()).isEqualTo("Response");
assertThat(status).isEqualTo(0);
Expand Down Expand Up @@ -347,8 +347,8 @@ public void deleteRecord_cacheEnabled_shouldDeleteRecordFromCache() {
persistenceStore.configure(IdempotencyConfig.builder()
.withUseLocalCache(true).build(), null, cache);

cache.put("testFunction#47261bd5b456f400f8d191cfb3a7482f",
new DataRecord("testFunction#47261bd5b456f400f8d191cfb3a7482f", DataRecord.Status.COMPLETED, 123, null, null));
cache.put("testFunction#7b40f56c086de5aa91dc467456329ed2",
new DataRecord("testFunction#7b40f56c086de5aa91dc467456329ed2", DataRecord.Status.COMPLETED, 123, null, null));
persistenceStore.deleteRecord(JsonConfig.get().getObjectMapper().valueToTree(event), new ArithmeticException());
assertThat(status).isEqualTo(3);
assertThat(cache).isEmpty();
Expand Down