File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
modules/repository-s3/src/test/java/org/elasticsearch/repositories/s3 Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ public void testExecuteSingleUpload() throws IOException {
117117 final S3BlobStore blobStore = mock (S3BlobStore .class );
118118 when (blobStore .bucket ()).thenReturn (bucketName );
119119 when (blobStore .bufferSizeInBytes ()).thenReturn ((long ) bufferSize );
120+ when (blobStore .supportsConditionalWrites (any ())).thenReturn (true );
120121
121122 final S3BlobContainer blobContainer = new S3BlobContainer (blobPath , blobStore );
122123
@@ -238,6 +239,7 @@ void testExecuteMultipart(boolean doCopy) throws IOException {
238239 final S3BlobStore blobStore = mock (S3BlobStore .class );
239240 when (blobStore .bucket ()).thenReturn (bucketName );
240241 when (blobStore .bufferSizeInBytes ()).thenReturn (bufferSize );
242+ when (blobStore .supportsConditionalWrites (any ())).thenReturn (true );
241243
242244 final S3BlobStore sourceBlobStore = mock (S3BlobStore .class );
243245 when (sourceBlobStore .bucket ()).thenReturn (sourceBucketName );
You can’t perform that action at this time.
0 commit comments