* [RAM] Fix bulk action for o11y for 7.17 (#126686)
* fix bulk action for o11y
* review I
* discuss it more with Devin
* clean up
(cherry picked from commit 8f277d4677)
* fix es client
* fix function
* Migrated Snapshot and Restore tests to use test user.
* added another permission to address unauthorized failure.
* Added metadata perms for kibana administration.
* Testing out different permissions.
* Edited test to not refresh page after role is set. Causing errors.
* Adjusted perms per documentation.
* Addded link to the documentation specifying the permissions needed for snapshot restore.
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit d746bd4c5f)
* [Security Solution][Upgrade] Add tag for disabled rules on upgrade (#125448)
* Add tag for disabled rules on upgrade
* Resiliency
* Restore 8.0 AAD migration and add 8.0.1 migration for auto-disabled tags
* Add integration test for migration
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 8f03c791e0)
* Rename RawRule to RawAlert
Co-authored-by: Madison Caldwell <madison.caldwell@elastic.co>
- Previously, a bug with how the form state would handle retention policy and populating the field select, a user could be blocked from setting the field or the form state wouldn't pick up the initial setting.
- This is now fixed by setting hasNoInitialSelection to reflect the form set. If no retention policy had been set previously, the select dropdown will be empty until the user does a selection (which will then correctly update the to be updated transform config).
- Functional tests have been updated to fail reflect the change and fail without the fix.
- Fixed a cloning issue: When loading the wizard it didn't pick up the retention policy value provided by the config to be cloned but always fell back to the first available date field.
(cherry picked from commit 1ecb42bf01)
* [Dashboard] Transfer state when drilldown is opened in a new tab (#124770)
* Translate dashboard state to URL conditionally
* Add functional tests
* Fix typo in functional test descriptions
* Remove deprecated references
* Rename useUrl to be more specific
(cherry picked from commit 17a997cccb)
# Conflicts:
# src/plugins/dashboard/public/index.ts
* Fix lint
* remove es_archive with kbn_archive invalid_scripted_field.json
* remove unused es_archive files
* replace another usage of es_archives/invalid_scripted_field
* clear any existing index patterns before loading our new one
* remove .only
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 4319ea80a4)
Co-authored-by: Lee Drengenberg <lee.drengenberg@elastic.co>
* Add integration tests for alerts-on-legacy-alerts
* Remove query rule tests from prior location - they were moved
* Remove 'kibana' field from alerts on legacy alerts
* Fix tests
* Delete alerts before proceeding from compatibility tests
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 7d186f945b)
Co-authored-by: Madison Caldwell <madison.caldwell@elastic.co>
* [ML] Functional tests - always refresh job list before filtering (#123195)
This PR stabilizes tests that are filtering the anomaly detection job list by making sure the list is always refreshed before filtering.
(cherry picked from commit a3359b7d15)
# Conflicts:
# x-pack/test/functional/apps/ml/stack_management_jobs/import_jobs.ts
* Fix backport merge issues
* Fix backport merge issues - part 2
This PR fixes the functional test runner for execution against cloud (and other existing deployments) by making sure the system_indices_superuser exists.
(cherry picked from commit 8989ead2d6)
# Conflicts:
# x-pack/test/rule_registry/common/services/cluster_client.ts
This PR stabilizes the date nanos job and categorization job tests for cloud execution by reducing the job run time.
(cherry picked from commit 4f1d97a908)
Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
* [Uptime] Update functional test directory to use a pinned version of package registry via docker (#117736)
* update functional test directory to use a pinned version of package registry via docker
* remove console log
* adjust config
* skip synthetics tests if no docker image
* remove extra configs
* move synthetics tests to a different directory
* update tests
* update tests
* remove duplicate tests
* update helpers
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
# x-pack/test/functional_synthetics/apps/uptime/synthetics_integration.ts
* Update x-pack/test/functional_synthetics/apps/uptime/synthetics_integration.ts
This PR stabilizes the transform wizard field input during functional tests by changing to the more stable setValueWithChecks service method that we're already using for many ML wizard fields.
(cherry picked from commit 7f15eaad65)
Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
* [Screenshotting] Add functional test for report generation of dashboard with Maps embeddable (#122887)
* [Screenshotting] Add functional test for report with Maps embeddable
* make checkIfPngsMatch shareable
* add baseline file
* add functional test with new map saved object
* add .gitignore
* file structure corrections
* add ciGroup to test
* revert unintentional change
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit fddd1aafb4)
* update layerListJSON for map
This PR stabilizes the data frame analytics creation during functional tests.
(cherry picked from commit 036223ba5e)
Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
This PR stabilizes tests that use saved searches be removing the re-use of saved objects from all ML + TFM tests.
(cherry picked from commit 25e26c6b6f)
Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
* [Reporting] Fix TypeError in CSV export (#121697)
* [Reporting] Fix TypeError in CSV export
* functional test for sparse data csv export
* make the test functional
* silly
* fix async
* fix tests
* Update x-pack/test/functional/apps/discover/reporting.ts
Co-authored-by: Michael Dokolin <dokmic@gmail.com>
* fix
* revert empty array map in test
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Michael Dokolin <dokmic@gmail.com>
(cherry picked from commit 5070b9fd03)
* fix migration version in archives
* [Metrics UI] Honor time unit for Inventory Threshold
* Adding tests
* fixing the threshold on the tests
* Update x-pack/test/api_integration/apis/metrics_ui/constants.ts
Co-authored-by: Claudio Procida <claudio.procida@gmail.com>
* fixing double quotes
* moving the conversion into the code
Co-authored-by: Claudio Procida <claudio.procida@gmail.com>
Co-authored-by: Claudio Procida <claudio.procida@gmail.com>
This PR stabilizes the anomaly explorer tests for adding a swim lane to a dashboard by validating the dashboard table row count after filtering.
Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
Security Solution import route needed to find actions where the action SO id was the old, pre-8.0 _id so we find references to the _id and the originId to make sure the rule we are importing will not error out.
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Devin W. Hurley <devin.hurley@elastic.co>