diff options
author | Martin Polden <mpolden@mpolden.no> | 2019-10-25 14:55:09 +0200 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2019-10-28 11:22:56 +0100 |
commit | 95a8da1ac91257a6c63dac41ceea97613e787c56 (patch) | |
tree | 8bbb5d04e16961faa00071042ab344caa1bfd6ea /controller-server/src/test/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunnerTest.java | |
parent | f8d607f4b6ec8aca16731141da3317def4ebdc32 (diff) |
Extract DeploymentContext from InternalDeploymentTester
Diffstat (limited to 'controller-server/src/test/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunnerTest.java')
-rw-r--r-- | controller-server/src/test/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunnerTest.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunnerTest.java b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunnerTest.java index 0188bb0e5ae..fc73af6acf7 100644 --- a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunnerTest.java +++ b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunnerTest.java @@ -52,8 +52,8 @@ import static com.yahoo.vespa.hosted.controller.api.integration.LogEntry.Type.in import static com.yahoo.vespa.hosted.controller.api.integration.LogEntry.Type.warning; import static com.yahoo.vespa.hosted.controller.deployment.InternalDeploymentTester.appId; import static com.yahoo.vespa.hosted.controller.deployment.InternalDeploymentTester.instanceId; -import static com.yahoo.vespa.hosted.controller.deployment.InternalDeploymentTester.applicationPackage; -import static com.yahoo.vespa.hosted.controller.deployment.InternalDeploymentTester.publicCdApplicationPackage; +import static com.yahoo.vespa.hosted.controller.deployment.DeploymentContext.applicationPackage; +import static com.yahoo.vespa.hosted.controller.deployment.DeploymentContext.publicCdApplicationPackage; import static com.yahoo.vespa.hosted.controller.deployment.InternalDeploymentTester.testerId; import static com.yahoo.vespa.hosted.controller.deployment.Step.Status.failed; import static com.yahoo.vespa.hosted.controller.deployment.Step.Status.succeeded; @@ -93,7 +93,7 @@ public class InternalStepRunnerTest { @Test public void canSwitchFromScrewdriverAndBackAgain() { // Deploys a default application package with default build number. - tester.tester().deployCompletely(tester.application(), InternalDeploymentTester.applicationPackage); + tester.tester().deployCompletely(tester.application(), DeploymentContext.applicationPackage); tester.setEndpoints(instanceId, JobType.productionUsCentral1.zone(system())); tester.setEndpoints(instanceId, JobType.productionUsWest1.zone(system())); tester.setEndpoints(instanceId, JobType.productionUsEast3.zone(system())); @@ -111,11 +111,11 @@ public class InternalStepRunnerTest { tester.jobs().unregister(appId); try { - tester.tester().deployCompletely(tester.application(), InternalDeploymentTester.applicationPackage, BuildJob.defaultBuildNumber + 1); + tester.tester().deployCompletely(tester.application(), DeploymentContext.applicationPackage, BuildJob.defaultBuildNumber + 1); throw new IllegalStateException("Component job should get even again with build numbers to produce a change."); } catch (AssertionError expected) { } - tester.tester().deployCompletely(tester.application(), InternalDeploymentTester.applicationPackage, BuildJob.defaultBuildNumber + 2); + tester.tester().deployCompletely(tester.application(), DeploymentContext.applicationPackage, BuildJob.defaultBuildNumber + 2); } @Test |