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

[Backport 2.x] Add support to upload snapshot shard blobs with hashed prefix #15643

Merged
Prev Previous commit
Next Next commit
Fix RepositoriesServiceIT.testUpdateRepository from #15426 (#15559)
Signed-off-by: Ashish Singh <ssashish@amazon.com>
  • Loading branch information
ashking94 committed Sep 4, 2024
commit a09004b422ff58651ffb3862c2087ed3852872e8
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,13 @@ public void testUpdateRepository() {
.next();

final Settings.Builder repoSettings = Settings.builder().put("location", randomRepoPath());
createRepository(repositoryName, FsRepository.TYPE, repoSettings);
OpenSearchIntegTestCase.putRepositoryWithNoSettingOverrides(
client().admin().cluster(),
repositoryName,
FsRepository.TYPE,
true,
repoSettings
);

final GetRepositoriesResponse originalGetRepositoriesResponse = client.admin()
.cluster()
Expand All @@ -87,7 +93,13 @@ public void testUpdateRepository() {
final boolean updated = randomBoolean();
final String updatedRepositoryType = updated ? "mock" : FsRepository.TYPE;

createRepository(repositoryName, updatedRepositoryType, repoSettings);
OpenSearchIntegTestCase.putRepositoryWithNoSettingOverrides(
client().admin().cluster(),
repositoryName,
updatedRepositoryType,
true,
repoSettings
);

final GetRepositoriesResponse updatedGetRepositoriesResponse = client.admin()
.cluster()
Expand Down