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 | 8 |
1 files changed, 6 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 6bdb38eb735..85e17527110 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 @@ -3,6 +3,8 @@ package ai.vespa.cloud; import org.junit.Test; +import java.util.List; + import static org.junit.Assert.assertEquals; import static org.junit.Assert.fail; @@ -14,7 +16,7 @@ public class SystemInfoTest { @Test public void testSystemInfo() { Zone zone = new Zone(Environment.dev, "us-west-1"); - Cluster cluster = new Cluster(1); + Cluster cluster = new Cluster(1, List.of()); Node node = new Node(0); SystemInfo info = new SystemInfo(zone, cluster, node); @@ -54,8 +56,10 @@ public class SystemInfoTest { @Test public void testCluster() { int size = 1; - Cluster cluster = new Cluster(size); + var indices = List.of(1); + Cluster cluster = new Cluster(size, indices); assertEquals(size, cluster.size()); + assertEquals(indices, cluster.indices()); } @Test |