diff options
author | Martin Polden <mpolden@mpolden.no> | 2019-10-24 14:24:02 +0200 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2019-10-24 14:24:02 +0200 |
commit | 4520904768f17a413d3babd67dd311c72de46035 (patch) | |
tree | a44a342e25dc6f1ec516ef465e6a869118cadccb /controller-server/src/test/java/com/yahoo/vespa/hosted/controller/deployment/InternalDeploymentTester.java | |
parent | 91807892811c63b4a955cc3502e00d1f8544c866 (diff) |
Stop using DeploymentTester in MetricsReporterTest
Diffstat (limited to 'controller-server/src/test/java/com/yahoo/vespa/hosted/controller/deployment/InternalDeploymentTester.java')
-rw-r--r-- | controller-server/src/test/java/com/yahoo/vespa/hosted/controller/deployment/InternalDeploymentTester.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/deployment/InternalDeploymentTester.java b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/deployment/InternalDeploymentTester.java index d252b99f026..7b1fff7fb6c 100644 --- a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/deployment/InternalDeploymentTester.java +++ b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/deployment/InternalDeploymentTester.java @@ -15,6 +15,7 @@ import com.yahoo.test.ManualClock; import com.yahoo.vespa.hosted.controller.Application; import com.yahoo.vespa.hosted.controller.ApplicationController; import com.yahoo.vespa.hosted.controller.Controller; +import com.yahoo.vespa.hosted.controller.ControllerTester; import com.yahoo.vespa.hosted.controller.Instance; import com.yahoo.vespa.hosted.controller.api.identifiers.DeploymentId; import com.yahoo.vespa.hosted.controller.api.integration.athenz.AthenzDbMock; @@ -35,6 +36,7 @@ import com.yahoo.vespa.hosted.controller.maintenance.JobControl; import com.yahoo.vespa.hosted.controller.maintenance.JobRunner; import com.yahoo.vespa.hosted.controller.maintenance.JobRunnerTest; import com.yahoo.vespa.hosted.controller.maintenance.NameServiceDispatcher; +import com.yahoo.vespa.hosted.controller.maintenance.Upgrader; import javax.security.auth.x500.X500Principal; import java.math.BigInteger; @@ -102,6 +104,8 @@ public class InternalDeploymentTester { public JobRunner runner() { return runner; } public ConfigServerMock configServer() { return tester.configServer(); } public Controller controller() { return tester.controller(); } + public ControllerTester controllerTester() { return tester.controllerTester(); } + public Upgrader upgrader() { return tester.upgrader(); } public ApplicationController applications() { return tester.applications(); } public ManualClock clock() { return tester.clock(); } public Application application() { return tester.application(appId); } @@ -329,12 +333,7 @@ public class InternalDeploymentTester { assertEquals(unfinished, jobs.run(id).get().steps().get(Step.installReal)); tester.configServer().convergeServices(id.application(), zone); - runner.advance(currentRun(job)); - if ( ! (currentRun(job).versions().sourceApplication().isPresent() && job.type().isProduction()) - && job.type() != JobType.stagingTest) { - assertEquals(unfinished, jobs.run(id).get().steps().get(Step.installReal)); - setEndpoints(id.application(), zone); - } + setEndpoints(id.application(), zone); runner.advance(currentRun(job)); if (job.type().environment().isManuallyDeployed()) { assertEquals(Step.Status.succeeded, jobs.run(id).get().steps().get(Step.installReal)); |