Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR]: easy integration tests with localstack #19

Open
alexeagle opened this issue Jul 14, 2023 · 1 comment
Open

[FR]: easy integration tests with localstack #19

alexeagle opened this issue Jul 14, 2023 · 1 comment

Comments

@alexeagle
Copy link
Member

I should be able to manually run a test like so:

% bazel run //infrastructure/tools/aws:localstack
% docker run --rm -it -p 4566:4566 -p 4510-4559:4510-4559 localstack:bazel
% pytest 

to execute a test that expects to talk to AWS APIs, without any network connection.

We may also give guidance about using the Testcontainers library to make the test fixture bring up the containers when the test starts.

@peakschris
Copy link

Worth looking at rules_itest, which can probably help to orchestrate these 3 actions.

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

No branches or pull requests

2 participants