summaryrefslogtreecommitdiffstats
path: root/config-model
diff options
context:
space:
mode:
authorHarald Musum <musum@verizonmedia.com>2021-02-04 16:21:33 +0100
committerGitHub <noreply@github.com>2021-02-04 16:21:33 +0100
commit27e6387d0daf6ba84f04361da246c20454ace7a2 (patch)
treed772c3ebb3b7fc4b8ec1f20020ebbc6b39e9748e /config-model
parente244a4b57e0641c2882104cf114fd2fb2058d608 (diff)
Run tests for lb services config on hosted vespa (#16327)
* Run tests for lb services config on hosted vespa Test now runs with hosted vespa setup as it does in the real world * Add back
Diffstat (limited to 'config-model')
-rw-r--r--config-model/src/main/java/com/yahoo/config/model/provision/InMemoryProvisioner.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/config-model/src/main/java/com/yahoo/config/model/provision/InMemoryProvisioner.java b/config-model/src/main/java/com/yahoo/config/model/provision/InMemoryProvisioner.java
index 4302a4dcd48..8fc36b06544 100644
--- a/config-model/src/main/java/com/yahoo/config/model/provision/InMemoryProvisioner.java
+++ b/config-model/src/main/java/com/yahoo/config/model/provision/InMemoryProvisioner.java
@@ -80,6 +80,11 @@ public class InMemoryProvisioner implements HostProvisioner {
this(Map.of(defaultResources, toHostInstances(hosts)), failOnOutOfCapacity, false, sharedHosts, 0);
}
+ /** Creates this with a set of host names of the flavor 'default' */
+ public InMemoryProvisioner(boolean failOnOutOfCapacity, boolean sharedHosts, List<String> hosts) {
+ this(Map.of(defaultResources, toHostInstances(hosts.toArray(new String[0]))), failOnOutOfCapacity, false, sharedHosts, 0);
+ }
+
/** Creates this with a set of hosts of the flavor 'default' */
public InMemoryProvisioner(Hosts hosts, boolean failOnOutOfCapacity, boolean sharedHosts, String ... retiredHostNames) {
this(Map.of(defaultResources, hosts.asCollection()), failOnOutOfCapacity, false, sharedHosts, 0, retiredHostNames);