Skip to content

[9.4] [scout] migrate FTR logstash api tests (#262953)#264358

Closed
dmlemeshko wants to merge 1 commit intoelastic:9.4from
dmlemeshko:backport/9.4/pr-262953
Closed

[9.4] [scout] migrate FTR logstash api tests (#262953)#264358
dmlemeshko wants to merge 1 commit intoelastic:9.4from
dmlemeshko:backport/9.4/pr-262953

Conversation

@dmlemeshko
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.4:

Questions ?

Please refer to the Backport tool documentation

## Summary

Closes elastic/appex-qa-team#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 4720f96)

# 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
@dmlemeshko dmlemeshko added the backport This PR is a backport of another PR label Apr 20, 2026
@dmlemeshko dmlemeshko enabled auto-merge (squash) April 20, 2026 10:03
@dmlemeshko dmlemeshko closed this Apr 20, 2026
auto-merge was automatically disabled April 20, 2026 10:04

Pull request was closed

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants