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:
60
60
<dependency >
61
61
<groupId >cloud.localstack</groupId >
62
62
<artifactId >localstack-utils</artifactId >
63
- <version >0.2.21 </version >
63
+ <version >0.2.22 </version >
64
64
</dependency >
65
65
```
66
66
@@ -108,6 +108,7 @@ make build
108
108
109
109
## Change Log
110
110
111
+ * v0.2.22: Fix sqs event mapping for new event format, some test fixes
111
112
* v0.2.21: Bump version of AWS SDK v1; add AWS SDK v2 sync clients to TestUtils; add docker executable path under homebrew
112
113
* v0.2.20: Fix extracting container logs for LocalStack startup check
113
114
* 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 4
4
<groupId >cloud.localstack</groupId >
5
5
<artifactId >localstack-utils</artifactId >
6
6
<packaging >jar</packaging >
7
- <version >0.2.21 </version >
7
+ <version >0.2.22 </version >
8
8
<name >localstack-utils</name >
9
9
10
10
<description >Java utilities for the LocalStack platform.</description >
Original file line number Diff line number Diff line change 33
33
import java .util .LinkedList ;
34
34
import java .util .List ;
35
35
import java .util .Map ;
36
+ import java .util .Objects ;
36
37
import java .util .Optional ;
37
38
import java .util .UUID ;
38
39
import java .util .stream .Collectors ;
@@ -104,7 +105,7 @@ public static void main(String[] args) throws Exception {
104
105
inputObject = DDBEventParser .parse (records );
105
106
} else if (records .stream ().anyMatch (record -> record .containsKey ("s3" ))) {
106
107
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" ))) {
108
109
inputObject = reader .readValue (fileContent , SQSEvent .class );
109
110
}
110
111
}
You can’t perform that action at this time.
0 commit comments