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:
Armin Braun 2023-06-20 13:32:59 +02:00 committed by GitHub
parent c8e676aea8
commit 3f8ee82ef8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
328 changed files with 1677 additions and 2466 deletions

View file

@ -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,