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

Use localstack for s3 metrics testing #3

Merged
merged 2 commits into from
Aug 20, 2024

Conversation

mumoshu
Copy link
Contributor

@mumoshu mumoshu commented Aug 13, 2024

Building upon #1 and #2, I want to make aws-checker easier to test, without the real AWS infrastructure.

As a starter, this PR adds localstack/s3.go to support injecting a custom S3 endpoint resolver to redirect any S3 requests to localstack's S3 endpoint. This also extracts the checker struct out of the Run function, supporting injecting the resolver and making it more responsive to signals when the periodic check is still in progress.

main.go Outdated Show resolved Hide resolved
Copy link
Contributor

@cw-atkhry cw-atkhry left a comment

Choose a reason for hiding this comment

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

LGTM!

@cw-atkhry cw-atkhry merged commit 4dbc62e into chatwork:main Aug 20, 2024
@mumoshu mumoshu deleted the localstaco-s3-metrics-testing branch September 17, 2024 02:09
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