mirror of https://github.com/apache/druid.git
fix broken S3 moving test
This commit is contained in:
parent
f2e0dc9327
commit
12bc3ac27b
|
@ -133,15 +133,18 @@ public class S3DataSegmentMoverTest
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public StorageObject getObjectDetails(String bucketName, String objectKey) throws ServiceException
|
public S3Object[] listObjects(String bucketName, String objectKey, String separator)
|
||||||
{
|
{
|
||||||
if (isObjectInBucket(bucketName, objectKey)) {
|
try {
|
||||||
final S3Object object = new S3Object(objectKey);
|
if (isObjectInBucket(bucketName, objectKey)) {
|
||||||
object.setStorageClass(S3Object.STORAGE_CLASS_STANDARD);
|
final S3Object object = new S3Object(objectKey);
|
||||||
return object;
|
object.setStorageClass(S3Object.STORAGE_CLASS_STANDARD);
|
||||||
} else {
|
return new S3Object[]{object};
|
||||||
return null;
|
}
|
||||||
|
} catch (ServiceException e) {
|
||||||
|
// return empty list
|
||||||
}
|
}
|
||||||
|
return new S3Object[]{};
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue