From 72b86700483a88653e5f870d8f9ed114134b803c Mon Sep 17 00:00:00 2001 From: Jonathan Budzenski Date: Thu, 15 Feb 2024 14:31:15 -0600 Subject: [PATCH 1/7] [8.12] Upgrade Node.js to 18.19.1 --- .ci/Dockerfile | 2 +- .node-version | 2 +- .nvmrc | 2 +- WORKSPACE.bazel | 12 ++++++------ docs/developer/advanced/upgrading-nodejs.asciidoc | 4 ++-- package.json | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.ci/Dockerfile b/.ci/Dockerfile index 109b9ffab3cc5..a2ebd3c80e48f 100644 --- a/.ci/Dockerfile +++ b/.ci/Dockerfile @@ -1,7 +1,7 @@ # NOTE: This Dockerfile is ONLY used to run certain tasks in CI. It is not used to run Kibana or as a distributable. # If you're looking for the Kibana Docker image distributable, please see: src/dev/build/tasks/os_packages/docker_generator/templates/dockerfile.template.ts -ARG NODE_VERSION=18.18.2 +ARG NODE_VERSION=18.19.1 FROM node:${NODE_VERSION} AS base diff --git a/.node-version b/.node-version index 87ec8842b158d..3c5535cf60a0e 100644 --- a/.node-version +++ b/.node-version @@ -1 +1 @@ -18.18.2 +18.19.1 diff --git a/.nvmrc b/.nvmrc index 87ec8842b158d..3c5535cf60a0e 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -18.18.2 +18.19.1 diff --git a/WORKSPACE.bazel b/WORKSPACE.bazel index 8462f12a4efe3..1f9403e0f2aae 100644 --- a/WORKSPACE.bazel +++ b/WORKSPACE.bazel @@ -22,13 +22,13 @@ load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install # Setup the Node.js toolchain for the architectures we want to support node_repositories( node_repositories = { - "18.18.2-darwin_amd64": ("node-v18.18.2-darwin-x64.tar.gz", "node-v18.18.2-darwin-x64", "5bb8da908ed590e256a69bf2862238c8a67bc4600119f2f7721ca18a7c810c0f"), - "18.18.2-darwin_arm64": ("node-v18.18.2-darwin-arm64.tar.gz", "node-v18.18.2-darwin-arm64", "9f982cc91b28778dd8638e4f94563b0c2a1da7aba62beb72bd427721035ab553"), - "18.18.2-linux_arm64": ("node-v18.18.2-linux-arm64.tar.xz", "node-v18.18.2-linux-arm64", "8a5a03f6a742159c9aa0ae3a99b368cd938cf62f3a5522a2e5acbe6313710efe"), - "18.18.2-linux_amd64": ("node-v18.18.2-linux-x64.tar.xz", "node-v18.18.2-linux-x64", "f7cf590bc7153f3beaa9e1138d00e50d74df223f0bec61f63e7df65f7315b76a"), - "18.18.2-windows_amd64": ("node-v18.18.2-win-x64.zip", "node-v18.18.2-win-x64", "3bb0e51e579a41a22b3bf6cb2f3e79c03801aa17acbe0ca00fc555d1282e7acd"), + "18.19.1-darwin_amd64": ("node-v18.19.1-darwin-x64.tar.gz", "node-v18.19.1-darwin-x64", "5bb8da908ed590e256a69bf2862238c8a67bc4600119f2f7721ca18a7c810c0f"), + "18.19.1-darwin_arm64": ("node-v18.19.1-darwin-arm64.tar.gz", "node-v18.19.1-darwin-arm64", "9f982cc91b28778dd8638e4f94563b0c2a1da7aba62beb72bd427721035ab553"), + "18.19.1-linux_arm64": ("node-v18.19.1-linux-arm64.tar.xz", "node-v18.19.1-linux-arm64", "8a5a03f6a742159c9aa0ae3a99b368cd938cf62f3a5522a2e5acbe6313710efe"), + "18.19.1-linux_amd64": ("node-v18.19.1-linux-x64.tar.xz", "node-v18.19.1-linux-x64", "f7cf590bc7153f3beaa9e1138d00e50d74df223f0bec61f63e7df65f7315b76a"), + "18.19.1-windows_amd64": ("node-v18.19.1-win-x64.zip", "node-v18.19.1-win-x64", "3bb0e51e579a41a22b3bf6cb2f3e79c03801aa17acbe0ca00fc555d1282e7acd"), }, - node_version = "18.18.2", + node_version = "18.19.1", node_urls = [ "https://us-central1-elastic-kibana-184716.cloudfunctions.net/kibana-ci-proxy-cache/dist/v{version}/{filename}", ], diff --git a/docs/developer/advanced/upgrading-nodejs.asciidoc b/docs/developer/advanced/upgrading-nodejs.asciidoc index 1126a0631265e..4ba4198923a27 100644 --- a/docs/developer/advanced/upgrading-nodejs.asciidoc +++ b/docs/developer/advanced/upgrading-nodejs.asciidoc @@ -23,7 +23,7 @@ These files must be updated when upgrading Node.js: - {kib-repo}blob/{branch}/WORKSPACE.bazel[`WORKSPACE.bazel`] - The version is specified in the `node_version` property. Besides this property, the list of files under `node_repositories` must be updated along with their respective SHA256 hashes. These can be found in the `SHASUMS256.txt` file inside the public `kibana-custom-node-artifacts` GCP bucket. - Example for Node.js v18.18.2: https://storage.googleapis.com/kibana-custom-node-artifacts/node-glibc-217/dist/v18.18.2/SHASUMS256.txt[kibana-custom-node-artifacts/node-glibc-217/dist/v18.18.2/SHASUMS256.txt] + Example for Node.js v18.19.1: https://storage.googleapis.com/kibana-custom-node-artifacts/node-glibc-217/dist/v18.19.1/SHASUMS256.txt[kibana-custom-node-artifacts/node-glibc-217/dist/v18.19.1/SHASUMS256.txt] See PR {kib-repo}pull/128123[#128123] for an example of how the Node.js version has been upgraded previously. @@ -47,7 +47,7 @@ The only difference between the offical Node.js build and our custom build, is t ==== How to start a new build To generate a new custom Node.js build, https://buildkite.com/elastic/kibana-custom-node-dot-js-builds#new[start a new build] on our dedicated Buildkite pipeline (requires Elastic employee permissions). -Give it a clear name (e.g. `Node 18.18.2`) and remember so set the custom `OVERRIDE_TARGET_VERSION` environment variable to the desired Node.js version - e.g. `OVERRIDE_TARGET_VERSION=18.18.2`. +Give it a clear name (e.g. `Node 18.19.1`) and remember so set the custom `OVERRIDE_TARGET_VERSION` environment variable to the desired Node.js version - e.g. `OVERRIDE_TARGET_VERSION=18.19.1`. You find the "Environment Variables" field by expanding "Options >" in the "New Build" dialog. === Backporting diff --git a/package.json b/package.json index ed465fd12486c..9e9a49acfaaf9 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,7 @@ "url": "https://github.com/elastic/kibana.git" }, "engines": { - "node": "18.18.2", + "node": "18.19.1", "yarn": "^1.22.19" }, "resolutions": { From 5958ce7d72dd77e38e0e4e1b1979bcbe5556f334 Mon Sep 17 00:00:00 2001 From: Jonathan Budzenski Date: Thu, 15 Feb 2024 16:03:30 -0600 Subject: [PATCH 2/7] update checksums --- WORKSPACE.bazel | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/WORKSPACE.bazel b/WORKSPACE.bazel index 1f9403e0f2aae..afb18448eac3f 100644 --- a/WORKSPACE.bazel +++ b/WORKSPACE.bazel @@ -22,11 +22,11 @@ load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install # Setup the Node.js toolchain for the architectures we want to support node_repositories( node_repositories = { - "18.19.1-darwin_amd64": ("node-v18.19.1-darwin-x64.tar.gz", "node-v18.19.1-darwin-x64", "5bb8da908ed590e256a69bf2862238c8a67bc4600119f2f7721ca18a7c810c0f"), - "18.19.1-darwin_arm64": ("node-v18.19.1-darwin-arm64.tar.gz", "node-v18.19.1-darwin-arm64", "9f982cc91b28778dd8638e4f94563b0c2a1da7aba62beb72bd427721035ab553"), - "18.19.1-linux_arm64": ("node-v18.19.1-linux-arm64.tar.xz", "node-v18.19.1-linux-arm64", "8a5a03f6a742159c9aa0ae3a99b368cd938cf62f3a5522a2e5acbe6313710efe"), - "18.19.1-linux_amd64": ("node-v18.19.1-linux-x64.tar.xz", "node-v18.19.1-linux-x64", "f7cf590bc7153f3beaa9e1138d00e50d74df223f0bec61f63e7df65f7315b76a"), - "18.19.1-windows_amd64": ("node-v18.19.1-win-x64.zip", "node-v18.19.1-win-x64", "3bb0e51e579a41a22b3bf6cb2f3e79c03801aa17acbe0ca00fc555d1282e7acd"), + "18.19.1-darwin_amd64": ("node-v18.19.1-darwin-x64.tar.gz", "node-v18.19.1-darwin-x64", "ab67c52c0d215d6890197c951e1bd479b6140ab630212b96867395e21d813016"), + "18.19.1-darwin_arm64": ("node-v18.19.1-darwin-arm64.tar.gz", "node-v18.19.1-darwin-arm64", "0c7249318868877032ed21cc0ed450015ee44b31b9b281955521cd3fc39fbfa3"), + "18.19.1-linux_arm64": ("node-v18.19.1-linux-arm64.tar.xz", "node-v18.19.1-linux-arm64", "1073908a12134ad0d2c4425194e1c38b3232a707321e58190ccfea16c1a17071"), + "18.19.1-linux_amd64": ("node-v18.19.1-linux-x64.tar.xz", "node-v18.19.1-linux-x64", "e63643c441693bc9b25934225bf593794bd485baee1646c81fc5205dce11e2ff"), + "18.19.1-windows_amd64": ("node-v18.19.1-win-x64.zip", "node-v18.19.1-win-x64", "ff08f8fe253fba9274992d7052e9d9a70141342d7b36ddbd6e84cbe823e312c6"), }, node_version = "18.19.1", node_urls = [ From e6cd80bfc6b424e9f9a0eeefb9acca64dfdf4727 Mon Sep 17 00:00:00 2001 From: Jonathan Budzenski Date: Tue, 20 Feb 2024 08:20:56 -0600 Subject: [PATCH 3/7] update timeout --- packages/kbn-es/src/integration_tests/__fixtures__/es_bin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/kbn-es/src/integration_tests/__fixtures__/es_bin.js b/packages/kbn-es/src/integration_tests/__fixtures__/es_bin.js index 5ef6145698811..c0b3ff68aa4c4 100644 --- a/packages/kbn-es/src/integration_tests/__fixtures__/es_bin.js +++ b/packages/kbn-es/src/integration_tests/__fixtures__/es_bin.js @@ -91,7 +91,7 @@ const { ES_KEY_PATH, ES_CERT_PATH } = require('@kbn/dev-utils'); let serverCloseTimer; const delayServerClose = () => { clearTimeout(serverCloseTimer); - serverCloseTimer = setTimeout(() => server.close(), 1000); + serverCloseTimer = setTimeout(() => server.close(), 5000); }; server.on('request', delayServerClose); server.on('listening', delayServerClose); From 31047475fc228546610ba51285fb274260289bf0 Mon Sep 17 00:00:00 2001 From: Jonathan Budzenski Date: Tue, 20 Feb 2024 09:48:59 -0600 Subject: [PATCH 4/7] increase timeout --- .../apps/integrations/artifact_entries_list.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/test/security_solution_endpoint/apps/integrations/artifact_entries_list.ts b/x-pack/test/security_solution_endpoint/apps/integrations/artifact_entries_list.ts index 802cbf8be16fc..b1ee0897fd0b0 100644 --- a/x-pack/test/security_solution_endpoint/apps/integrations/artifact_entries_list.ts +++ b/x-pack/test/security_solution_endpoint/apps/integrations/artifact_entries_list.ts @@ -260,7 +260,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { await updateArtifact(testData, { policyId: policyInfo.packagePolicy.id }); // Check edited artifact is in the list with new values (wait for list to be updated) - await retry.waitForWithTimeout('entry is updated in list', 10000, async () => { + await retry.waitForWithTimeout('entry is updated in list', 20000, async () => { const currentValue = await testSubjects.getVisibleText( `${testData.pagePrefix}-card-criteriaConditions${ testData.pagePrefix === 'EventFiltersListPage' ? '-condition' : '' From 37239f88560d7754c3553b16ee4dc513d19894fa Mon Sep 17 00:00:00 2001 From: Jonathan Budzenski Date: Tue, 20 Feb 2024 14:24:59 -0600 Subject: [PATCH 5/7] update timeout --- .../apps/integrations/artifact_entries_list.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/test/security_solution_endpoint/apps/integrations/artifact_entries_list.ts b/x-pack/test/security_solution_endpoint/apps/integrations/artifact_entries_list.ts index b1ee0897fd0b0..d66a42a837ee0 100644 --- a/x-pack/test/security_solution_endpoint/apps/integrations/artifact_entries_list.ts +++ b/x-pack/test/security_solution_endpoint/apps/integrations/artifact_entries_list.ts @@ -260,7 +260,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { await updateArtifact(testData, { policyId: policyInfo.packagePolicy.id }); // Check edited artifact is in the list with new values (wait for list to be updated) - await retry.waitForWithTimeout('entry is updated in list', 20000, async () => { + await retry.waitForWithTimeout('entry is updated in list', 60000, async () => { const currentValue = await testSubjects.getVisibleText( `${testData.pagePrefix}-card-criteriaConditions${ testData.pagePrefix === 'EventFiltersListPage' ? '-condition' : '' From cd6a3353d2aba75bfd720879cfd6ac1ab72c944e Mon Sep 17 00:00:00 2001 From: Jonathan Budzenski Date: Tue, 20 Feb 2024 16:30:56 -0600 Subject: [PATCH 6/7] Revert "update timeout" This reverts commit 37239f88560d7754c3553b16ee4dc513d19894fa. --- .../apps/integrations/artifact_entries_list.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/test/security_solution_endpoint/apps/integrations/artifact_entries_list.ts b/x-pack/test/security_solution_endpoint/apps/integrations/artifact_entries_list.ts index d66a42a837ee0..b1ee0897fd0b0 100644 --- a/x-pack/test/security_solution_endpoint/apps/integrations/artifact_entries_list.ts +++ b/x-pack/test/security_solution_endpoint/apps/integrations/artifact_entries_list.ts @@ -260,7 +260,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { await updateArtifact(testData, { policyId: policyInfo.packagePolicy.id }); // Check edited artifact is in the list with new values (wait for list to be updated) - await retry.waitForWithTimeout('entry is updated in list', 60000, async () => { + await retry.waitForWithTimeout('entry is updated in list', 20000, async () => { const currentValue = await testSubjects.getVisibleText( `${testData.pagePrefix}-card-criteriaConditions${ testData.pagePrefix === 'EventFiltersListPage' ? '-condition' : '' From 126c77e4f0bd9acf6c1f493e4f7c8334c7764f6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20=C3=81brah=C3=A1m?= Date: Tue, 23 Jan 2024 16:42:00 +0100 Subject: [PATCH 7/7] [EDR Workflows] Re-enable/update artifact entries list FTR (#175297) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary - re-enables Artifact Entries List FTR - updates the test data so it works with the changed `zlib` compression algorithm - let's take this bullet, and refactor the test next time `zlib` changes > [!note] > don't forget to revert the temp commit ✅ Flaky runner: - 10-10x for ESS/serverless: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4926 ✅ --------- Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../apps/integrations/mocks.ts | 60 +++++++++---------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/x-pack/test/security_solution_endpoint/apps/integrations/mocks.ts b/x-pack/test/security_solution_endpoint/apps/integrations/mocks.ts index 168e688894f15..90d0439f520df 100644 --- a/x-pack/test/security_solution_endpoint/apps/integrations/mocks.ts +++ b/x-pack/test/security_solution_endpoint/apps/integrations/mocks.ts @@ -127,7 +127,7 @@ export const getArtifactsListTestsData = () => [ getExpectedUpdatedtArtifactWhenCreate: (): ArtifactElasticsearchProperties => ({ type: 'trustlist', identifier: 'endpoint-trustlist-windows-v1', - body: 'eJxVjEEKwjAQRe+StZSkadO0VxGR6cyEBmIbklSU4t2N4kb+7r3HPwSvJXnOYjofojwji0lkf4uBxenPOc+BqoxpQ865WSAvTV6g7U0tt8gJypZq4FcMOzFV+vvjB2C5IuQvvEPYPxQ6PUiU6Kwy1qCczWgcmNYoHEmzJKsk8CA7mK2WyuqRnKOeeqVa1w1GvC51bz2HPRA=', + body: 'eJxVzNEKgyAUgOF3OdcxNMvMVxkxTp4jCa5EbWxE7z422MVuvx/+A3itOXABez2gvhKDhRLuKTI0f80HjgQWUt4cl3JZsCyXsmDba2hgS5yxbhkshNXFnZig+f34ia7eHJYvPjDuH8VODcIJ543URjsx61F71K2WbiTFgowUyIPocDZKSKNG8p566qVsfTdoOKdzOt89hz0Q', package_name: 'endpoint', created: '2000-01-01T00:00:00.000Z', relative_url: @@ -136,8 +136,8 @@ export const getArtifactsListTestsData = () => [ decoded_size: 193, decoded_sha256: '016bec11c5b1d6f8609fd3525202aa12baf0132484abf368d5011100d5ec1ec4', encryption_algorithm: 'none', - encoded_sha256: 'ce6a4e9bf54d3d70b2bdcc8ca0b28ffd7f16fa42412bccb6d7399c0250442c13', - encoded_size: 152, + encoded_sha256: '814aabc04d674ccdeb7c1acfe74120cb52ad1392d6924a7d813e08f8b6cd0f0f', + encoded_size: 153, }), getExpectedUpdatedArtifactBodyWhenCreate: (): ArtifactBodyType => ({ entries: [ @@ -157,7 +157,7 @@ export const getArtifactsListTestsData = () => [ getExpectedUpdatedArtifactWhenUpdate: (): ArtifactElasticsearchProperties => ({ type: 'trustlist', identifier: 'endpoint-trustlist-windows-v1', - body: 'eJx9jEsKAjEQRK8ivR5cuMwBvIQj0nZKCPQkIR8ZGby7HRHBjfSq6r2ujRBbCajkThu1RwY5qmHJCpp+2C1AvcFckqDWPVZIb3x9iymjcEvFeIii3cNb+5nDytIuwhVqj9bfWfsA4ua5cPRpOSb1KN8UFGN/2v0zDkOh59nuBSaWRvA=', + body: 'eJx9jEEKwjAUBa8ibx1cuMwBvIQtEpMnBH6TkJ9KpeTuEkHBjcthhtnB1Gqkwl52tGchLDQuRQjz4+6REmBRavZUPXKjX5u7vcNcWF3LFRYxeVkDA8xnx835dvVOKVSFwcPJOoS301RdCnk5ZwmsX4rC8TeHf8VpJOhzn/sLJpZG8A==', package_name: 'endpoint', created: '2000-01-01T00:00:00.000Z', relative_url: @@ -166,8 +166,8 @@ export const getArtifactsListTestsData = () => [ decoded_size: 198, decoded_sha256: 'ac2bf74a73885f9a5a1700c328bf1a5a8f6cb72f2465a575335ea99dac0d4c10', encryption_algorithm: 'none', - encoded_sha256: '90baa7e228dbffc00864707d2df784593a754466f3903841f40cbab9dc015177', - encoded_size: 131, + encoded_sha256: '28d81b2787cea23fcb88d02b1c09940858963a62c60cdfd7a2b7564cfc251708', + encoded_size: 130, }), getExpectedUpdatedArtifactBodyWhenUpdate: (): ArtifactBodyType => ({ entries: [ @@ -289,7 +289,7 @@ export const getArtifactsListTestsData = () => [ getExpectedUpdatedtArtifactWhenCreate: (): ArtifactElasticsearchProperties => ({ type: 'eventfilterlist', identifier: 'endpoint-eventfilterlist-windows-v1', - body: 'eJxVjEEKwzAMBP+ic+kD8pUSgrA3qUCxha2EltC/Vwm9lL0sM8sehOJN0Gl4HORvAw3UZTUF3f7cLNAckpegd9gTKxrrJDmG1aJ7beGlJN0yTvq7w4uTT4n7BXfW7aIlW5Xi9BkjX6sIL5c=', + body: 'eJxVzFEKwjAQRdG9vO/iArKVUsqQPHVgmoRkWpSSvYvFH3/PhXuC2ZuyI8wn/F2JgK5bNWL6a3elJQTIg9lvrE9ubGKrJkwolU28NARojrYnfvW340uir1H6hYfYfmlOtWh2jGUs4wOrCC+X', package_name: 'endpoint', created: '2000-01-01T00:00:00.000Z', relative_url: @@ -298,8 +298,8 @@ export const getArtifactsListTestsData = () => [ decoded_size: 136, decoded_sha256: 'b3373c93ffc795d954f22c625c084dc5874a156ec0cb3d4af1c3dab0b965fa30', encryption_algorithm: 'none', - encoded_sha256: 'c1b30df9457ba007065fff1388c026ad269e63fbed535b506ac559fd616aabe9', - encoded_size: 107, + encoded_sha256: 'cc9bc4e3cc2c2767c3f56b17ebf4901dbe7e82f15720d48c745370e028c5e887', + encoded_size: 108, }), getExpectedUpdatedArtifactBodyWhenCreate: (): ArtifactBodyType => ({ entries: [ @@ -319,7 +319,7 @@ export const getArtifactsListTestsData = () => [ getExpectedUpdatedArtifactWhenUpdate: (): ArtifactElasticsearchProperties => ({ type: 'eventfilterlist', identifier: 'endpoint-eventfilterlist-windows-v1', - body: 'eJxVzEEKwkAMheGrDFmLB+hVikiYeS2B2A6TjCildze1biS77+dlIyzeBEbDuJG/K2ggk0dV0OWvTQItEXkOvUqJvFY09rWFypK1Fxz6e4IXZ79nti8+WfuhDvNkPYZJuc1IZ9hvcR86lDCb', + body: 'eJxVzEEKwyAURdGtyBuHLsCtlFA++hoEa+T7LQnBvZc0nXR6LtwDLKaJDf5+wPZKeLT0qpmY/tozMUd4yMJitxQxYa1UsVXhkUrIPfLU34SbBHsEaV98S+6nGpu51ivVZdGF7gpjHvP4ADqUMJs=', package_name: 'endpoint', created: '2000-01-01T00:00:00.000Z', relative_url: @@ -328,8 +328,8 @@ export const getArtifactsListTestsData = () => [ decoded_size: 140, decoded_sha256: 'e4f00c88380d2c429eeb2741ad19383b94d76f79744b098b095befc24003e158', encryption_algorithm: 'none', - encoded_sha256: '99386e3d9a67eac88f0a4cc4ac36ad42cfda42598ce0ee1c11a8afc50bf004fe', - encoded_size: 108, + encoded_sha256: 'e371e2a28b59bd942ca7ef9665dae7c9b27409ad6f2ca3bff6357a98deb23c12', + encoded_size: 110, }), getExpectedUpdatedArtifactBodyWhenUpdate: (): ArtifactBodyType => ({ entries: [ @@ -465,11 +465,11 @@ export const getArtifactsListTestsData = () => [ identifier: 'endpoint-blocklist-windows-v1', relative_url: '/api/fleet/artifacts/endpoint-blocklist-windows-v1/637f1e8795406904980ae2ab4a69cea967756571507f6bd7fc94cde0add20df2', - body: 'eJylzsFqwzAMgOF38bkU27Jlu69SQpEtmQTSNCTpWCl595qyy45bj9IvxPdUMm3LIKs6nZ9qe8yiTmodrvMo6vCr1UFGbrEOoxx7WvvjlX27uc2y0HZbWhqmMt5ZuG1/Psk3le1SaBW+0PRo4YvGeytnFZxxaCk7MGStBSghhkyUU0bfBtXt3X74q2ntyXyAIuFsQxIIMQtjsZyhJC5JjM2E4EVnSKb8G2c9fsJzEHTRpUaDEYvOmLASWjQNCaI5Gk0StKMcQZsIiWtlz94YW13AN7vbX9OOoO0=', + body: 'eJylzk1qw0AMQOG7aG3C/GpmfJVggkbSYIPjmNgpDcF3LxS66LLN+sHje4Eu+33SDfrzC/bnqtDDNl3XWaH71dqks0APbZr1NNI2nq4SoYPbqnfab3foYVp4fogKdD8n/STeL0ybyoWWJ3TwQfNDoT9DCjagoxq8Jeec95xyqkS1VIyeEwzHcHR/NW0j2TdQpFJdKupTrirITqrnIlzUukroo5rqi+V/41zEd3jBJ8OGW7aYkU3Fgo3QoeUiXo1ka0iTCVSzNzb7Iq1JlGitayHhN3s4vgDTjqDt', encryption_algorithm: 'none', package_name: 'endpoint', - encoded_size: 218, - encoded_sha256: '751aacf865573055bef82795d23d99b7ab695eb5fb2a36f1231f02f52da8adc0', + encoded_size: 219, + encoded_sha256: 'e803c1ee6aec0885092bfd6c288839f42b31107dd6d0bb2c8e2d2b9f8fc8b293', decoded_size: 501, decoded_sha256: '637f1e8795406904980ae2ab4a69cea967756571507f6bd7fc94cde0add20df2', compression_algorithm: 'zlib', @@ -517,11 +517,11 @@ export const getArtifactsListTestsData = () => [ identifier: 'endpoint-blocklist-windows-v1', relative_url: '/api/fleet/artifacts/endpoint-blocklist-windows-v1/3ead6ce4e34cb4411083a44bfe813d9442d296981ee8d56e727e6cff14dea0f0', - body: 'eJx9jUEKwzAQA79S9lx66NEP6CeSEhZboYaNbWynJIT8vetSArkUnaQR0kYINXsUMt1GdU0gQ8VPSUDXExs9xCkcveCWuL6Ux4TMNWaNfbAyOzhNfytY2NbBcoGglIHDquzNMivsyJq+zxxcnB5RHPLh2jyW9n7517l/S8+96QOI6kW/', + body: 'eJx9jUEKwjAURK8isw4uXOYAXqKV8kmmGPhNQpJKS/HuEkHBjcxqmMebA4ytBFbY4UDbM2FRw5KVMD/bHKgeFnNQnrO0OwxSZpGWCixCdLp6epiPhZu4NjmpVNY6Sdxh8BBdCTvA2XEsEn1arkk9y7d1Pbf+fvrHXN7Q7dnzAojqRb8=', encryption_algorithm: 'none', package_name: 'endpoint', - encoded_size: 132, - encoded_sha256: '9f81934389ff29599c0b0f16aa91b9f5cebd95d51271a47ea469662a61a29884', + encoded_size: 131, + encoded_sha256: 'f0e2dc2aa8d968b704baa11bf3100db91a85991d5de431f8c389b7417335a701', decoded_size: 197, decoded_sha256: '3ead6ce4e34cb4411083a44bfe813d9442d296981ee8d56e727e6cff14dea0f0', compression_algorithm: 'zlib', @@ -620,11 +620,11 @@ export const getArtifactsListTestsData = () => [ identifier: 'endpoint-hostisolationexceptionlist-windows-v1', relative_url: '/api/fleet/artifacts/endpoint-hostisolationexceptionlist-windows-v1/2c3ee2b5e7f86f8c336a3df7e59a1151b11d7eec382442032e69712d6a6459e0', - body: 'eJxVjEEKgDAMBP+Sswhe/YqIhHaFQG1LG0UR/24ULzK3mWVPQtQiqNQPJ+mRQT1VWXIANb82C4K36FFVIquk2Eq2UcoorKlYk+jC6uHNflfY2enkuL5y47A+tmtf6BqNG647LBE=', + body: 'eJxVjEEKgzAUBe/y1kFwm6uIyCd5hQ9pEpKvWCR3LxVclNnNwFxgtqbs8MsF+1TCo+u7JsL9tZcyRXhEdtMspiVPWuFQKptYafDQHNIeGeGeFU8JtgXptzwk7T87TzcY61jHF647LBE=', encryption_algorithm: 'none', package_name: 'endpoint', - encoded_size: 101, - encoded_sha256: 'ee949ea39fe547e06add448956fa7d94ea14d1c30a368dce7058a1cb6ac278f9', + encoded_size: 104, + encoded_sha256: 'f958ada742a0be63d136901317c6bfd04b2ab5f52cdd0e872461089b0009bb3e', decoded_size: 131, decoded_sha256: '2c3ee2b5e7f86f8c336a3df7e59a1151b11d7eec382442032e69712d6a6459e0', compression_algorithm: 'zlib', @@ -650,11 +650,11 @@ export const getArtifactsListTestsData = () => [ identifier: 'endpoint-hostisolationexceptionlist-windows-v1', relative_url: '/api/fleet/artifacts/endpoint-hostisolationexceptionlist-windows-v1/4b62473b4cf057277b3297896771cc1061c3bea2c4f7ec1ef5c2546f33d5d9e8', - body: 'eJxVjEEKgzAQRe8ya4kgXeUqIjIkvzAQk5CMYpHevVPpprzde59/EbI2QSc/X6SvCvLUZasJNPy1pyBFixFdJbNKyU6qjUpFYy3NmuSQ9oho9neFk4OugfstD077107uZpwe9F6MDzBbLKo=', + body: 'eJxVjEEKwyAUBe/y1pJC6MqrlBA++gofrIr+hJbg3UsCXZTZzcAcYLam7PCPA/aphEfXV02E+2tPZYrwiOymWUxLnrTCoVQ2sdLgoTmkLTLC/VZ8S7A1SL/kLmk77Txd3OY7xjKW8QUwWyyq', encryption_algorithm: 'none', package_name: 'endpoint', - encoded_size: 107, - encoded_sha256: 'dbcc8f50044d43453fbffb4edda6aa0cd42075621827986393d625404f2b6b81', + encoded_size: 108, + encoded_sha256: '84df618343078f43a54299bcebef03010f3ec4ffdf7160448882fee9bafa1adb', decoded_size: 134, decoded_sha256: '4b62473b4cf057277b3297896771cc1061c3bea2c4f7ec1ef5c2546f33d5d9e8', compression_algorithm: 'zlib', @@ -718,7 +718,7 @@ export const getCreateMultipleData = () => ({ getExpectedUpdatedArtifactWhenCreateMultipleFirst: (): ArtifactElasticsearchProperties => ({ type: 'trustlist', identifier: 'endpoint-trustlist-windows-v1', - body: 'eJzNjlEKwjAQRO+y38UD9ABewhaJyRQXtknYbKRSencTEcEb+DnzZobZCdGUUWi87GTPDBqp8JoFNPywhSGhwazJo5QTNvhq7vYOpgx1lrRxjl5qQGjuZw6b83b1rkBasfkPJ7UDP06TuhjSek4SoF/Fgr5vd9ZAx3wMf3dtYS3Wr83HC1Eec3Q=', + body: 'eJzNjlEKwjAQBe+y38ED5ABewhaJySsubJuwu5VK6d0lgoI38PMxj2F2wuLKMIqXnfzZQJGM5yag8MMmhhSK1LRmmJ2wIa+ebu9jbdDkVSkSL1nWgkLho8OWsl9zMgjMKNAjydpBjsOgaSl1Plcp0O9iQff7nbXQMR7h79ImVvOeNh4vUR5zdA==', package_name: 'endpoint', created: '2000-01-01T00:00:00.000Z', relative_url: @@ -727,8 +727,8 @@ export const getCreateMultipleData = () => ({ decoded_size: 323, decoded_sha256: '329fc9176a24d64f4376d2c25d5db5b31cf86b288dac83c8a004dfe5bbfdc7d0', encryption_algorithm: 'none', - encoded_sha256: '89be728e6132d4442f887657b092c3603199df71eb832881164f7d297fad2c4f', - encoded_size: 137, + encoded_sha256: '4d9eecb830948eabd721563fd2473900207d043126e66eac2ef78f9e05a80adb', + encoded_size: 136, }), getExpectedUpdatedArtifactBodyWhenCreateMultipleFirst: ( firstSuffix: string, @@ -762,7 +762,7 @@ export const getCreateMultipleData = () => ({ getExpectedUpdatedArtifactWhenCreateMultipleSecond: (): ArtifactElasticsearchProperties => ({ type: 'trustlist', identifier: 'endpoint-trustlist-windows-v1', - body: 'eJzNjlEKwjAQRO+y38UD5ABewhaJmxEXtknYJFIpvbtpEcEb+DnzZoZZCbGaoJC7rFRfGeSoyJwVNPywu0BDh9kSo5QTFnCr/nYEU4b5mqxziawtIHT3M4fFc72yL9Be7P7Ta9sBu3E0H0Oaz0kD7KtEse/Xh1igbdqGv7tWwCke36btDcSBc8g=', + body: 'eJzNjlEKwjAQRO8y38ED5ABewhaJyYiBbRJ2U6mU3l1aUPAGfg5veLwVLF0zDf6yor8a4WF5akK4H3bPlASPpjXS7MSFce7hdhxro4ZeFR65RJkTE9xHxyXEfo3BKDSDwzPIvIPoh0FDSXU6V0nU78rC3d8fWRO2cXN/l2aMtRxt4/YGxIFzyA==', package_name: 'endpoint', created: '2000-01-01T00:00:00.000Z', relative_url: @@ -771,8 +771,8 @@ export const getCreateMultipleData = () => ({ decoded_size: 324, decoded_sha256: '3be2ce848f9b49d6531e6dc80f43579e00adbc640d3f785c14c8f9fa2652500a', encryption_algorithm: 'none', - encoded_sha256: 'eb1cb904f23c233fb10a8909e40902ad69d11d0fe42759d385307a7f84bdc111', - encoded_size: 137, + encoded_sha256: '68304c35bbe863d0fbb15cf7e5ae5c84bad17aa7a3bc26828f9f0b20e0df6ed8', + encoded_size: 136, }), getExpectedUpdatedArtifactBodyWhenCreateMultipleSecond: ( firstSuffix: string,