summaryrefslogtreecommitdiffstats
path: root/configserver
diff options
context:
space:
mode:
authorArne Juul <arnej@yahoo-inc.com>2018-09-12 05:56:26 +0000
committergjoranv <gv@oath.com>2019-01-21 15:09:21 +0100
commitf1791b7a17aa7d4cf6989fad48ebb3fc4e4ef93c (patch)
tree2ddc9f878dedf677d307704c1be0c4b1b5ce7b8e /configserver
parente94b3caeea0d2b93154e7183dba974862015c473 (diff)
use existing container cluster if possible
Diffstat (limited to 'configserver')
-rw-r--r--configserver/src/test/java/com/yahoo/vespa/config/server/SuperModelControllerTest.java17
1 files changed, 8 insertions, 9 deletions
diff --git a/configserver/src/test/java/com/yahoo/vespa/config/server/SuperModelControllerTest.java b/configserver/src/test/java/com/yahoo/vespa/config/server/SuperModelControllerTest.java
index 0595be3230f..713026a3497 100644
--- a/configserver/src/test/java/com/yahoo/vespa/config/server/SuperModelControllerTest.java
+++ b/configserver/src/test/java/com/yahoo/vespa/config/server/SuperModelControllerTest.java
@@ -105,7 +105,7 @@ public class SuperModelControllerTest {
assertThat(lbc.tenants("t1").applications().size(), is(2));
assertThat(lbc.tenants("t2").applications().size(), is(1));
assertThat(lbc.tenants("t2").applications("minetooadvancedapp:prod:default:default").hosts().size(), is(1));
- assertQrServer(lbc.tenants("t2").applications("minetooadvancedapp:prod:default:default"));
+ assertContainer(lbc.tenants("t2").applications("minetooadvancedapp:prod:default:default"));
}
@Test
@@ -140,21 +140,23 @@ public class SuperModelControllerTest {
return ApplicationId.from(tenantName, ApplicationName.from(applicationName), InstanceName.defaultName());
}
- private void assertQrServer(Applications app) {
+ private void assertContainer(Applications app) {
String host = app.hosts().keySet().iterator().next();
Applications.Hosts hosts = app.hosts(host);
assertThat(hosts.hostname(), is(host));
for (Map.Entry<String, Applications.Hosts.Services> e : app.hosts(host).services().entrySet()) {
- System.out.println(e);
- if ("qrserver".equals(e.getKey())) {
+ System.out.println(e.getKey());
+ if ("container".equals(e.getKey())) {
Applications.Hosts.Services s = e.getValue();
- assertThat(s.type(), is("qrserver"));
+ System.out.println(s);
+ assertThat(s.type(), is("container"));
assertThat(s.ports().size(), is(4));
+ assertThat(s.ports().get(0).number(), is(8000));
assertThat(s.index(), is(0));
return;
}
}
- org.junit.Assert.fail("No qrserver service in config");
+ org.junit.Assert.fail("No container service in config");
}
private DeployState createDeployState(File applicationPackage, ApplicationId applicationId) {
@@ -170,6 +172,3 @@ public class SuperModelControllerTest {
}
}
-
-
-