diff options
author | Morten Tokle <mortent@verizonmedia.com> | 2021-12-06 08:11:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-06 08:11:55 +0100 |
commit | 73dc82a5149bfdefaba22e85eea09855a6a77965 (patch) | |
tree | acaa9876cdb78e48aca4531353db32ac210235d7 /configserver/src/test/java/com/yahoo/vespa/config/server/http/v1/RoutingStatusApiHandlerTest.java | |
parent | fa63f735ff37b87842e41155fca702da24e5d88e (diff) | |
parent | 055be6477315abceafc54be690b88f48784f7256 (diff) |
Merge pull request #20355 from vespa-engine/mpolden/log-status-changev7.511.3
Log change of routing status and deploy
Diffstat (limited to 'configserver/src/test/java/com/yahoo/vespa/config/server/http/v1/RoutingStatusApiHandlerTest.java')
-rw-r--r-- | configserver/src/test/java/com/yahoo/vespa/config/server/http/v1/RoutingStatusApiHandlerTest.java | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/configserver/src/test/java/com/yahoo/vespa/config/server/http/v1/RoutingStatusApiHandlerTest.java b/configserver/src/test/java/com/yahoo/vespa/config/server/http/v1/RoutingStatusApiHandlerTest.java index d16030767d5..8dd7cf4d6fc 100644 --- a/configserver/src/test/java/com/yahoo/vespa/config/server/http/v1/RoutingStatusApiHandlerTest.java +++ b/configserver/src/test/java/com/yahoo/vespa/config/server/http/v1/RoutingStatusApiHandlerTest.java @@ -4,6 +4,7 @@ package com.yahoo.vespa.config.server.http.v1; import com.yahoo.config.provision.ApplicationId; import com.yahoo.config.provision.Deployer; import com.yahoo.config.provision.Deployment; +import com.yahoo.config.provision.HostFilter; import com.yahoo.container.jdisc.HttpRequestBuilder; import com.yahoo.container.jdisc.HttpResponse; import com.yahoo.jdisc.http.HttpRequest.Method; @@ -197,8 +198,19 @@ public class RoutingStatusApiHandlerTest { if (failNextDeployment) { throw new RuntimeException("Deployment failed"); } - lastDeployed.put(application, clock.instant()); - return Optional.empty(); + return Optional.of(new Deployment() { + @Override + public void prepare() {} + + @Override + public long activate() { + lastDeployed.put(application, clock.instant()); + return 1L; + } + + @Override + public void restart(HostFilter filter) {} + }); } @Override |