diff options
author | Jon Marius Venstad <jvenstad@yahoo-inc.com> | 2019-01-05 10:55:11 +0100 |
---|---|---|
committer | Jon Marius Venstad <jvenstad@yahoo-inc.com> | 2019-01-07 09:53:15 +0100 |
commit | e4648829edc0594f41c589585be63c77c3c1985c (patch) | |
tree | ae1d1f5439c223ecd5889990e71b2b30a72f3559 | |
parent | 505753a6fd032c025197dcedb229721960a89eeb (diff) |
Add badge url to zone registry
2 files changed, 8 insertions, 0 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/zone/ZoneRegistry.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/zone/ZoneRegistry.java index 1f4ba9c6d25..e63f665db58 100644 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/zone/ZoneRegistry.java +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/zone/ZoneRegistry.java @@ -75,4 +75,7 @@ public interface ZoneRegistry { /** Returns a URL used to request support from the Vespa team. */ URI supportUrl(); + /** Returns a URL used to generate flashy badges from strings. */ + URI badgeUrl(); + } diff --git a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/integration/ZoneRegistryMock.java b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/integration/ZoneRegistryMock.java index e90f2e90f51..1e9a17ede12 100644 --- a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/integration/ZoneRegistryMock.java +++ b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/integration/ZoneRegistryMock.java @@ -132,6 +132,11 @@ public class ZoneRegistryMock extends AbstractComponent implements ZoneRegistry } @Override + public URI badgeUrl() { + return URI.create("https://badges.tld"); + } + + @Override public boolean hasZone(ZoneId zoneId) { return zones.contains(zoneId); } |