aboutsummaryrefslogtreecommitdiffstats
path: root/controller-server/src/test/java/com/yahoo
diff options
context:
space:
mode:
authorjonmv <venstad@gmail.com>2022-04-21 13:34:53 +0200
committerjonmv <venstad@gmail.com>2022-04-21 13:34:53 +0200
commit07ac44f06b5045523c91a86e77076ae1303cd114 (patch)
tree997085262ef1c36fb3261d3a89a432211f68d1e7 /controller-server/src/test/java/com/yahoo
parent4c85adcdbcfcad71e0dcdfae4554aba5edf3f520 (diff)
Resolve some TODOs
Diffstat (limited to 'controller-server/src/test/java/com/yahoo')
-rw-r--r--controller-server/src/test/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunnerTest.java11
-rw-r--r--controller-server/src/test/java/com/yahoo/vespa/hosted/controller/integration/ConfigServerMock.java11
2 files changed, 1 insertions, 21 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 6552ca4a2fb..15f729e7a55 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
@@ -128,22 +128,11 @@ public class InternalStepRunnerTest {
}
@Test
- // TODO jonmv: Change to only wait for restarts, and remove triggering of restarts from runner.
public void restartsServicesAndWaitsForRestartAndReboot() {
RunId id = app.newRun(JobType.productionUsCentral1);
ZoneId zone = id.type().zone(system());
HostName host = tester.configServer().hostFor(instanceId, zone);
- tester.configServer().setConfigChangeActions(new ConfigChangeActions(List.of(new RestartAction("cluster",
- "container",
- "search",
- List.of(new ServiceInfo("queries",
- "search",
- "config",
- host.value())),
- List.of("Restart it!"))),
- List.of(),
- List.of()));
tester.runner().run();
assertEquals(succeeded, tester.jobs().run(id).get().stepStatuses().get(Step.deployReal));
diff --git a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/integration/ConfigServerMock.java b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/integration/ConfigServerMock.java
index 644d60fbe72..1ed84659f58 100644
--- a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/integration/ConfigServerMock.java
+++ b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/integration/ConfigServerMock.java
@@ -98,7 +98,6 @@ public class ConfigServerMock extends AbstractComponent implements ConfigServer
private Version lastPrepareVersion = null;
private Consumer<ApplicationId> prepareException = null;
- private ConfigChangeActions configChangeActions = null;
private Supplier<String> log = () -> "INFO - All good";
@Inject
@@ -106,11 +105,6 @@ public class ConfigServerMock extends AbstractComponent implements ConfigServer
bootstrap(zoneRegistry.zones().all().ids(), SystemApplication.notController());
}
- /** Sets the ConfigChangeActions that will be returned on next deployment. */
- public void setConfigChangeActions(ConfigChangeActions configChangeActions) {
- this.configChangeActions = configChangeActions;
- }
-
/** Assigns a reserved tenant node to the given deployment, with initial versions. */
public void provision(ZoneId zone, ApplicationId application, ClusterSpec.Id clusterId) {
var current = new ClusterResources(2, 1, new NodeResources(2, 8, 50, 1, slow, remote));
@@ -428,10 +422,7 @@ public class ConfigServerMock extends AbstractComponent implements ConfigServer
PrepareResponse prepareResponse = new PrepareResponse();
prepareResponse.message = "foo";
- prepareResponse.configChangeActions = configChangeActions != null
- ? configChangeActions
- : new ConfigChangeActions(List.of(), List.of(), List.of());
- setConfigChangeActions(null);
+ prepareResponse.configChangeActions = new ConfigChangeActions(List.of(), List.of(), List.of());
prepareResponse.tenant = new TenantId("tenant");
prepareResponse.log = warnings.getOrDefault(id, Collections.emptyList());
return prepareResponse;