-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: synchronize all DAO operations to avoid H2 threading problems (#202
- Loading branch information
Showing
10 changed files
with
283 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
329 changes: 209 additions & 120 deletions
329
src/integrationtests/java/com/aws/greengrass/integrationtests/ipc/ShadowIPCTest.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
src/integrationtests/resources/com/aws/greengrass/integrationtests/ipc/shadowUnhappy.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
services: | ||
aws.greengrass.Nucleus: | ||
configuration: | ||
runWithDefault: | ||
posixUser: nobody | ||
aws.greengrass.ShadowManager: | ||
configuration: | ||
rateLimits: | ||
maxLocalRequestsPerSecondPerThing: 100 | ||
main: | ||
dependencies: | ||
- DoAll | ||
DoAll: | ||
lifecycle: | ||
startup: echo "Running" | ||
shutdown: echo "Stopping" | ||
dependencies: | ||
- aws.greengrass.ShadowManager | ||
configuration: | ||
accessControl: | ||
aws.greengrass.ShadowManager: | ||
policyId1: | ||
policyDescription: access to CRUD shadow operations | ||
operations: | ||
- 'aws.greengrass#GetThingShadow' | ||
- 'aws.greengrass#UpdateThingShadow' | ||
- 'aws.greengrass#DeleteThingShadow' | ||
resources: | ||
- '*' | ||
policyId2: | ||
policyDescription: access to list named shadows | ||
operations: | ||
- 'aws.greengrass#ListNamedShadowsForThing' | ||
resources: | ||
- '*' | ||
aws.greengrass.ipc.pubsub: | ||
policyId3: | ||
policyDescription: access to pubsub topics | ||
operations: | ||
- 'aws.greengrass#SubscribeToTopic' | ||
resources: | ||
- '*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters