[ML] Functional tests - add UI permission tests#76368
Merged
pheyos merged 12 commits intoelastic:masterfrom Sep 4, 2020
Merged
[ML] Functional tests - add UI permission tests#76368pheyos merged 12 commits intoelastic:masterfrom
pheyos merged 12 commits intoelastic:masterfrom
Conversation
Contributor
|
Pinging @elastic/ml-ui (:ml) |
Member
Author
|
Checking test stability in a flaky test runner job ... => no failure in 50 runs ✔️ |
Contributor
peteharverson
left a comment
There was a problem hiding this comment.
Great stuff adding these permissions tests in! Just spotted a few minor text edits needed.
...cation/settings/filter_lists/components/delete_filter_list_modal/delete_filter_list_modal.js
Outdated
Show resolved
Hide resolved
Member
Author
|
@elasticmachine merge upstream |
qn895
approved these changes
Sep 3, 2020
Member
|
LGTM 👍 |
Member
Author
|
@elasticmachine merge upstream |
Contributor
💚 Build SucceededBuild metricsasync chunks size
History
To update your PR or re-run it, just comment with: |
pheyos
added a commit
to pheyos/kibana
that referenced
this pull request
Sep 4, 2020
This PR adds automated tests for ML UI permissions with both permission models (ES based and spaces based).
pheyos
added a commit
that referenced
this pull request
Sep 4, 2020
jloleysens
added a commit
to jloleysens/kibana
that referenced
this pull request
Sep 4, 2020
…rok/new-patterns-component-use-array * 'master' of github.com:elastic/kibana: (75 commits) Remove legacy ui-apps-mixin (elastic#76604) remove unused test_utils (elastic#76528) [ML] Functional tests - add UI permission tests (elastic#76368) [APM] @ts-error -> @ts-expect-error (elastic#76492) [APM] Avoid negative offset for error marker on timeline (elastic#76638) [Reporting] rename interfaces to align with task manager integration (elastic#76716) Revert back ESO migration for alerting, added try/catch logic to avoid failing Kibana on start (elastic#76220) Test reverting "Add plugin status API (elastic#75819)" (elastic#76707) [Security Solution][Detections] Removes ML Job Settings SIEM copy and fixes link to ML app for creating custom jobs (elastic#76595) [Maps] remove region/coordinate-maps visualizations from sample data (elastic#76399) [DOCS] Dashboard-first docs refresh (elastic#76194) Updated ServiceNow description in docs and actions management UI to contains correct info (elastic#76344) [DOCS] Identifies cloud settings in reporting (elastic#76691) [Security Solution] Refactor timeline details to use search strategy (elastic#75591) es-archiver: Drop invalid index settings, support --query flag (elastic#76522) [DOCS] Identifies graph settings available on cloud (elastic#76661) Add more info about a11y tests (elastic#76045) [data.search.SearchSource] Remove legacy ES client APIs. (elastic#75943) [release notes] automatically retry on Github API 5xx errors (elastic#76447) [es_ui_shared] Fix eslint exhaustive deps rule (elastic#76392) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds automated tests for ML UI permissions with both permission models (ES based and spaces based).
New users and groups
Add the following users with corresponding groups to the security setup:
ML_POWERUSER_SPACESML_VIEWER_SPACESML_UNAUTHORIZED_SPACESHigh level tests
For more details see test step descriptions.
For
ML_POWERUSER,ML_POWERUSER_SPACES,ML_VIEWERandML_VIEWER_SPACESwith no data loaded (empty ML lists)
with data loaded (jobs, calendars, filters present)
For
ML_UNAUTHORIZEDandML_UNAUTHORIZED_SPACES:Services
Besides methods that are added to existing services, there are now also the following new services available:
ml.dataFrameAnalyticsResultsml.overviewPageml.settingsCalendarml.settingsFilterListml.commonConfigNote, that
ml.commonConfigis currently only used by the tests created with this PR, but it is planned to extend this service and make other existing tests use it in a follow-up.Other changes