aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/java/com/yahoo/vespa/model/admin/AdminTestCase.java
diff options
context:
space:
mode:
authorHarald Musum <musum@oath.com>2018-04-27 08:28:11 +0200
committerHarald Musum <musum@oath.com>2018-04-27 08:28:11 +0200
commit86b0369d17e7d5ad9a1a94ebf0c2a6a496020073 (patch)
tree4d9c508c8d81447134692b3a5e2390a06921ad71 /config-model/src/test/java/com/yahoo/vespa/model/admin/AdminTestCase.java
parente34eafa914c22654beeb33f6c536fe0b216f3fb7 (diff)
Remove disableFiledistributor, temp setting not used anymore
Diffstat (limited to 'config-model/src/test/java/com/yahoo/vespa/model/admin/AdminTestCase.java')
-rw-r--r--config-model/src/test/java/com/yahoo/vespa/model/admin/AdminTestCase.java46
1 files changed, 7 insertions, 39 deletions
diff --git a/config-model/src/test/java/com/yahoo/vespa/model/admin/AdminTestCase.java b/config-model/src/test/java/com/yahoo/vespa/model/admin/AdminTestCase.java
index 2f3dd008a63..5d8a49b86eb 100644
--- a/config-model/src/test/java/com/yahoo/vespa/model/admin/AdminTestCase.java
+++ b/config-model/src/test/java/com/yahoo/vespa/model/admin/AdminTestCase.java
@@ -42,9 +42,9 @@ import static org.junit.Assert.assertTrue;
*/
public class AdminTestCase {
- protected static final String TESTDIR = "src/test/cfg/admin/";
+ private static final String TESTDIR = "src/test/cfg/admin/";
- protected VespaModel getVespaModel(String configPath) {
+ private VespaModel getVespaModel(String configPath) {
return new VespaModelCreatorWithFilePkg(configPath).create();
}
@@ -52,7 +52,7 @@ public class AdminTestCase {
* Test that version 2.0 of adminconfig works as expected.
*/
@Test
- public void testAdmin20() throws Exception {
+ public void testAdmin20() {
VespaModel vespaModel = getVespaModel(TESTDIR + "adminconfig20");
// Verify that the admin plugin has been loaded (always loads routing).
@@ -112,7 +112,7 @@ public class AdminTestCase {
* adminserver, logserver, configserver and slobroks
*/
@Test
- public void testOnlyAdminserver() throws Exception {
+ public void testOnlyAdminserver() {
VespaModel vespaModel = getVespaModel(TESTDIR + "simpleadminconfig20");
// Verify that the admin plugin has been loaded (always loads routing).
@@ -173,7 +173,7 @@ public class AdminTestCase {
}
@Test
- public void testMultipleConfigServers() throws Exception {
+ public void testMultipleConfigServers() {
VespaModel vespaModel = getVespaModel(TESTDIR + "multipleconfigservers");
// Verify that the admin plugin has been loaded (always loads routing).
@@ -215,7 +215,7 @@ public class AdminTestCase {
}
@Test
- public void testContainerMetricsSnapshotInterval() throws Exception {
+ public void testContainerMetricsSnapshotInterval() {
VespaModel vespaModel = getVespaModel(TESTDIR + "metricconfig");
ContainerCluster docprocCluster = vespaModel.getContainerClusters().get("cluster.music.indexing");
@@ -259,7 +259,7 @@ public class AdminTestCase {
}
@Test
- public void testLogForwarding() throws Exception {
+ public void testLogForwarding() {
String hosts = "<hosts>"
+ " <host name=\"myhost0\">"
+ " <alias>node0</alias>"
@@ -283,38 +283,6 @@ public class AdminTestCase {
}
@Test
- public void disableFiledistributorService() throws Exception {
- String hosts = "<hosts>"
- + " <host name=\"localhost\">"
- + " <alias>node0</alias>"
- + " </host>"
- + "</hosts>";
-
- String services = "<services>" +
- " <admin version='2.0'>" +
- " <adminserver hostalias='node0' />" +
- " <filedistribution>" +
- " <disableFiledistributor>true</disableFiledistributor>" +
- " </filedistribution>" +
- " </admin>" +
- "</services>";
-
- VespaModel vespaModel = new VespaModelCreatorWithMockPkg(hosts, services).create();
- String localhost = HostName.getLocalhost();
- String localhostConfigId = "hosts/" + localhost;
-
- // Verify services in the sentinel config
- SentinelConfig.Builder b = new SentinelConfig.Builder();
- vespaModel.getConfig(b, localhostConfigId);
- SentinelConfig sentinelConfig = new SentinelConfig(b);
- assertThat(sentinelConfig.service().size(), is(3));
- assertThat(sentinelConfig.service(0).name(), is("logserver"));
- assertThat(sentinelConfig.service(1).name(), is("slobrok"));
- assertThat(sentinelConfig.service(2).name(), is("logd"));
- // No filedistributor service
- }
-
- @Test
public void testDisableFileDistributorForAllApps() {
DeployState state = new DeployState.Builder()
.zone(new Zone(Environment.dev, RegionName.from("baz")))