// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.provision.testutils;

/**
 * For running NodeRepository API with some mocked data.
 * This is used by both NodeAdmin and NodeRepository tests.
 *
 * @author dybis
 */
public class ContainerConfig {

        public static final String servicesXmlV2(int port) {
                return
                        "<jdisc version='1.0'>" +
                        "  <component id='com.yahoo.test.ManualClock'/>" +
                        "  <component id='com.yahoo.vespa.curator.mock.MockCurator'/>" +
                        "  <component id='com.yahoo.vespa.hosted.provision.testutils.OrchestratorMock'/>" +
                        "  <component id='com.yahoo.vespa.hosted.provision.testutils.MockDeployer'/>" +
                        "  <component id='com.yahoo.vespa.hosted.provision.testutils.TestHostLivenessTracker'/>" +
                        "  <component id='com.yahoo.vespa.hosted.provision.testutils.ServiceMonitorStub'/>" +
                        "  <component id='com.yahoo.vespa.hosted.provision.testutils.MockNodeFlavors'/>" +
                        "  <component id='com.yahoo.vespa.hosted.provision.testutils.MockNodeRepository'/>" +
                        "  <component id='com.yahoo.vespa.hosted.provision.maintenance.NodeRepositoryMaintenance'/>" +
                        "  <handler id='com.yahoo.vespa.hosted.provision.restapi.v2.NodesApiHandler'>" +
                        "    <binding>http://*/nodes/v2/*</binding>" +
                        "  </handler>" +
                        "  <http>" +
                        "    <server id='myServer' port='" + port + "' />" +
                        "  </http>" +
                        "</jdisc>";
        }

}

@@ -363,14 +363,8 @@
 tic 
-final 
 Stri
@@ -1398,24 +1398,104 @@
 nance'/%3E%22 +%0A
+                        %22  %3Ccomponent id='com.yahoo.config.provision.Zone'/%3E%22 +%0A
             

Add a Zone component to services config.