diff options
author | Harald Musum <musum@oath.com> | 2018-05-30 11:27:58 +0200 |
---|---|---|
committer | Harald Musum <musum@oath.com> | 2018-05-30 11:27:58 +0200 |
commit | 58a8bf83a3234f51ebab26a641ceec1bd01023e0 (patch) | |
tree | 1b419fe4cf15fb6de326c80b5e527854384d525d /config-model | |
parent | 8c2db62342f378c70db71406b535caf7d38a916e (diff) |
Add maintainer for deleting unused file references on disk
* For now the maintainer just outputs what to be deleted
* Add config for file references dir insteaed of hardcoding
to make it possible to test
Diffstat (limited to 'config-model')
-rw-r--r-- | config-model/src/test/java/com/yahoo/vespa/model/filedistribution/FileDistributorTestCase.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/config-model/src/test/java/com/yahoo/vespa/model/filedistribution/FileDistributorTestCase.java b/config-model/src/test/java/com/yahoo/vespa/model/filedistribution/FileDistributorTestCase.java index eabd0e5a7e0..131a5344116 100644 --- a/config-model/src/test/java/com/yahoo/vespa/model/filedistribution/FileDistributorTestCase.java +++ b/config-model/src/test/java/com/yahoo/vespa/model/filedistribution/FileDistributorTestCase.java @@ -7,10 +7,10 @@ import com.yahoo.config.model.application.provider.MockFileRegistry; import com.yahoo.config.model.test.MockHosts; import org.junit.Test; +import java.io.File; import java.util.Arrays; import java.util.HashSet; import java.util.Set; -import java.util.stream.Collectors; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; @@ -48,5 +48,10 @@ public class FileDistributorTestCase { public void startDownload(String hostName, int port, Set<FileReference> fileReferences) { filesToDownloadCalled++; } + + @Override + public File getFileReferencesDir() { + return null; + } } } |