diff options
author | jonmv <venstad@gmail.com> | 2023-12-18 13:25:21 +0100 |
---|---|---|
committer | jonmv <venstad@gmail.com> | 2023-12-18 13:25:21 +0100 |
commit | 84984afaeed3e96a00867dd885505cd6d5ba9434 (patch) | |
tree | b19e5a2a3bde41593b6365a6e241f66b5e9aebc4 /config-model/src | |
parent | 3129fe54642666b554bb21c6126984fe2ff6fced (diff) |
Add failing unit test
Diffstat (limited to 'config-model/src')
-rw-r--r-- | config-model/src/test/java/com/yahoo/vespa/model/application/validation/change/IndexingModeChangeValidatorTest.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/config-model/src/test/java/com/yahoo/vespa/model/application/validation/change/IndexingModeChangeValidatorTest.java b/config-model/src/test/java/com/yahoo/vespa/model/application/validation/change/IndexingModeChangeValidatorTest.java index 3fd3180b37e..1e1406b38c2 100644 --- a/config-model/src/test/java/com/yahoo/vespa/model/application/validation/change/IndexingModeChangeValidatorTest.java +++ b/config-model/src/test/java/com/yahoo/vespa/model/application/validation/change/IndexingModeChangeValidatorTest.java @@ -22,6 +22,16 @@ import static org.junit.jupiter.api.Assertions.fail; public class IndexingModeChangeValidatorTest { @Test + void testChangingIndexModeFromIndexedToStreamingWhenDisallowedButInDev() { + ValidationTester tester = new ValidationTester(); + + VespaModel oldModel = + tester.deploy(null, getServices("index"), Environment.dev, "<validation-overrides />").getFirst(); + List<ConfigChangeAction> actions = tester.deploy(oldModel, getServices("streaming"), Environment.dev, "<calidation-overrides />").getSecond(); + assertReindexingChange("Document type 'music' in cluster 'default-content' changed indexing mode from 'indexed' to 'streaming'", actions); + } + + @Test void testChangingIndexModeFromIndexedToStreamingWhenDisallowed() { ValidationTester tester = new ValidationTester(); |