mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[kbn/test] switch to @elastic/elasticsearch (#95443)
Co-authored-by: spalger <spalger@users.noreply.github.com>
This commit is contained in:
parent
3bb9220db9
commit
dd10c8b5f2
1 changed files with 3 additions and 3 deletions
|
@ -12,9 +12,9 @@ import { get, toPath } from 'lodash';
|
|||
import { Cluster } from '@kbn/es';
|
||||
import { CI_PARALLEL_PROCESS_PREFIX } from '../ci_parallel_process_prefix';
|
||||
import { esTestConfig } from './es_test_config';
|
||||
import { Client } from '@elastic/elasticsearch';
|
||||
|
||||
import { KIBANA_ROOT } from '../';
|
||||
import * as legacyElasticsearch from 'elasticsearch';
|
||||
const path = require('path');
|
||||
const del = require('del');
|
||||
|
||||
|
@ -102,8 +102,8 @@ export function createLegacyEsTestCluster(options = {}) {
|
|||
* Returns an ES Client to the configured cluster
|
||||
*/
|
||||
getClient() {
|
||||
return new legacyElasticsearch.Client({
|
||||
host: this.getUrl(),
|
||||
return new Client({
|
||||
node: this.getUrl(),
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue