mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 15:17:30 -04:00
Dry up getting cluster admin client in tests (#96952)
Drying this up further and adding the same short-cut for single node tests. Dealing with most of the spots that I could grab via automatic refactorings.
This commit is contained in:
parent
75a68e18e7
commit
dd7d381922
203 changed files with 730 additions and 1246 deletions
|
@ -39,7 +39,7 @@ public class StoredExpressionIT extends ESIntegTestCase {
|
|||
}
|
||||
|
||||
public void testAllOpsDisabledIndexedScripts() throws IOException {
|
||||
client().admin().cluster().preparePutStoredScript().setId("script1").setContent(new BytesArray("""
|
||||
clusterAdmin().preparePutStoredScript().setId("script1").setContent(new BytesArray("""
|
||||
{"script": {"lang": "expression", "source": "2"} }"""), XContentType.JSON).get();
|
||||
client().prepareIndex("test").setId("1").setSource("{\"theField\":\"foo\"}", XContentType.JSON).get();
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue