diff options
author | Harald Musum <musum@yahooinc.com> | 2022-07-08 12:38:40 +0200 |
---|---|---|
committer | Harald Musum <musum@yahooinc.com> | 2022-07-08 12:38:40 +0200 |
commit | 764de1a89760a26d4285a1c2274ea56eab584e79 (patch) | |
tree | 5d9ba4156edc28d8be4e49af0060acb1408b894c /config-model/src | |
parent | 09ab8b521cc2fb3110c73ff7412866b59e04cff2 (diff) |
Remove testing of standalone docproc container
This has not been supported for a long time, removing.
Diffstat (limited to 'config-model/src')
-rw-r--r-- | config-model/src/test/java/com/yahoo/vespa/model/container/docproc/StandaloneDocprocContainerTest.java | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/config-model/src/test/java/com/yahoo/vespa/model/container/docproc/StandaloneDocprocContainerTest.java b/config-model/src/test/java/com/yahoo/vespa/model/container/docproc/StandaloneDocprocContainerTest.java deleted file mode 100644 index 5bb93255a8f..00000000000 --- a/config-model/src/test/java/com/yahoo/vespa/model/container/docproc/StandaloneDocprocContainerTest.java +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -package com.yahoo.vespa.model.container.docproc; - -import com.yahoo.component.ComponentId; -import com.yahoo.config.model.deploy.DeployState; -import com.yahoo.config.model.builder.xml.test.DomBuilderTest; -import com.yahoo.vespa.model.container.ContainerCluster; -import com.yahoo.vespa.model.container.ContainerModel; -import com.yahoo.vespa.model.container.component.Component; -import com.yahoo.vespa.model.container.xml.ContainerModelBuilder; -import com.yahoo.vespa.model.container.xml.ContainerModelBuilder.Networking; -import org.junit.Test; -import org.w3c.dom.Element; - -import java.util.Map; - -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; - -/** - * @author Einar M R Rosenvinge - */ -public class StandaloneDocprocContainerTest extends DomBuilderTest { - - public ContainerCluster setupCluster(boolean standalone) { - ContainerModelBuilder builder = new ContainerModelBuilder(standalone, Networking.disable); - ContainerModel model = builder.build(DeployState.createTestState(), null, null, root, servicesXml()); - - if (!standalone) - model.getCluster().getDocproc().getChains().addServersAndClientsForChains(); - - root.freezeModelTopology(); - return model.getCluster(); - } - - private Element servicesXml() { - return parse("" + - "<container version=\"1.0\">\n" + - " <document-processing>\n" + - " <chain id=\"foo\">\n" + - " <documentprocessor id=\"MyDocproc\"/>\n" + - " </chain>\n" + - " </document-processing>\n" + - " <nodes>\n" + - " <node hostalias=\"node01\"/>\n" + - " </nodes>\n" + - "</container>\n"); - } - - @Test - public void requireMbusProvidersWhenNonStandalone() { - ContainerCluster containerCluster = setupCluster(false); - Map<ComponentId, Component<?, ?>> components = containerCluster.getComponentsMap(); - - boolean foundAtLeastOneClient = false; - boolean foundAtLeastOneServer = false; - - for (ComponentId componentId : components.keySet()) { - if (componentId.stringValue().contains("MbusClient")) foundAtLeastOneClient = true; - if (componentId.stringValue().contains("MbusServer")) foundAtLeastOneServer = true; - } - assertTrue(foundAtLeastOneClient); - assertTrue(foundAtLeastOneServer); - - } - - @Test - public void requireNoMbusProvidersWhenStandalone() { - ContainerCluster containerCluster = setupCluster(true); - Map<ComponentId, Component<?, ?>> components = containerCluster.getComponentsMap(); - - boolean foundAtLeastOneClient = false; - boolean foundAtLeastOneServer = false; - - for (ComponentId componentId : components.keySet()) { - if (componentId.stringValue().contains("MbusClient")) foundAtLeastOneClient = true; - if (componentId.stringValue().contains("MbusServer")) foundAtLeastOneServer = true; - } - assertFalse(foundAtLeastOneClient); - assertFalse(foundAtLeastOneServer); - } -} |