summaryrefslogtreecommitdiffstats
path: root/controller-api/src
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2019-08-21 15:31:14 +0200
committerMartin Polden <mpolden@mpolden.no>2019-08-21 15:31:14 +0200
commit4df9dc187a5a5b2f199c06d30782484da0205c49 (patch)
tree2855e04bfd2d9230487f29a8d7276f45d066cbeb /controller-api/src
parent390dc9e7f62d9c3cce0e6f5a63aaab1c7e9771a6 (diff)
Re-add mock
Diffstat (limited to 'controller-api/src')
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/routing/MemoryGlobalRoutingService.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/routing/MemoryGlobalRoutingService.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/routing/MemoryGlobalRoutingService.java
new file mode 100644
index 00000000000..ae3afd5c824
--- /dev/null
+++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/routing/MemoryGlobalRoutingService.java
@@ -0,0 +1,18 @@
+// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+package com.yahoo.vespa.hosted.controller.api.integration.routing;
+
+import com.yahoo.config.provision.zone.ZoneId;
+
+import java.util.Map;
+
+/**
+ * @author bratseth
+ */
+public class MemoryGlobalRoutingService implements GlobalRoutingService {
+
+ @Override
+ public Map<ZoneId, RotationStatus> getHealthStatus(String rotationName) {
+ return Map.of(ZoneId.from("prod", "us-west-1"), RotationStatus.IN);
+ }
+
+}