* [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
* Workaround for reporting url too long
* Use quick save
(cherry picked from commit c4ce95e292)
Co-authored-by: liza-mae <liza-mae@users.noreply.github.com>
* 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)
* [Metrics UI] Increase composite size for Metric Threshold Rule to 10K
* Adding performance optimizations
* Fixing metrics_alerting integration test
* fixing tests
* Fixing integration test and config mock
* Removing the setTimeout code to simplify to a for/of
* Adding new setting to docs
* Adding metric_threshold identifier to the config setting
(cherry picked from commit ae0c8d5ecb)
# Conflicts:
# x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/evaluate_rule.ts
* [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>
* ExecutionContext: encode all context fields when converting to header value
* switch back to using the vis type name instead of title for the execution context name
* adapt FTR tests
* fix server-side tests too
(cherry picked from commit d047765c8b)
Co-authored-by: Pierre Gayvallet <pierre.gayvallet@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>
* [Fleet] Avoid breaking setup when compatible package is not available in registry (#125525)
(cherry picked from commit 928638e395)
* [Fleet] Use registry version check on main (#125495)
* [Fleet] Get package info should not store the whole package (#123509)
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@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>
## Summary
Fixes https://github.com/elastic/kibana/issues/125319
Reduces timeouts from 10 minutes per test down to 2 minutes and changes log.error to log.debug to avoid spamming
I test this by making a failing test here:
```
x-pack/test/detection_engine_api_integration/security_and_spaces/tests/aliases.ts
```
By increasing `await waitForSignalsToBePresent(supertest, log, 4, [id]);` from `4` to `5`....Then I watched the logs and timed it to ensure it doesn't take 2 minutes.
I did this by running the server:
```sh
node scripts/functional_tests_server.js --config test/detection_engine_api_integration/security_and_spaces/config.ts
```
And then running the client:
```sh
node scripts/functional_test_runner.js --config test/detection_engine_api_integration/security_and_spaces/config.ts --include test/detection_engine_api_integration/security_and_spaces/tests/aliases.ts
```
If we start to see flake again on the regular build servers we might have to slightly increase this number again. If this doesn't allow failing servers to fully complete we might need to also decrease this number further or we might need to make this more configurable.
### Checklist
Delete any items that are not applicable to this PR.
- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
(cherry picked from commit 6d88579a50)
Co-authored-by: Frank Hassanabad <frank.hassanabad@elastic.co>
* [maps] fix Can not style by date time with vector tiles
* eslint
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit cd7618eeca)
# Conflicts:
# x-pack/plugins/maps/server/mvt/get_tile.ts
* [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 fixes the jobs_summary API tests for the `7.latest ES 8.1 forward compatibility` scenario by making it only check expected fields in the response body and ignore additional fields that are coming from the newer ES version.
(cherry picked from commit 13e7c8a1e2)
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>
* change test to match current message when decryption fails
* fix lint error
* update message for newest message
* lint
(cherry picked from commit f209677286)
Co-authored-by: Lee Drengenberg <lee.drengenberg@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