summaryrefslogtreecommitdiffstats
path: root/container-search
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2019-01-16 14:22:36 +0100
committerGitHub <noreply@github.com>2019-01-16 14:22:36 +0100
commitbd2751be2083691996910cec53785bd883b9839b (patch)
tree3cd2cda58354f7c94e43a39e6cf04739543d374c /container-search
parent2a9ab7e564b93ae760b607306f58d2b4de18261f (diff)
Revert "Bratseth/disallow dash "
Diffstat (limited to 'container-search')
-rw-r--r--container-search/src/test/java/com/yahoo/search/test/QueryTestCase.java11
1 files changed, 0 insertions, 11 deletions
diff --git a/container-search/src/test/java/com/yahoo/search/test/QueryTestCase.java b/container-search/src/test/java/com/yahoo/search/test/QueryTestCase.java
index dae6b9f0fb9..ed80c0bf256 100644
--- a/container-search/src/test/java/com/yahoo/search/test/QueryTestCase.java
+++ b/container-search/src/test/java/com/yahoo/search/test/QueryTestCase.java
@@ -308,17 +308,6 @@ public class QueryTestCase {
}
@Test
- public void testLanguageSubstitution() {
- QueryProfile profile = new QueryProfile("myProfile");
- profile.set("myField1", "Language: %{model.language}", null);
- profile.set("myField2", "Locale: %{locale}", null);
- Query q = new Query(QueryTestCase.httpEncode("/search?lang=en-us"), profile.compile(null));
- assertEquals("Language: ENGLISH", q.properties().get("myField1"));
- q.properties().set("locale", q.getHttpRequest().propertyMap().get("lang"));
- assertEquals("Locale: en-us", q.properties().get("myField2"));
- }
-
- @Test
public void testTimeoutInRequestOverridesQueryProfile() {
QueryProfile profile = new QueryProfile("test");
profile.set("timeout", 318, (QueryProfileRegistry)null);