summaryrefslogtreecommitdiffstats
path: root/config-model/src/test/java
diff options
context:
space:
mode:
authorGeir Storli <geirst@oath.com>2018-04-03 17:30:50 +0200
committerGeir Storli <geirst@oath.com>2018-04-03 17:30:50 +0200
commitd22a17ac1adff28d17e4a638cbf83b05f0437ffa (patch)
treedaa68d80ef3529ea0a56bf0b85f91640ca7ccd29 /config-model/src/test/java
parenta732c350605fd22d6d6ae1ae0f4b87e466b2d572 (diff)
Changing attribute rank filter requires restart of content nodes.
Diffstat (limited to 'config-model/src/test/java')
-rw-r--r--config-model/src/test/java/com/yahoo/vespa/model/application/validation/change/search/AttributeChangeValidatorTest.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/config-model/src/test/java/com/yahoo/vespa/model/application/validation/change/search/AttributeChangeValidatorTest.java b/config-model/src/test/java/com/yahoo/vespa/model/application/validation/change/search/AttributeChangeValidatorTest.java
index 31102a18811..79bbde01898 100644
--- a/config-model/src/test/java/com/yahoo/vespa/model/application/validation/change/search/AttributeChangeValidatorTest.java
+++ b/config-model/src/test/java/com/yahoo/vespa/model/application/validation/change/search/AttributeChangeValidatorTest.java
@@ -141,4 +141,20 @@ public class AttributeChangeValidatorTest {
}
}
+ @Test
+ public void adding_rank_filter_requires_restart() throws Exception {
+ new Fixture("field f1 type string { indexing: attribute }",
+ "field f1 type string { indexing: attribute \n rank: filter }").
+ assertValidation(newRestartAction(
+ "Field 'f1' changed: add attribute 'rank: filter'"));
+ }
+
+ @Test
+ public void removing_rank_filter_requires_restart() throws Exception {
+ new Fixture("field f1 type string { indexing: attribute \n rank: filter }",
+ "field f1 type string { indexing: attribute }").
+ assertValidation(newRestartAction(
+ "Field 'f1' changed: remove attribute 'rank: filter'"));
+ }
+
}