From 5d6bb74a207aa6f2191798b73e0da1d92402c217 Mon Sep 17 00:00:00 2001 From: Jean-Louis Leysens Date: Mon, 26 Sep 2022 12:55:25 +0200 Subject: [PATCH 1/3] set has content to false --- .../file_client/integration_tests/es_file_client.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/files/server/file_client/integration_tests/es_file_client.test.ts b/x-pack/plugins/files/server/file_client/integration_tests/es_file_client.test.ts index 25e6e1b5d4c16..61f00bf76a799 100644 --- a/x-pack/plugins/files/server/file_client/integration_tests/es_file_client.test.ts +++ b/x-pack/plugins/files/server/file_client/integration_tests/es_file_client.test.ts @@ -197,6 +197,9 @@ describe.skip('ES-index-backed file client', () => { }) ); - await Promise.all([fileClient.delete({ id: id1 }), fileClient.delete({ id: id2 })]); + await Promise.all([ + fileClient.delete({ id: id1, hasContent: false }), + fileClient.delete({ id: id2, hasContent: false }), + ]); }); }); From 943716d9912363ac903ab3091d517ed513cfde71 Mon Sep 17 00:00:00 2001 From: Jean-Louis Leysens Date: Mon, 26 Sep 2022 16:26:21 +0200 Subject: [PATCH 2/3] [revert this] only run the flaky test --- .../file_client/integration_tests/es_file_client.test.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/x-pack/plugins/files/server/file_client/integration_tests/es_file_client.test.ts b/x-pack/plugins/files/server/file_client/integration_tests/es_file_client.test.ts index 61f00bf76a799..693cd5690de83 100644 --- a/x-pack/plugins/files/server/file_client/integration_tests/es_file_client.test.ts +++ b/x-pack/plugins/files/server/file_client/integration_tests/es_file_client.test.ts @@ -11,11 +11,7 @@ import { createEsFileClient } from '../create_es_file_client'; import { FileClient } from '../types'; import { FileMetadata } from '../../../common'; -/** - * This file client is using Elasticsearch interfaces directly to manage files. - */ -// FLAKY: https://github.com/elastic/kibana/issues/139565 -describe.skip('ES-index-backed file client', () => { +describe.only('ES-index-backed file client', () => { let esClient: TestEnvironmentUtils['esClient']; let fileClient: FileClient; let testHarness: TestEnvironmentUtils; From c5834a96262e8cc4684d645584ce1162de51cead Mon Sep 17 00:00:00 2001 From: Jean-Louis Leysens Date: Mon, 3 Oct 2022 17:28:53 +0200 Subject: [PATCH 3/3] remove .only --- .../server/file_client/integration_tests/es_file_client.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/files/server/file_client/integration_tests/es_file_client.test.ts b/x-pack/plugins/files/server/file_client/integration_tests/es_file_client.test.ts index 693cd5690de83..58bf5cec29c41 100644 --- a/x-pack/plugins/files/server/file_client/integration_tests/es_file_client.test.ts +++ b/x-pack/plugins/files/server/file_client/integration_tests/es_file_client.test.ts @@ -11,7 +11,7 @@ import { createEsFileClient } from '../create_es_file_client'; import { FileClient } from '../types'; import { FileMetadata } from '../../../common'; -describe.only('ES-index-backed file client', () => { +describe('ES-index-backed file client', () => { let esClient: TestEnvironmentUtils['esClient']; let fileClient: FileClient; let testHarness: TestEnvironmentUtils;