Skip to content

Commit bf25630

Browse files
committed
Avoid REPOSITORY_ANALYSIS purpose
1 parent 4590bc3 commit bf25630

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/framework/src/main/java/org/elasticsearch/repositories/blobstore/ESBlobStoreRepositoryIntegTestCase.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,11 @@ public void testDeleteBlobs() throws IOException {
230230
assertEquals(container.listBlobs(randomPurpose()).size(), 2);
231231
container.deleteBlobsIgnoringIfNotExists(randomPurpose(), blobNames.iterator());
232232
assertTrue(container.listBlobs(randomPurpose()).isEmpty());
233-
container.deleteBlobsIgnoringIfNotExists(randomPurpose(), blobNames.iterator()); // does not raise when blobs don't exist
233+
container.deleteBlobsIgnoringIfNotExists(
234+
// does not raise when blobs don't exist, except for REPOSITORY_ANALYSIS which is strict
235+
randomValueOtherThan(OperationPurpose.REPOSITORY_ANALYSIS, BlobStoreTestUtil::randomPurpose),
236+
blobNames.iterator()
237+
);
234238
}
235239
}
236240

0 commit comments

Comments
 (0)