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

fix: enable S3 integration tests to be configured via environment vars #1966

Merged
merged 3 commits into from
Dec 15, 2023

Conversation

dispanser
Copy link
Contributor

Description

tl;dr: this allows the following:

AWS_ENDPOINT_URL=none AWS_ACCESS_KEY_ID=KEY_ID AWS_SECRET_ACCESS_KEY=SECRET AWS_REGION=eu-central-1 cargo test

This allows integration tests for AWS/S3 to talk to a real AWS environment instead of localstack via setting a bunch of environment variables. This didn't previously work because AWS_ENDPOINT_URL must be unset for "normal" AWS (or I didn't find a valid endpoint setting for this). When not running against localstack, some operations, including DynamoDb table creation, are notably slower, and it's necessary to poll the describe-table API until the table is ready to be used.

AWS_ENDPOINT_URL=none is a special value that instructs the test to run without an endpoint, talking to AWS proper.

I need this because localstack doesn't seem to emit ProvisionedThroughputExceeded, so I have difficulties testing for correct retry / backoff behavior.

@github-actions github-actions bot added binding/rust Issues for the Rust crate crate/core labels Dec 13, 2023
Copy link

ACTION NEEDED

delta-rs follows the Conventional Commits specification for release automation.

The PR title and description are used as the merge commit message. Please update your PR title and description to match the specification.

@dispanser dispanser changed the title fix: Enable S3 integration tests to be configured via environment vars fix: enable S3 integration tests to be configured via environment vars Dec 13, 2023
@rtyler rtyler enabled auto-merge (rebase) December 14, 2023 19:18
@rtyler rtyler merged commit be75827 into delta-io:main Dec 15, 2023
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binding/rust Issues for the Rust crate crate/core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants