Test: Fix last reference to SearchScript (#34731)
This was accidentally left over when converting to FieldScript. closes #34683
This commit is contained in:
parent
da20dfd81c
commit
596b5cf108
|
@ -176,11 +176,6 @@ public class PainlessDomainSplitIT extends ESRestTestCase {
|
|||
tests.add(new TestConfiguration(null, "shishi.xn--fiqs8s","shishi.xn--fiqs8s"));
|
||||
}
|
||||
|
||||
public void testEmptyToLetBuildPass() {
|
||||
// remove this once one of the awaitsfixes are removed!!
|
||||
}
|
||||
|
||||
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/34683")
|
||||
public void testIsolated() throws Exception {
|
||||
Settings.Builder settings = Settings.builder()
|
||||
.put(IndexMetaData.INDEX_NUMBER_OF_SHARDS_SETTING.getKey(), 1)
|
||||
|
|
|
@ -8,8 +8,8 @@ package org.elasticsearch.xpack.ml;
|
|||
import org.elasticsearch.painless.spi.PainlessExtension;
|
||||
import org.elasticsearch.painless.spi.Whitelist;
|
||||
import org.elasticsearch.painless.spi.WhitelistLoader;
|
||||
import org.elasticsearch.script.FieldScript;
|
||||
import org.elasticsearch.script.ScriptContext;
|
||||
import org.elasticsearch.script.SearchScript;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
@ -21,6 +21,6 @@ public class MachineLearningPainlessExtension implements PainlessExtension {
|
|||
|
||||
@Override
|
||||
public Map<ScriptContext<?>, List<Whitelist>> getContextWhitelists() {
|
||||
return Collections.singletonMap(SearchScript.CONTEXT, Collections.singletonList(WHITELIST));
|
||||
return Collections.singletonMap(FieldScript.CONTEXT, Collections.singletonList(WHITELIST));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue