diff options
Diffstat (limited to 'hosted-zone-api/src/test/java/ai/vespa/cloud/SystemInfoTest.java')
-rw-r--r-- | hosted-zone-api/src/test/java/ai/vespa/cloud/SystemInfoTest.java | 6 |
1 files changed, 4 insertions, 2 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 2bae9f0c9e2..d97bba51c71 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 @@ -18,7 +18,7 @@ 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(1, List.of()); + Cluster cluster = new Cluster("clusterId", 1, List.of()); Node node = new Node(0); SystemInfo info = new SystemInfo(application, zone, cloud, cluster, node); @@ -59,9 +59,11 @@ public class SystemInfoTest { @Test void testCluster() { + String id = "clusterId"; int size = 1; var indices = List.of(1); - Cluster cluster = new Cluster(size, indices); + Cluster cluster = new Cluster("clusterId", size, indices); + assertEquals(id, cluster.id()); assertEquals(size, cluster.size()); assertEquals(indices, cluster.indices()); } |