elastic/kibana

Expand feature registry validation test coverage

Open

#207,342 opened on 2025年1月21日

GitHub で見る
 (6 comments) (0 reactions) (1 assignee)TypeScript (8,021 forks)batch import
Team:Coregood first issue

Repository metrics

Stars
 (19,065 stars)
PR merge metrics
 (平均マージ 1d 16h) (30d で 999 merged PRs)

説明

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

コントリビューターガイド