diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-09-08 18:04:44 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2021-09-08 18:04:44 +0200 |
commit | f27fd66ae706abfe4d369bafe5a92272a96123c9 (patch) | |
tree | bb1d153a32990d868ce6553a80164ab926905ff7 /config-model/src/main/java/com/yahoo/config | |
parent | 490a718a6036b05dca9935ea177c1af514ed10dc (diff) |
Allow inheriting any rankprofile until enforcing is enabled explicit.
Diffstat (limited to 'config-model/src/main/java/com/yahoo/config')
-rw-r--r-- | config-model/src/main/java/com/yahoo/config/model/deploy/TestProperties.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/config-model/src/main/java/com/yahoo/config/model/deploy/TestProperties.java b/config-model/src/main/java/com/yahoo/config/model/deploy/TestProperties.java index b42686406b5..9690f00a209 100644 --- a/config-model/src/main/java/com/yahoo/config/model/deploy/TestProperties.java +++ b/config-model/src/main/java/com/yahoo/config/model/deploy/TestProperties.java @@ -51,6 +51,7 @@ public class TestProperties implements ModelContext.Properties, ModelContext.Fea private double feedConcurrency = 0.5; private boolean enableFeedBlockInDistributor = true; private boolean useExternalRankExpression = true; + private boolean enforceRankProfileInheritance = true; private int maxActivationInhibitedOutOfSyncGroups = 0; private List<TenantSecretStore> tenantSecretStores = Collections.emptyList(); private String jvmOmitStackTraceInFastThrowOption; @@ -107,8 +108,12 @@ public class TestProperties implements ModelContext.Properties, ModelContext.Fea @Override public double resourceLimitMemory() { return resourceLimitMemory; } @Override public double minNodeRatioPerGroup() { return minNodeRatioPerGroup; } @Override public int metricsproxyNumThreads() { return 1; } - @Override public boolean enforceRankProfileInheritance() { return true; } + @Override public boolean enforceRankProfileInheritance() { return enforceRankProfileInheritance; } + public TestProperties enforceRankProfileInheritance(boolean value) { + enforceRankProfileInheritance = value; + return this; + } public TestProperties useExternalRankExpression(boolean value) { useExternalRankExpression = value; return this; |