aboutsummaryrefslogtreecommitdiffstats
path: root/controller-server/src/test
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2020-05-27 14:40:20 +0200
committerJon Marius Venstad <venstad@gmail.com>2020-05-27 14:40:20 +0200
commit4b8bcc0d3ff5d849cf69df80274378b11fc79c35 (patch)
treeec08280f7021d239a8054fea5cdfa3839999d5ac /controller-server/src/test
parentb008456b593bb6c852d3cf41baf150e844728c20 (diff)
Add SystemMonitor and report to it from VersionStatusUpdater
Diffstat (limited to 'controller-server/src/test')
-rw-r--r--controller-server/src/test/java/com/yahoo/vespa/hosted/controller/integration/ServiceRegistryMock.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/integration/ServiceRegistryMock.java b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/integration/ServiceRegistryMock.java
index 667e9687aa1..debbf2a8315 100644
--- a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/integration/ServiceRegistryMock.java
+++ b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/integration/ServiceRegistryMock.java
@@ -19,10 +19,12 @@ import com.yahoo.vespa.hosted.controller.api.integration.entity.MemoryEntityServ
import com.yahoo.vespa.hosted.controller.api.integration.organization.MockBilling;
import com.yahoo.vespa.hosted.controller.api.integration.organization.MockContactRetriever;
import com.yahoo.vespa.hosted.controller.api.integration.organization.MockIssueHandler;
+import com.yahoo.vespa.hosted.controller.api.integration.organization.SystemMonitor;
import com.yahoo.vespa.hosted.controller.api.integration.resource.CostReportConsumerMock;
import com.yahoo.vespa.hosted.controller.api.integration.routing.GlobalRoutingService;
import com.yahoo.vespa.hosted.controller.api.integration.routing.MemoryGlobalRoutingService;
import com.yahoo.vespa.hosted.controller.api.integration.stubs.DummyOwnershipIssues;
+import com.yahoo.vespa.hosted.controller.api.integration.stubs.DummySystemMonitor;
import com.yahoo.vespa.hosted.controller.api.integration.stubs.LoggingDeploymentIssues;
import com.yahoo.vespa.hosted.controller.api.integration.stubs.MockMailer;
import com.yahoo.vespa.hosted.controller.api.integration.stubs.MockMeteringClient;
@@ -49,6 +51,7 @@ public class ServiceRegistryMock extends AbstractComponent implements ServiceReg
private final DummyOwnershipIssues dummyOwnershipIssues = new DummyOwnershipIssues();
private final LoggingDeploymentIssues loggingDeploymentIssues = new LoggingDeploymentIssues();
private final MemoryEntityService memoryEntityService = new MemoryEntityService();
+ private final DummySystemMonitor systemMonitor = new DummySystemMonitor();
private final CostReportConsumerMock costReportConsumerMock = new CostReportConsumerMock();
private final MockBilling mockBilling = new MockBilling();
private final MockAwsEventFetcher mockAwsEventFetcher = new MockAwsEventFetcher();
@@ -184,6 +187,11 @@ public class ServiceRegistryMock extends AbstractComponent implements ServiceReg
return applicationRoleService;
}
+ @Override
+ public DummySystemMonitor systemMonitor() {
+ return systemMonitor;
+ }
+
public ConfigServerMock configServerMock() {
return configServerMock;
}