mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 15:17:30 -04:00
Use indices admin client shortcut in most integration tests (#96946)
Replacing the remaining usages that I could automatically replace and a couple that I did by hand in this PR. Also, added the same shortcut to the single node tests to save some duplication there.
This commit is contained in:
parent
c8e676aea8
commit
3f8ee82ef8
328 changed files with 1677 additions and 2466 deletions
|
@ -504,7 +504,7 @@ public class MoreExpressionIT extends ESIntegTestCase {
|
|||
|
||||
public void testStringSpecialValueVariable() throws Exception {
|
||||
// i.e. expression script for term aggregations, which is not allowed
|
||||
assertAcked(client().admin().indices().prepareCreate("test").setMapping("text", "type=keyword").get());
|
||||
assertAcked(indicesAdmin().prepareCreate("test").setMapping("text", "type=keyword").get());
|
||||
ensureGreen("test");
|
||||
indexRandom(
|
||||
true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue