diff options
author | Jon Marius Venstad <venstad@gmail.com> | 2020-03-05 10:53:15 +0100 |
---|---|---|
committer | Jon Marius Venstad <venstad@gmail.com> | 2020-03-05 11:07:48 +0100 |
commit | 854ae50b97510c55df0ada623038f5048a50aaaf (patch) | |
tree | 503e80fa82c0e6b22011dec862111ecd6e06184d /controller-api | |
parent | 2c98371b8dff64ba71574e2f0ad2b1262e1a58b4 (diff) |
Remove unused TesterCloud methods
Diffstat (limited to 'controller-api')
2 files changed, 0 insertions, 36 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 a1c4d379b6c..b76af2b2d51 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 @@ -15,30 +15,18 @@ import java.util.List; public interface TesterCloud { /** Signals the tester to run its tests. */ - void startTests(URI testerUrl, Suite suite, byte[] config); - - /** Signals the tester to run its tests. */ void startTests(DeploymentId deploymentId, Suite suite, byte[] config); /** Returns the log entries from the tester with ids after the given threshold. */ - List<LogEntry> getLog(URI testerUrl, long after); - - /** Returns the log entries from the tester with ids after the given threshold. */ List<LogEntry> getLog(DeploymentId deploymentId, long after); /** Returns the current status of the tester. */ - Status getStatus(URI testerUrl); - - /** Returns the current status of the tester. */ Status getStatus(DeploymentId deploymentId); /** Returns whether the container is ready to serve. */ boolean ready(URI endpointUrl); /** Returns whether the test container is ready to serve */ - boolean testerReady(URI endpointUrl); - - /** Returns whether the test container is ready to serve */ boolean testerReady(DeploymentId deploymentId); /** Returns whether the given URL is registered in DNS. */ 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 d2914f95360..5f315ec1456 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 @@ -18,25 +18,13 @@ public class MockTesterCloud implements TesterCloud { private List<LogEntry> log = new ArrayList<>(); private Status status = NOT_STARTED; private byte[] config; - private URI testerUrl; - @Override - public void startTests(URI testerUrl, Suite suite, byte[] config) { - this.status = RUNNING; - this.config = config; - this.testerUrl = testerUrl; } @Override public void startTests(DeploymentId deploymentId, Suite suite, byte[] config) { this.status = RUNNING; this.config = config; - this.testerUrl = null; - } - - @Override - public List<LogEntry> getLog(URI testerUrl, long after) { - return log.stream().filter(entry -> entry.id() > after).collect(Collectors.toList()); } @Override @@ -45,9 +33,6 @@ public class MockTesterCloud implements TesterCloud { } @Override - public Status getStatus(URI testerUrl) { return status; } - - @Override public Status getStatus(DeploymentId deploymentId) { return status; } @Override @@ -56,11 +41,6 @@ public class MockTesterCloud implements TesterCloud { } @Override - public boolean testerReady(URI testerUrl) { - return true; - } - - @Override public boolean testerReady(DeploymentId deploymentId) { return true; } @@ -87,8 +67,4 @@ public class MockTesterCloud implements TesterCloud { return config; } - public URI testerUrl() { - return testerUrl; - } - } |