File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
src/main/java/cloud/localstack Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ Simply add the following dependency to your `pom.xml` file:
6060<dependency >
6161 <groupId >cloud.localstack</groupId >
6262 <artifactId >localstack-utils</artifactId >
63- <version >0.2.21 </version >
63+ <version >0.2.22 </version >
6464</dependency >
6565```
6666
@@ -108,6 +108,7 @@ make build
108108
109109## Change Log
110110
111+ * v0.2.22: Fix sqs event mapping for new event format, some test fixes
111112* v0.2.21: Bump version of AWS SDK v1; add AWS SDK v2 sync clients to TestUtils; add docker executable path under homebrew
112113* v0.2.20: Fix extracting container logs for LocalStack startup check
113114* v0.2.19: Bump version of log4j to 2.17.0 to fix further vulnerabilities related to recent CVE
Original file line number Diff line number Diff line change 44 <groupId >cloud.localstack</groupId >
55 <artifactId >localstack-utils</artifactId >
66 <packaging >jar</packaging >
7- <version >0.2.21 </version >
7+ <version >0.2.22 </version >
88 <name >localstack-utils</name >
99
1010 <description >Java utilities for the LocalStack platform.</description >
Original file line number Diff line number Diff line change 3333import java .util .LinkedList ;
3434import java .util .List ;
3535import java .util .Map ;
36+ import java .util .Objects ;
3637import java .util .Optional ;
3738import java .util .UUID ;
3839import java .util .stream .Collectors ;
@@ -104,7 +105,7 @@ public static void main(String[] args) throws Exception {
104105 inputObject = DDBEventParser .parse (records );
105106 } else if (records .stream ().anyMatch (record -> record .containsKey ("s3" ))) {
106107 inputObject = S3EventParser .parse (records );
107- } else if (records .stream ().anyMatch (record -> record .containsKey ( " sqs" ))) {
108+ } else if (records .stream ().anyMatch (record -> Objects . equals ( record .get ( "eventSource" ), "aws: sqs" ))) {
108109 inputObject = reader .readValue (fileContent , SQSEvent .class );
109110 }
110111 }
You can’t perform that action at this time.
0 commit comments