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)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
if (isObjectInBucket(bucketName, objectKey)) {
|
if (isObjectInBucket(bucketName, objectKey)) {
|
||||||
final S3Object object = new S3Object(objectKey);
|
final S3Object object = new S3Object(objectKey);
|
||||||
object.setStorageClass(S3Object.STORAGE_CLASS_STANDARD);
|
object.setStorageClass(S3Object.STORAGE_CLASS_STANDARD);
|
||||||
return object;
|
return new S3Object[]{object};
|
||||||
} else {
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
} catch (ServiceException e) {
|
||||||
|
// return empty list
|
||||||
|
}
|
||||||
|
return new S3Object[]{};
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue