Skip to content

Allow overriding blob container path in tests #126428

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

Conversation

DaveCTurner
Copy link
Contributor

Some AbstractBlobContainerRetriesTestCase#createBlobContainer
implementations choose a path for the container randomly, but we have a
need for a test which re-creates the same container against a different
S3Service and BlobStore and must therefore specify the same path
each time. This commit exposes a parameter that lets callers specify a
container path.

Backport of #126391 to 8.x

Some `AbstractBlobContainerRetriesTestCase#createBlobContainer`
implementations choose a path for the container randomly, but we have a
need for a test which re-creates the same container against a different
`S3Service` and `BlobStore` and must therefore specify the same path
each time. This commit exposes a parameter that lets callers specify a
container path.

Backport of elastic#126391 to `8.x`
@DaveCTurner DaveCTurner added >test Issues or PRs that are addressing/adding tests :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs backport auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) v8.19.0 labels Apr 7, 2025
@elasticsearchmachine elasticsearchmachine merged commit e00de75 into elastic:8.x Apr 7, 2025
15 checks passed
@DaveCTurner DaveCTurner deleted the 2025/04/07/backport-126391-override-blobcontainer branch April 7, 2025 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >test Issues or PRs that are addressing/adding tests v8.19.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants