summaryrefslogtreecommitdiffstats
path: root/config-provisioning/src/test/java/com
diff options
context:
space:
mode:
authorHåkon Hallingstad <hakon@verizonmedia.com>2019-06-16 16:30:15 +0200
committerHåkon Hallingstad <hakon@verizonmedia.com>2019-06-16 16:30:15 +0200
commit0c1d41ed78ff6c1135d823b3b24b6eb8f63a5a5b (patch)
tree87e5fa64c48007b18f151f63dd020171395841c1 /config-provisioning/src/test/java/com
parentd8c31e9bb2254244d521dfba6fbefd18e2fa7c46 (diff)
Remove system from ZoneId
Diffstat (limited to 'config-provisioning/src/test/java/com')
-rw-r--r--config-provisioning/src/test/java/com/yahoo/config/provision/ZoneIdTest.java17
1 files changed, 0 insertions, 17 deletions
diff --git a/config-provisioning/src/test/java/com/yahoo/config/provision/ZoneIdTest.java b/config-provisioning/src/test/java/com/yahoo/config/provision/ZoneIdTest.java
index 27d45ba7d7d..434badbe9bf 100644
--- a/config-provisioning/src/test/java/com/yahoo/config/provision/ZoneIdTest.java
+++ b/config-provisioning/src/test/java/com/yahoo/config/provision/ZoneIdTest.java
@@ -26,17 +26,6 @@ public class ZoneIdTest {
ZoneId zoneId = ZoneId.from(environment, region);
assertEquals(region, zoneId.region());
assertEquals(environment, zoneId.environment());
- assertEquals(SystemName.defaultSystem(), zoneId.system());
-
- ZoneId zoneIdWithSystem = ZoneId.from(system, environment, region);
- assertEquals(region, zoneIdWithSystem.region());
- assertEquals(environment, zoneIdWithSystem.environment());
- assertEquals(system, zoneIdWithSystem.system());
-
- ZoneId zoneIdWithCloudAndSystem = ZoneId.from(environment, region, cloud, system);
- assertEquals(region, zoneIdWithCloudAndSystem.region());
- assertEquals(environment, zoneIdWithCloudAndSystem.environment());
- assertEquals(system, zoneIdWithCloudAndSystem.system());
}
@Test
@@ -45,12 +34,6 @@ public class ZoneIdTest {
assertEquals(environment.value() + "." + region.value(), zoneId.value());
assertEquals(ZoneId.from(zoneId.value()), zoneId);
- ZoneId zoneIdWithCloudAndSystem = ZoneId.from(environment, region, cloud, system);
- assertEquals(environment.value() + "." + region.value(), zoneIdWithCloudAndSystem.value());
- assertEquals(ZoneId.from(zoneIdWithCloudAndSystem.value()), zoneIdWithCloudAndSystem);
- // TODO: Expect cloud and system to be part of deserialized value when the new format is supported everywhere
- //assertEquals(cloud.value() + "." + system.name() + "." + environment.value() + "." + region.value() , zoneId.value());
-
String serializedZoneId = "some.illegal.value";
expectedException.expect(IllegalArgumentException.class);
expectedException.expectMessage("Cannot deserialize zone id '" + serializedZoneId + "'");