Make ZoneList return list of ZoneApi
@@ -4,6 +4,7 @@ package com.yahoo.vespa.hosted.controller.integration;
import com.yahoo.config.provision.CloudName;
import com.yahoo.config.provision.Environment;
import com.yahoo.config.provision.RegionName;
+import com.yahoo.config.provision.zone.ZoneApi;
import com.yahoo.config.provision.zone.ZoneFilter;
import com.yahoo.config.provision.zone.ZoneId;
import com.yahoo.config.provision.zone.ZoneList;
@@ -76,6 +77,11 @@ public class ZoneFilterMock implements ZoneList {
return filter(zoneId -> new HashSet<>(Arrays.asList(zones)).contains(zoneId));
}
+ @Override
+ public List<? extends ZoneApi> zones() {
+ throw new UnsupportedOperationException();
+ }
+
@Override
public List<ZoneId> ids() {
return Collections.unmodifiableList(zones);
