mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[KP] bump es client to rc2 (#72448)
* bump es client to rc2 * update code for new typings
This commit is contained in:
parent
88e8c30e61
commit
2771d69c96
8 changed files with 18 additions and 7 deletions
|
@ -125,7 +125,7 @@
|
|||
"@elastic/apm-rum": "^5.2.0",
|
||||
"@elastic/charts": "19.8.1",
|
||||
"@elastic/datemath": "5.0.3",
|
||||
"@elastic/elasticsearch": "7.9.0-rc.1",
|
||||
"@elastic/elasticsearch": "7.9.0-rc.2",
|
||||
"@elastic/ems-client": "7.9.3",
|
||||
"@elastic/eui": "26.3.1",
|
||||
"@elastic/filesaver": "1.1.2",
|
||||
|
|
|
@ -94,6 +94,6 @@ async function indexAlerts(
|
|||
},
|
||||
[]
|
||||
);
|
||||
await client.bulk({ body, refresh: 'true' });
|
||||
await client.bulk({ body, refresh: true });
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ export default function (providerContext: FtrProviderContext) {
|
|||
await esClient.update({
|
||||
index: '.kibana',
|
||||
id: 'fleet-agents:agent1',
|
||||
refresh: 'true',
|
||||
refresh: true,
|
||||
body: {
|
||||
doc: agentDoc,
|
||||
},
|
||||
|
|
|
@ -38,7 +38,7 @@ export default function (providerContext: FtrProviderContext) {
|
|||
await esClient.update({
|
||||
index: '.kibana',
|
||||
id: 'fleet-agents:agent1',
|
||||
refresh: 'true',
|
||||
refresh: true,
|
||||
body: {
|
||||
doc: agentDoc,
|
||||
},
|
||||
|
|
|
@ -43,7 +43,7 @@ export default function (providerContext: FtrProviderContext) {
|
|||
await esClient.update({
|
||||
index: '.kibana',
|
||||
id: 'fleet-enrollment-api-keys:ed22ca17-e178-4cfe-8b02-54ea29fbd6d0',
|
||||
refresh: 'true',
|
||||
refresh: true,
|
||||
body: {
|
||||
doc: enrollmentApiKeyDoc,
|
||||
},
|
||||
|
|
|
@ -52,7 +52,7 @@ export default function (providerContext: FtrProviderContext) {
|
|||
await esClient.update({
|
||||
index: '.kibana',
|
||||
id: 'fleet-agents:agent1',
|
||||
refresh: 'true',
|
||||
refresh: true,
|
||||
body: {
|
||||
doc: agentDoc,
|
||||
},
|
||||
|
|
|
@ -57,7 +57,7 @@ export function ResolverGeneratorProvider({ getService }: FtrProviderContext) {
|
|||
return array;
|
||||
}, []);
|
||||
// force a refresh here otherwise the documents might not be available when the tests search for them
|
||||
await client.bulk({ body, refresh: 'true' });
|
||||
await client.bulk({ body, refresh: true });
|
||||
allTrees.push(tree);
|
||||
}
|
||||
return { trees: allTrees, eventsIndex, alertsIndex };
|
||||
|
|
11
yarn.lock
11
yarn.lock
|
@ -2183,6 +2183,17 @@
|
|||
pump "^3.0.0"
|
||||
secure-json-parse "^2.1.0"
|
||||
|
||||
"@elastic/elasticsearch@7.9.0-rc.2":
|
||||
version "7.9.0-rc.2"
|
||||
resolved "https://registry.yarnpkg.com/@elastic/elasticsearch/-/elasticsearch-7.9.0-rc.2.tgz#cbc935f30940a15484b5ec3758c9b1ef119a5e5c"
|
||||
integrity sha512-1FKCQJVr7s/LasKq6VbrmbWCI0LjoPcnjgmh2vKPzC+yyEEHVoYlmEfR5wBRchK1meATTXZtDhCVF95+Q9kVbA==
|
||||
dependencies:
|
||||
debug "^4.1.1"
|
||||
decompress-response "^4.2.0"
|
||||
ms "^2.1.1"
|
||||
pump "^3.0.0"
|
||||
secure-json-parse "^2.1.0"
|
||||
|
||||
"@elastic/ems-client@7.9.3":
|
||||
version "7.9.3"
|
||||
resolved "https://registry.yarnpkg.com/@elastic/ems-client/-/ems-client-7.9.3.tgz#71b79914f76e347f050ead8474ad65d761e94a8a"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue