summaryrefslogtreecommitdiffstats
path: root/configserver
diff options
context:
space:
mode:
authorJon Marius Venstad <jvenstad@yahoo-inc.com>2017-12-08 14:23:26 +0100
committerJon Marius Venstad <jvenstad@yahoo-inc.com>2017-12-08 14:23:26 +0100
commit666eaba7f5d3aff8934e222ee71cdf82b0342bb2 (patch)
treeee5dfd3b1d596ae6854efdf1f38c07caaf5f6761 /configserver
parente5f2b434d614b49bef40038ec1fe1d391db62e1e (diff)
Revert "Factory constructor with region/env"
This reverts commit e5f2b434d614b49bef40038ec1fe1d391db62e1e.
Diffstat (limited to 'configserver')
-rw-r--r--configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/ListApplicationsHandlerTest.java2
-rw-r--r--configserver/src/test/java/com/yahoo/vespa/config/server/model/LbServicesProducerTest.java6
2 files changed, 4 insertions, 4 deletions
diff --git a/configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/ListApplicationsHandlerTest.java b/configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/ListApplicationsHandlerTest.java
index 7700dd9392e..9e7853a8fdf 100644
--- a/configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/ListApplicationsHandlerTest.java
+++ b/configserver/src/test/java/com/yahoo/vespa/config/server/http/v2/ListApplicationsHandlerTest.java
@@ -42,7 +42,7 @@ public class ListApplicationsHandlerTest {
handler = new ListApplicationsHandler(Runnable::run,
AccessLog.voidAccessLog(),
tenants,
- Zone.from(Environment.dev, RegionName.from("us-east")));
+ new Zone(Environment.dev, RegionName.from("us-east")));
}
@Test
diff --git a/configserver/src/test/java/com/yahoo/vespa/config/server/model/LbServicesProducerTest.java b/configserver/src/test/java/com/yahoo/vespa/config/server/model/LbServicesProducerTest.java
index 5e7886f0d2f..df8ed405fe3 100644
--- a/configserver/src/test/java/com/yahoo/vespa/config/server/model/LbServicesProducerTest.java
+++ b/configserver/src/test/java/com/yahoo/vespa/config/server/model/LbServicesProducerTest.java
@@ -87,11 +87,11 @@ public class LbServicesProducerTest {
}
private LbServicesConfig createModelAndGetLbServicesConfig(RegionName regionName) throws IOException, SAXException {
- final Zone zone = Zone.from(Environment.prod, regionName);
+ final Zone zone = new Zone(Environment.prod, regionName);
Map<TenantName, Map<ApplicationId, ApplicationInfo>> testModel = createTestModel(new DeployState.Builder()
.properties(new DeployProperties.Builder().zone(zone).build())
.zone(zone));
- return getLbServicesConfig(Zone.from(Environment.prod, regionName), testModel);
+ return getLbServicesConfig(new Zone(Environment.prod, regionName), testModel);
}
private LbServicesConfig getLbServicesConfig(Zone zone, Map<TenantName, Map<ApplicationId, ApplicationInfo>> testModel) {
@@ -105,7 +105,7 @@ public class LbServicesProducerTest {
public void testConfigAliasesWithRotations() throws IOException, SAXException {
Map<TenantName, Map<ApplicationId, ApplicationInfo>> testModel = createTestModel(new DeployState.Builder().rotations(rotations));
RegionName regionName = RegionName.from("us-east-1");
- LbServicesConfig conf = getLbServicesConfig(Zone.from(Environment.prod, regionName), testModel);
+ LbServicesConfig conf = getLbServicesConfig(new Zone(Environment.prod, regionName), testModel);
final LbServicesConfig.Tenants.Applications.Hosts.Services services = conf.tenants("foo").applications("foo:prod:" + regionName.value() + ":default").hosts("foo.foo.yahoo.com").services("qrserver");
assertThat(services.servicealiases().size(), is(1));
assertThat(services.endpointaliases().size(), is(4));