Client dynamodb/test changes - #7846
Open
lucianlature-endava wants to merge 8 commits into
Open
Conversation
Switch local test infra from LocalStack to amazon/dynamodb-local. Add start and down helpers and wire endpoint vars for local execution.
…hance .gitignore for VSCode
… and simplify client init
4 tasks
Restore DynamoDB client snapshot layout and contents to match origin/main.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue
#7845
Description
This change brings the local e2e dependency on DynamoDB Local.
Added
scripts/dynamodb-local/docker-compose.ymlusingamazon/dynamodb-local:latest.Added
scripts/dynamodb-local/dynamodb.shto start DynamoDB Local and wait for readiness.Added
scripts/dynamodb-local/down.shto stop the stack.Added
scripts/dynamodb-local/README.mdwith start/stop usage.Updated clients/client-dynamodb/package.json
sotest:e2e:local` uses the new DynamoDB Local flow and exports endpoint/credential env vars.Testing
Tested with:
docker compose -f scripts/dynamodb-local/docker-compose.ymlconfigResult: compose file valid.
bash scripts/dynamodb-local/dynamodb.shResult: container starts and readiness check succeeds on http://localhost:8000.
bash scripts/dynamodb-local/down.shResult: stack stops cleanly.
yarn test:e2e:local(from clients/client-dynamodb)Result: infra startup succeeds.
Checklist
*.integ.spec.ts) or E2E tests.@public,@internaltags and enabled doc generation on the package. Remember that access level annotations go below the description, not above.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.