|
@@ -177,13 +177,13 @@ public class TestAliyunOSSFileSystemContract
|
|
|
AliyunOSSFileSystemStore store = ((AliyunOSSFileSystem)this.fs).getStore();
|
|
|
store.storeEmptyFile("test/new/file/");
|
|
|
AliyunOSSCopyFileTask oneCopyFileTask = new AliyunOSSCopyFileTask(
|
|
|
- store, srcOne.toUri().getPath().substring(1),
|
|
|
+ store, srcOne.toUri().getPath().substring(1), data.length,
|
|
|
dstOne.toUri().getPath().substring(1), copyFileContext);
|
|
|
oneCopyFileTask.run();
|
|
|
assumeFalse(copyFileContext.isCopyFailure());
|
|
|
|
|
|
AliyunOSSCopyFileTask twoCopyFileTask = new AliyunOSSCopyFileTask(
|
|
|
- store, srcOne.toUri().getPath().substring(1),
|
|
|
+ store, srcOne.toUri().getPath().substring(1), data.length,
|
|
|
dstTwo.toUri().getPath().substring(1), copyFileContext);
|
|
|
twoCopyFileTask.run();
|
|
|
assumeFalse(copyFileContext.isCopyFailure());
|
|
@@ -211,13 +211,13 @@ public class TestAliyunOSSFileSystemContract
|
|
|
AliyunOSSFileSystemStore store = ((AliyunOSSFileSystem)this.fs).getStore();
|
|
|
//store.storeEmptyFile("test/new/file/");
|
|
|
AliyunOSSCopyFileTask oneCopyFileTask = new AliyunOSSCopyFileTask(
|
|
|
- store, srcOne.toUri().getPath().substring(1),
|
|
|
+ store, srcOne.toUri().getPath().substring(1), data.length,
|
|
|
dstOne.toUri().getPath().substring(1), copyFileContext);
|
|
|
oneCopyFileTask.run();
|
|
|
assumeTrue(copyFileContext.isCopyFailure());
|
|
|
|
|
|
AliyunOSSCopyFileTask twoCopyFileTask = new AliyunOSSCopyFileTask(
|
|
|
- store, srcOne.toUri().getPath().substring(1),
|
|
|
+ store, srcOne.toUri().getPath().substring(1), data.length,
|
|
|
dstTwo.toUri().getPath().substring(1), copyFileContext);
|
|
|
twoCopyFileTask.run();
|
|
|
assumeTrue(copyFileContext.isCopyFailure());
|
|
@@ -246,19 +246,19 @@ public class TestAliyunOSSFileSystemContract
|
|
|
AliyunOSSFileSystemStore store = ((AliyunOSSFileSystem)this.fs).getStore();
|
|
|
//store.storeEmptyFile("test/new/file/");
|
|
|
AliyunOSSCopyFileTask oneCopyFileTask = new AliyunOSSCopyFileTask(
|
|
|
- store, srcOne.toUri().getPath().substring(1),
|
|
|
+ store, srcOne.toUri().getPath().substring(1), data.length,
|
|
|
dstOne.toUri().getPath().substring(1), copyFileContext);
|
|
|
oneCopyFileTask.run();
|
|
|
assumeTrue(copyFileContext.isCopyFailure());
|
|
|
|
|
|
AliyunOSSCopyFileTask twoCopyFileTask = new AliyunOSSCopyFileTask(
|
|
|
- store, srcOne.toUri().getPath().substring(1),
|
|
|
+ store, srcOne.toUri().getPath().substring(1), data.length,
|
|
|
dstTwo.toUri().getPath().substring(1), copyFileContext);
|
|
|
twoCopyFileTask.run();
|
|
|
assumeTrue(copyFileContext.isCopyFailure());
|
|
|
|
|
|
AliyunOSSCopyFileTask threeCopyFileTask = new AliyunOSSCopyFileTask(
|
|
|
- store, srcOne.toUri().getPath().substring(1),
|
|
|
+ store, srcOne.toUri().getPath().substring(1), data.length,
|
|
|
dstThree.toUri().getPath().substring(1), copyFileContext);
|
|
|
threeCopyFileTask.run();
|
|
|
assumeTrue(copyFileContext.isCopyFailure());
|