com.yahoo.vespa.hosted.provision.testutils.ContainerConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of node-repository Show documentation
Show all versions of node-repository Show documentation
Keeps track of node assignment in a multi-application setup.
// Copyright 2017 Yahoo Holdings. 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 String servicesXmlV2(int port) {
return "\n" +
" \n" +
" 20 \n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
" http://*/nodes/v2/* \n" +
" \n" +
" \n" +
" http://*/loadbalancers/v1/* \n" +
" \n" +
" \n" +
" \n" +
" \n" +
" ";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy