Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Use supported elasticsearch client #6

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
upgrade to elastic8
  • Loading branch information
michaelkirk committed Jun 14, 2023
commit 1bcf26767c831911415031fa0f892eef4bb49e78
4 changes: 2 additions & 2 deletions lib/Suite.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@

const _ = require('lodash');
const randomstring = require('randomstring');
const elasticsearch = require('elasticsearch');
const elasticsearch = require('@elastic/elasticsearch');
const async = require('async');

function Suite( clientOpts, props ){
this.actions = [];
this.asserts = [];
this.client = null;
this.clientOpts = clientOpts && clone( clientOpts ) || {
host: 'localhost:9200',
node: 'http://localhost:9200',
keepAlive: true
};
this.props = props || {};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@
},
"dependencies": {
"async": "^3.1.0",
"elasticsearch": "^16.5.0",
"@elastic/elasticsearch": "^7.17.0",
"lodash": "^4.17.15",
"randomstring": "^1.1.5"
}