Add a Zone component to services config.
All components that take config must now be set up explicitly
in services.xml, because the default constructor in config
classes has been removed.
@@ -9,7 +9,7 @@ package com.yahoo.vespa.hosted.provision.testutils;
*/
public class ContainerConfig {
- public static final String servicesXmlV2(int port) {
+ public static String servicesXmlV2(int port) {
return
"<jdisc version='1.0'>" +
" <component id='com.yahoo.test.ManualClock'/>" +
@@ -21,6 +21,7 @@ public class ContainerConfig {
" <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'/>" +
+ " <component id='com.yahoo.config.provision.Zone'/>" +
" <handler id='com.yahoo.vespa.hosted.provision.restapi.v2.NodesApiHandler'>" +
" <binding>http://*/nodes/v2/*</binding>" +
" </handler>" +
