From 0f52f845412862bd74ebf323439eddb0efcadd5c Mon Sep 17 00:00:00 2001 From: Dzmitry Lemechko Date: Sat, 18 Apr 2026 12:59:59 +0200 Subject: [PATCH] [scout] migrate FTR logstash api tests (#262953) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Closes https://github.com/elastic/appex-qa-team/issues/851 Logstash API tests migrated from FTR → Scout Source: `x-pack/platform/test/api_integration/apis/logstash/` (5 test files, now deleted) Target: `x-pack/platform/plugins/private/logstash/test/scout/api/` New spec files: File | Covers -- | -- cluster.spec.ts | GET /api/logstash/cluster pipeline.spec.ts | GET, PUT, DELETE /api/logstash/pipeline/{id} pipelines_delete.spec.ts | POST /api/logstash/pipelines/delete pipelines_list.spec.ts | GET /api/logstash/pipelines (was skipped in FTR — now unskipped) - No esArchiver — `.logstash` is a restricted system index; bulk indexing is blocked even for superuser. Pipelines are seeded via `esClient.logstash.putPipeline` in `beforeAll` per spec instead - Minimum roles — `LOGSTASH_MANAGER_ROLE` (manage_logstash_pipelines) for pipeline ops; `LOGSTASH_CLUSTER_ROLE` (monitor) for the cluster endpoint (FTR used superuser for everything) - Stateful only — no serverless Logstash tests exist or were added - Coverage improvements — added 404 assertion for non-existing pipeline GET; explicit numSuccesses/numErrors check on bulk delete; sort-order assertion on pipeline list --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 4720f964d72ec70a6a13345dd656949dc0613400) # Conflicts: # x-pack/platform/plugins/private/logstash/test/scout/api/playwright.config.ts # x-pack/platform/plugins/shared/index_management/public/application/store/selectors/index.d.ts # x-pack/platform/test/api_integration/apis/logstash/cluster/index.ts --- .../public/application/store/selectors/index.d.ts | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 x-pack/platform/plugins/shared/index_management/public/application/store/selectors/index.d.ts diff --git a/x-pack/platform/plugins/shared/index_management/public/application/store/selectors/index.d.ts b/x-pack/platform/plugins/shared/index_management/public/application/store/selectors/index.d.ts deleted file mode 100644 index 930b07be0ae07..0000000000000 --- a/x-pack/platform/plugins/shared/index_management/public/application/store/selectors/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -import type { ExtensionsService } from '../../../services'; - -export declare function setExtensionsService(extensionsService: ExtensionsService): any; - -export const getFilteredIndices: (state: any) => any;