diff options
Diffstat (limited to 'controller-api')
2 files changed, 8 insertions, 0 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/TesterCloud.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/TesterCloud.java index dfbf3cb4ae4..89d922db806 100644 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/TesterCloud.java +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/TesterCloud.java @@ -25,6 +25,9 @@ public interface TesterCloud { /** Returns whether the container is ready to serve. */ boolean ready(URI endpointUrl); + /** Returns whether the given URL is registered in DNS. */ + boolean exists(URI endpointUrl); + enum Status { diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/stubs/MockTesterCloud.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/stubs/MockTesterCloud.java index 34afb4c8f0a..ce5cc128d78 100644 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/stubs/MockTesterCloud.java +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/stubs/MockTesterCloud.java @@ -43,6 +43,11 @@ public class MockTesterCloud implements TesterCloud { return true; } + @Override + public boolean exists(URI endpointUrl) { + return true; + } + public void add(LogEntry entry) { log.add(entry); } |