Search in sources :

Example 1 with ConfigServerContainerModelBuilder

use of com.yahoo.vespa.model.container.xml.ConfigServerContainerModelBuilder in project vespa by vespa-engine.

the class ConfigserverClusterTest method setupCluster.

@Before
public void setupCluster() {
    String services = "<jdisc id='standalone' version='1.0'>" + "  <http>" + "    <server port='1337' id='configserver' />" + "  </http>" + "</jdisc>";
    root = new MockRoot();
    new ConfigServerContainerModelBuilder(new TestOptions().rpcPort(12345).useVespaVersionInRequest(true).hostedVespa(true).environment("test").region("bar").numParallelTenantLoaders(99)).build(new DeployState.Builder().build(true), null, root, XML.getDocument(services).getDocumentElement());
    root.freezeModelTopology();
}
Also used : ConfigServerContainerModelBuilder(com.yahoo.vespa.model.container.xml.ConfigServerContainerModelBuilder) MockRoot(com.yahoo.config.model.test.MockRoot) ConfigServerContainerModelBuilder(com.yahoo.vespa.model.container.xml.ConfigServerContainerModelBuilder) Before(org.junit.Before)

Aggregations

MockRoot (com.yahoo.config.model.test.MockRoot)1 ConfigServerContainerModelBuilder (com.yahoo.vespa.model.container.xml.ConfigServerContainerModelBuilder)1 Before (org.junit.Before)1