elastic/kibana

Expand feature registry validation test coverage

Open

#207,342 创建于 2025年1月21日

在 GitHub 查看
 (6 评论) (0 反应) (1 负责人)TypeScript (8,021 fork)batch import
Team:Coregood first issue

仓库指标

Star
 (19,065 star)
PR 合并指标
 (平均合并 1天 16小时) (30 天内合并 999 个 PR)

描述

In https://github.com/elastic/kibana/pull/202863#discussion_r1923664248 the registry had to be changed to accommodate replacing disabled privileges with disabled privileges, but this surfaced the fact that the existing test cases miss coverage for the following privilege replacement scenarios:

  • Disabled → Disabled privilege replacement
  • Disabled → Enabled privilege replacement

We currently only test that Enabled → Disabled is prevented

Tests are located in x-pack/platform/plugins/shared/features/server/feature_registry.test.ts

贡献者指南