Skip to content
Snippets Groups Projects
Commit eb95a846 authored by juanf's avatar juanf
Browse files

SSDM-2329 : Do not shuffle recently deleted data sets - Take 2

SVN: 34455
parent 7bbc7108
No related branches found
No related tags found
No related merge requests found
...@@ -223,6 +223,7 @@ public class SimpleShufflingTest extends AbstractFileSystemTestCase ...@@ -223,6 +223,7 @@ public class SimpleShufflingTest extends AbstractFileSystemTestCase
{ {
allowing(service).listPhysicalDataSets(); allowing(service).listPhysicalDataSets();
will(returnValue(Arrays.asList(ds1, ds2, ds3, ds4))); will(returnValue(Arrays.asList(ds1, ds2, ds3, ds4)));
allowing(service).isDataSetOnTrashCanOrDeleted(ds3.getDataSetCode());
one(logger).log(LogLevel.INFO, one(logger).log(LogLevel.INFO,
"BEGIN Computing number of data sets to be moved for share 1"); "BEGIN Computing number of data sets to be moved for share 1");
one(logger).log(LogLevel.INFO, one(logger).log(LogLevel.INFO,
...@@ -246,6 +247,7 @@ public class SimpleShufflingTest extends AbstractFileSystemTestCase ...@@ -246,6 +247,7 @@ public class SimpleShufflingTest extends AbstractFileSystemTestCase
one(shareIdManager).getShareId(ds2.getDataSetCode()); one(shareIdManager).getShareId(ds2.getDataSetCode());
will(returnValue(ds2.getDataSetShareId())); will(returnValue(ds2.getDataSetShareId()));
allowing(service).isDataSetOnTrashCanOrDeleted(ds2.getDataSetCode());
one(dataSetMover).moveDataSetToAnotherShare( one(dataSetMover).moveDataSetToAnotherShare(
new File(share1.getShare(), STORE_PATH + "ds2"), share4.getShare(), new File(share1.getShare(), STORE_PATH + "ds2"), share4.getShare(),
null, logger); null, logger);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment