summaryrefslogtreecommitdiffstats
path: root/controller-api
diff options
context:
space:
mode:
authorHarald Musum <musum@verizonmedia.com>2020-01-23 13:42:09 +0100
committerHarald Musum <musum@verizonmedia.com>2020-01-23 13:42:09 +0100
commit6bfa316283e4c3c7ef702c8c5821700787fe5470 (patch)
treed6369eaa8c1ab064786dde14501f30d82fe7edf6 /controller-api
parent5734daedcbfca0492450f6d8af8feb270883d743 (diff)
Extend interface with more tester methods
Diffstat (limited to 'controller-api')
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ConfigServer.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ConfigServer.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ConfigServer.java
index f8f63df40a9..2311f8d2fe3 100644
--- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ConfigServer.java
+++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ConfigServer.java
@@ -10,6 +10,7 @@ import com.yahoo.vespa.hosted.controller.api.application.v4.model.DeployOptions;
import com.yahoo.vespa.hosted.controller.api.application.v4.model.EndpointStatus;
import com.yahoo.vespa.hosted.controller.api.identifiers.DeploymentId;
import com.yahoo.vespa.hosted.controller.api.identifiers.Hostname;
+import com.yahoo.vespa.hosted.controller.api.integration.LogEntry;
import com.yahoo.vespa.hosted.controller.api.integration.certificates.EndpointCertificateMetadata;
import com.yahoo.vespa.hosted.controller.api.integration.deployment.TesterCloud;
import com.yahoo.vespa.serviceview.bindings.ApplicationView;
@@ -89,7 +90,18 @@ public interface ConfigServer {
List<FlagData> listFlagData(ZoneId zone);
/** Gets status for tester application */
+ TesterCloud.Status getTesterStatus(DeploymentId deployment);
+
+ /** Starts tests on tester node */
+ // TODO: Remove default implementation when implemented in internal repo
+ default void startTests(DeploymentId deployment, TesterCloud.Suite suite, byte[] config) { }
+
+ /** Gets log from tester node */
+ // TODO: Remove default implementation when implemented in internal repo
+ default List<LogEntry> getTesterLog(DeploymentId deployment, long after) { return List.of(); }
+
+ /** Is tester node ready */
// TODO: Remove default implementation when implemented in internal repo
- default TesterCloud.Status getTesterStatus(DeploymentId deployment) { return TesterCloud.Status.SUCCESS; }
+ default boolean isTesterReady(DeploymentId deployment) { return false; }
}