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

Add a test for an invalid cache block #1139

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

vladem
Copy link
Contributor

@vladem vladem commented Nov 14, 2024

Description of change

Just adds a test that if a block in the shared cache is invalid, it is not served to the client application.

Relevant issues: N/A

Does this change impact existing behavior?

No.

Does this change need a changelog entry in any of the crates?

No.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and I agree to the terms of the Developer Certificate of Origin (DCO).

@vladem vladem temporarily deployed to PR integration tests November 14, 2024 21:37 — with GitHub Actions Inactive
@vladem vladem deployed to PR integration tests November 14, 2024 21:37 — with GitHub Actions Active
@vladem vladem temporarily deployed to PR integration tests November 14, 2024 21:37 — with GitHub Actions Inactive
@vladem vladem temporarily deployed to PR integration tests November 14, 2024 21:37 — with GitHub Actions Inactive
@vladem vladem temporarily deployed to PR integration tests November 14, 2024 21:37 — with GitHub Actions Inactive
@vladem vladem temporarily deployed to PR integration tests November 14, 2024 21:37 — with GitHub Actions Inactive
@vladem vladem temporarily deployed to PR integration tests November 14, 2024 21:37 — with GitHub Actions Inactive
let (mount_point, _session) = mount_bucket(client, cache.clone(), &bucket, &prefix);

// Put an object to the mounted bucket
let bucket_client = create_test_client(&region, &bucket, &prefix);
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason to use TestClient here? Why not just use an S3 client directly? This test would be much simpler and no need to add the get_object_etag method.

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