summaryrefslogtreecommitdiffstats
path: root/config-model
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-09-02 13:50:09 +0200
committerGitHub <noreply@github.com>2021-09-02 13:50:09 +0200
commit9b3933f48b71a93b668aa157abf4babb43b99861 (patch)
tree6871f46b75d1bd1b3324cd43e758d7fc23306c06 /config-model
parente04d81b37f535b1b8ecd799172f0835721ba5a69 (diff)
Revert "Revert "Update defaults to reflect target of code.""
Diffstat (limited to 'config-model')
-rw-r--r--config-model/src/main/java/com/yahoo/config/model/deploy/TestProperties.java10
-rw-r--r--config-model/src/test/java/com/yahoo/searchdefinition/derived/RankProfilesTestCase.java3
2 files changed, 4 insertions, 9 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 f99b16ef238..f4f3ab53bc6 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
@@ -47,19 +47,18 @@ public class TestProperties implements ModelContext.Properties, ModelContext.Fea
private int responseNumThreads = 2;
private Optional<EndpointCertificateSecrets> endpointCertificateSecrets = Optional.empty();
private AthenzDomain athenzDomain;
- private ApplicationRoles applicationRoles;
private Quota quota = Quota.unlimited();
private boolean useAsyncMessageHandlingOnSchedule = false;
private double feedConcurrency = 0.5;
private boolean enableFeedBlockInDistributor = true;
- private boolean useExternalRankExpression = false;
+ private boolean useExternalRankExpression = true;
private int maxActivationInhibitedOutOfSyncGroups = 0;
private List<TenantSecretStore> tenantSecretStores = Collections.emptyList();
private String jvmOmitStackTraceInFastThrowOption;
private int numDistributorStripes = 0;
private int maxConcurrentMergesPerNode = 16;
private int maxMergeQueueSize = 1024;
- private int largeRankExpressionLimit = 0x10000;
+ private int largeRankExpressionLimit = 8192;
private boolean allowDisableMtls = true;
private boolean dryRunOnnxOnSetup = false;
private List<X509Certificate> operatorCertificates = Collections.emptyList();
@@ -214,11 +213,6 @@ public class TestProperties implements ModelContext.Properties, ModelContext.Fea
return this;
}
- public TestProperties setApplicationRoles(ApplicationRoles applicationRoles) {
- this.applicationRoles = applicationRoles;
- return this;
- }
-
public TestProperties setQuota(Quota quota) {
this.quota = quota;
return this;
diff --git a/config-model/src/test/java/com/yahoo/searchdefinition/derived/RankProfilesTestCase.java b/config-model/src/test/java/com/yahoo/searchdefinition/derived/RankProfilesTestCase.java
index d0712aaeb4d..861ae10cdf6 100644
--- a/config-model/src/test/java/com/yahoo/searchdefinition/derived/RankProfilesTestCase.java
+++ b/config-model/src/test/java/com/yahoo/searchdefinition/derived/RankProfilesTestCase.java
@@ -1,6 +1,7 @@
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.searchdefinition.derived;
+import com.yahoo.config.model.deploy.TestProperties;
import com.yahoo.searchdefinition.parser.ParseException;
import org.junit.Test;
@@ -14,6 +15,6 @@ import java.io.IOException;
public class RankProfilesTestCase extends AbstractExportingTestCase {
@Test
public void testRankProfiles() throws IOException, ParseException {
- assertCorrectDeriving("rankprofiles");
+ assertCorrectDeriving("rankprofiles", null, new TestProperties(), new TestableDeployLogger());
}
}