summaryrefslogtreecommitdiffstats
path: root/config-model/src/test/java
diff options
context:
space:
mode:
authorMariusArhaug <mariusarhaug@hotmail.com>2024-04-04 16:04:46 +0200
committerMariusArhaug <mariusarhaug@hotmail.com>2024-04-04 16:18:35 +0200
commit218205b80900f85167ec028e5cc55bbe98702dbd (patch)
treefa6d3091fae88926b5ffd289c50ab768baaba17f /config-model/src/test/java
parent626c886af679c06616a928b3ebbc5e840dd68d8e (diff)
add significance config model registry
Diffstat (limited to 'config-model/src/test/java')
-rw-r--r--config-model/src/test/java/com/yahoo/vespa/model/significance/test/SignificanceModelTestCase.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/config-model/src/test/java/com/yahoo/vespa/model/significance/test/SignificanceModelTestCase.java b/config-model/src/test/java/com/yahoo/vespa/model/significance/test/SignificanceModelTestCase.java
new file mode 100644
index 00000000000..9dc3c72ba64
--- /dev/null
+++ b/config-model/src/test/java/com/yahoo/vespa/model/significance/test/SignificanceModelTestCase.java
@@ -0,0 +1,28 @@
+// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+package com.yahoo.vespa.model.significance.test;
+
+import com.yahoo.vespa.model.VespaModel;
+import com.yahoo.vespa.model.container.ApplicationContainerCluster;
+import com.yahoo.vespa.model.test.utils.VespaModelCreatorWithFilePkg;
+import org.junit.jupiter.api.Test;
+
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+/**
+ * @author MariusArhaug
+ */
+
+public class SignificanceModelTestCase {
+ private VespaModel createModel(String filename) {
+ return new VespaModelCreatorWithFilePkg(filename).create();
+ }
+
+ @Test
+ void testIndexGreaterThanNumNodes() {
+ VespaModel vespaModel = createModel("src/test/cfg/significance");
+ ApplicationContainerCluster containerCluster = vespaModel.getContainerClusters().get("container");
+ assertEquals(1, containerCluster.getContainers().size());
+ }
+}
+