Skip to content

Conversation

whummer
Copy link
Member

@whummer whummer commented Feb 26, 2023

Enable generic actions and further enhance parity for DynamoDB API GW integration. Follow-up from #7753

So far, we had support for dynamodb:action/PutItem and dynamodb:action/Query DynamoDB integrations. While working on deploying a more complex AWS sample app against LocalStack, the requirements for further integration operations came up (incl. dynamodb:action/Scan, among others).

Summary of changes:

  • make the DynamoDB integration generic - accepting any type of valid dynamodb:action/* integration action that can be executed against DynamoDB
  • add snapshot test for additional DynamoDB integrations (incl. PutItem, Scan)
  • refactor additional invocations.py into separate backend classes in integrations.py

/cc @calvernaz @bentsku @joe4dev

@whummer whummer requested a review from calvernaz as a code owner February 26, 2023 13:02
@whummer whummer temporarily deployed to localstack-ext-tests February 26, 2023 13:02 — with GitHub Actions Inactive
@@ -1,15 +1,10 @@
import json
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: mostly cleanups / refactoring in this file (migrating logic into integrations.py), practically no functional changes.

@github-actions
Copy link

github-actions bot commented Feb 26, 2023

LocalStack integration with Pro

       3 files  ±0         3 suites  ±0   1h 29m 30s ⏱️ - 3m 11s
1 759 tests +3  1 389 ✔️ +3  370 💤 ±0  0 ±0 
2 477 runs  +3  1 765 ✔️ +3  712 💤 ±0  0 ±0 

Results for commit 73e1bcb. ± Comparison against base commit 86494fb.

♻️ This comment has been updated with latest results.

@whummer whummer temporarily deployed to localstack-ext-tests February 26, 2023 13:06 — with GitHub Actions Inactive
@whummer whummer temporarily deployed to localstack-ext-tests February 26, 2023 14:24 — with GitHub Actions Inactive
@coveralls
Copy link

coveralls commented Feb 26, 2023

Coverage Status

Coverage: 85.105% (+0.05%) from 85.059% when pulling 8663325 on apigw-ddb-int-2 into 86494fb on master.

@whummer whummer temporarily deployed to localstack-ext-tests February 26, 2023 16:42 — with GitHub Actions Inactive
@whummer whummer temporarily deployed to localstack-ext-tests February 26, 2023 17:04 — with GitHub Actions Inactive
Copy link
Contributor

@calvernaz calvernaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice cleanup 💯 and great to have more dynamo actions supported.

Couple of comments, nothing major


response_template = response_templates.get(APPLICATION_JSON)
s3 = aws_stack.connect_to_service("s3")
uri = apply_request_parameters(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in next iterations we can start moving from this function to the request parameters resolver

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds great, looking forward to it! Do you have this in the pipeline @calvernaz ? Let's coordinate..

@whummer whummer temporarily deployed to localstack-ext-tests February 27, 2023 08:55 — with GitHub Actions Inactive
@whummer whummer merged commit e64f63c into master Feb 27, 2023
@whummer whummer deleted the apigw-ddb-int-2 branch February 27, 2023 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants