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 S3 metrics test to actually test the correct code path #6

Merged
merged 3 commits into from
Sep 6, 2024

Conversation

mumoshu
Copy link
Contributor

@mumoshu mumoshu commented Sep 3, 2024

#3 introduced localstack for testing S3 metrics.
But we have never created a fake S3 bucket or object necessary for successful metrics to be obtained.

This PR updates the test to do create fake S3 bucket and object, along with parsing metrics exposed by aws-checker, so that you can verify that "s3 ok metrics" is present.

@mumoshu mumoshu force-pushed the fix-s3-metrics-test branch from 3ebe8b6 to c2f0bca Compare September 3, 2024 02:45
@mumoshu mumoshu force-pushed the fix-s3-metrics-test branch from c2f0bca to 8076a44 Compare September 3, 2024 03:39
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 2636144 into chatwork:main Sep 6, 2024
1 check passed
@mumoshu mumoshu deleted the fix-s3-metrics-test branch September 6, 2024 08:25
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.

2 participants