Commit 404f1fd
migrate som / ml / monitoring ui tests to scout (elastic#271394)
### Migration Summary
1. ML:
`x-pack/platform/test/functional/apps/ml/short_tests/feature_controls`
FTR file | Scout spec | Layer
-- | -- | --
ml_security.ts (5 role/navlink scenarios) |
x-pack/platform/plugins/shared/ml/test/scout/api/tests/feature_controls.spec.ts
| API (capabilities)
ml_spaces.ts (enabled space → app renders; disabled → 404) |
x-pack/platform/plugins/shared/ml/test/scout/ui/tests/feature_controls.spec.ts +
same API spec (per-space capabilities) | UI + API
Parity: **full**. Browser-only smoke (mlAppPageOverview render + raw 404
JSON on disabled space) kept in UI; capabilities/navlink contracts moved
to API.
2. Stack Monitoring:
`x-pack/platform/test/functional/apps/monitoring/feature_controls`
FTR file | Scout spec | Layer
-- | -- | --
monitoring_security.ts (admin sees app, base:all no navlink) |
x-pack/platform/plugins/private/monitoring/test/scout/ui/tests/feature_controls.spec.ts
| UI
monitoring_spaces.ts (enabled/disabled space) | same UI spec | UI
Parity: **partial** — documented in the spec header.
Migrated: monitoringAppContainer renders for admin (default + enabled
space), 404 JSON in disabled space, base:all user does NOT see sidebar
link.
Not migrated (intentional gap): `monitoring_user` alone → forbidden and
`monitoring_user + kibana_admin` → enable denied. Both require the
reserved_monitoring ES application privilege, which Scout's
setCustomRole cannot provision (the second case was already skipCloud in
FTR).
3. Saved Objects Management:
`x-pack/platform/test/functional/apps/saved_objects_management/feature_controls`
FTR file | Scout spec | Layer
-- | -- | --
security.ts (5 role/capability scenarios) |
src/platform/plugins/shared/saved_objects_management/test/scout/api/tests/feature_controls.spec.ts
| API
Same file (browser-only button visibility + appNotFound routing) |
src/platform/plugins/shared/saved_objects_management/test/scout/ui/tests/feature_controls.spec.ts
| UI
Parity: **full**. Pure capability/_find contracts at API, per-role
button visibility & appNotFound routing at UI.
4. OSS Saved Objects Management:
`src/platform/test/functional/apps/saved_objects_management`
FTR file | Scout spec | Layer
-- | -- | --
inspect_saved_objects.ts > "renders the envelope" | covered
by ui/tests/spaces_integration.spec.ts +
existing api/tests/bulk_get.spec.ts | UI + API
inspect_saved_objects.ts > "allows to delete a saved object" |
src/platform/plugins/shared/saved_objects_management/test/scout/ui/tests/inspect.spec.ts
| UI (only confirm-modal flow)
show_relationships.ts (invalid relationships) | covered by
existing api/tests/relationships_invalid.spec.ts (no new spec needed) |
API
spaces_integration.ts |
src/platform/plugins/shared/saved_objects_management/test/scout/ui/tests/spaces_integration.spec.ts
| UI
5. x-pack SOM:
`x-pack/platform/test/functional/apps/saved_objects_management`
FTR file | Scout spec | Layer
-- | -- | --
import_saved_objects_between_versions.ts (3 imports: 7.13, 7.14, 8.0) |
API spec for counts + UI render-smoke | API + UI
multi_space_import.ts (default-space + non-default-space import) |
merged into same api/tests/imports.spec.ts | API
Copy-to-space flow |
src/platform/plugins/shared/saved_objects_management/test/scout/ui/tests/imports.spec.ts (merged
with 7.13 render-smoke) | UI
Parity: **full**. Import counts moved to API (no browser); browser-only
checks (rendered dashboard, copy flyout summary counters) stay in UI.
### Net CI impact
2 dedicated FTR configs removed (no more per-suite server starts):
- x-pack/platform/test/functional/apps/ml/short_tests no longer loads
feature_controls.
- x-pack/platform/test/functional/apps/monitoring/index.group1.js no
longer loads feature_controls.
-
x-pack/platform/test/functional/apps/saved_objects_management/config.ts
— entirely removed.
- src/platform/test/functional/apps/saved_objects_management/config.ts —
entirely removed.
---------
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>1 parent 3214a8e commit 404f1fd
53 files changed
Lines changed: 1421 additions & 1508 deletions
File tree
- .buildkite
- ftr-manifests
- .github
- src/platform
- test/functional
- apps/saved_objects_management
- fixtures/kbn_archiver/saved_objects_management
- x-pack/platform
- plugins
- private/monitoring
- test/scout/ui
- fixtures
- tests
- test/functional/apps
- ml/short_tests
- feature_controls
- monitoring
- feature_controls
- saved_objects_management
- feature_controls
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | 126 | | |
128 | 127 | | |
129 | 128 | | |
| |||
319 | 318 | | |
320 | 319 | | |
321 | 320 | | |
322 | | - | |
323 | 321 | | |
324 | 322 | | |
325 | 323 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2290 | 2290 | | |
2291 | 2291 | | |
2292 | 2292 | | |
2293 | | - | |
2294 | 2293 | | |
2295 | | - | |
2296 | 2294 | | |
2297 | 2295 | | |
2298 | 2296 | | |
| |||
2363 | 2361 | | |
2364 | 2362 | | |
2365 | 2363 | | |
2366 | | - | |
2367 | 2364 | | |
2368 | 2365 | | |
2369 | 2366 | | |
| |||
2712 | 2709 | | |
2713 | 2710 | | |
2714 | 2711 | | |
2715 | | - | |
2716 | 2712 | | |
2717 | 2713 | | |
2718 | 2714 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| 54 | + | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
| |||
Lines changed: 125 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
| 48 | + | |
45 | 49 | | |
46 | 50 | | |
47 | 51 | | |
| |||
66 | 70 | | |
67 | 71 | | |
68 | 72 | | |
| 73 | + | |
| 74 | + | |
69 | 75 | | |
70 | 76 | | |
71 | 77 | | |
| |||
95 | 101 | | |
96 | 102 | | |
97 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
98 | 113 | | |
99 | 114 | | |
100 | 115 | | |
| |||
Lines changed: 140 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
0 commit comments