aboutsummaryrefslogtreecommitdiffstats
path: root/hosted-api
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2020-03-25 21:14:57 +0100
committerJon Marius Venstad <venstad@gmail.com>2020-03-25 21:14:57 +0100
commit552ed92e4345d650334bb4428d21e5e2eccfc252 (patch)
tree2ed07470803cc10122beb44ac44b49b80de5bd46 /hosted-api
parent3db1991636a31acaffd2826f671c52960adcc938 (diff)
Fail more intelligibly when endpointCertificateTimeout occurs
Diffstat (limited to 'hosted-api')
-rw-r--r--hosted-api/src/main/java/ai/vespa/hosted/api/ControllerHttpClient.java19
-rw-r--r--hosted-api/src/main/java/ai/vespa/hosted/api/DeploymentLog.java1
2 files changed, 11 insertions, 9 deletions
diff --git a/hosted-api/src/main/java/ai/vespa/hosted/api/ControllerHttpClient.java b/hosted-api/src/main/java/ai/vespa/hosted/api/ControllerHttpClient.java
index 84d18350993..ee30f6fd471 100644
--- a/hosted-api/src/main/java/ai/vespa/hosted/api/ControllerHttpClient.java
+++ b/hosted-api/src/main/java/ai/vespa/hosted/api/ControllerHttpClient.java
@@ -434,15 +434,16 @@ public abstract class ControllerHttpClient {
private static DeploymentLog.Status valueOf(String status) {
switch (status) {
- case "running": return DeploymentLog.Status.running;
- case "aborted": return DeploymentLog.Status.aborted;
- case "error": return DeploymentLog.Status.error;
- case "testFailure": return DeploymentLog.Status.testFailure;
- case "outOfCapacity": return DeploymentLog.Status.outOfCapacity;
- case "installationFailed": return DeploymentLog.Status.installationFailed;
- case "deploymentFailed": return DeploymentLog.Status.deploymentFailed;
- case "success": return DeploymentLog.Status.success;
- default: throw new IllegalArgumentException("Unexpected status '" + status + "'");
+ case "running": return DeploymentLog.Status.running;
+ case "aborted": return DeploymentLog.Status.aborted;
+ case "error": return DeploymentLog.Status.error;
+ case "testFailure": return DeploymentLog.Status.testFailure;
+ case "outOfCapacity": return DeploymentLog.Status.outOfCapacity;
+ case "installationFailed": return DeploymentLog.Status.installationFailed;
+ case "deploymentFailed": return DeploymentLog.Status.deploymentFailed;
+ case "endpointCertificateTimeout": return DeploymentLog.Status.endpointCertificateTimeout;
+ case "success": return DeploymentLog.Status.success;
+ default: throw new IllegalArgumentException("Unexpected status '" + status + "'");
}
}
diff --git a/hosted-api/src/main/java/ai/vespa/hosted/api/DeploymentLog.java b/hosted-api/src/main/java/ai/vespa/hosted/api/DeploymentLog.java
index 9eae9a33cff..90e973da49d 100644
--- a/hosted-api/src/main/java/ai/vespa/hosted/api/DeploymentLog.java
+++ b/hosted-api/src/main/java/ai/vespa/hosted/api/DeploymentLog.java
@@ -112,6 +112,7 @@ public class DeploymentLog {
outOfCapacity,
installationFailed,
deploymentFailed,
+ endpointCertificateTimeout,
success;
}