From c803b8340b45c0231d78739b1c4ef9373ff0b374 Mon Sep 17 00:00:00 2001 From: Matt Apperson Date: Thu, 14 Feb 2019 08:33:39 -0500 Subject: [PATCH] [ftr/services/es] use apiVersion from es plugin in x-pack (#30853) (#30939) --- x-pack/test/api_integration/services/es.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/x-pack/test/api_integration/services/es.js b/x-pack/test/api_integration/services/es.js index 420541fa7ec5f..5a76ce88665b9 100644 --- a/x-pack/test/api_integration/services/es.js +++ b/x-pack/test/api_integration/services/es.js @@ -8,13 +8,15 @@ import { format as formatUrl } from 'url'; import elasticsearch from 'elasticsearch'; import shieldPlugin from '../../../server/lib/esjs_shield_plugin'; +import { DEFAULT_API_VERSION } from '../../../../src/legacy/core_plugins/elasticsearch/lib/default_api_version'; export function EsProvider({ getService }) { const config = getService('config'); return new elasticsearch.Client({ + apiVersion: DEFAULT_API_VERSION, host: formatUrl(config.get('servers.elasticsearch')), requestTimeout: config.get('timeouts.esRequestTimeout'), - plugins: [shieldPlugin] + plugins: [shieldPlugin], }); }