aboutsummaryrefslogtreecommitdiffstats
path: root/hosted-zone-api/src/test
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-11-03 15:35:27 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2022-11-04 15:25:28 +0100
commitd0e5af97a5d4c09e2a3eed92a366bcaa76db040a (patch)
treea9a43be6ba77e746acc47dfe2580e49a2e97cbc7 /hosted-zone-api/src/test
parent3aca43e7f71c54bb2ab61bc495f85e535d4cd3fd (diff)
- Remove cluster() from SystemInfo to only keep static information there.
- Instead provide only the cluster name. - If you need cluster information have Cluster injected directly.
Diffstat (limited to 'hosted-zone-api/src/test')
-rw-r--r--hosted-zone-api/src/test/java/ai/vespa/cloud/SystemInfoTest.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/hosted-zone-api/src/test/java/ai/vespa/cloud/SystemInfoTest.java b/hosted-zone-api/src/test/java/ai/vespa/cloud/SystemInfoTest.java
index c3f8624b456..df34aa1e92f 100644
--- a/hosted-zone-api/src/test/java/ai/vespa/cloud/SystemInfoTest.java
+++ b/hosted-zone-api/src/test/java/ai/vespa/cloud/SystemInfoTest.java
@@ -19,15 +19,14 @@ public class SystemInfoTest {
ApplicationId application = new ApplicationId("tenant1", "application1", "instance1");
Zone zone = new Zone(Environment.dev, "us-west-1");
Cloud cloud = new Cloud("aws");
- Cluster cluster = new Cluster("clusterId", 1, List.of());
+ String cluster = "clusterName";
Node node = new Node(0);
SystemInfo info = new SystemInfo(application, zone, cloud, cluster, node);
assertEquals(application, info.application());
assertEquals(zone, info.zone());
assertEquals(cloud, info.cloud());
- assertEquals(cluster, info.cluster());
- assertEquals(cluster.id(), info.clusterName());
+ assertEquals(cluster, info.clusterName());
assertEquals(node, info.node());
}