Commit graph

5017 commits

Author SHA1 Message Date
Tiago Costa
8d14697d86
skip flaky suite (#119770) 2022-03-14 13:55:58 +00:00
Kibana Machine
1765d1dea3
Hide Enterprise search panel when no nodes are present (#127100) (#127114)
(cherry picked from commit fc3aedcf78)

Co-authored-by: Mat Schaffer <mat@elastic.co>
2022-03-08 02:31:56 -07:00
Xavier Mouligneau
c058d822bc
[8.0] [RAM] Fix bulk action for o11y for 7.17 (#126686) (#126854)
* [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
2022-03-04 08:43:23 -07:00
Kibana Machine
418552b83d
Skip apm overview tests on cloud (#126877) (#126889)
(cherry picked from commit 6c0526b67c)

Co-authored-by: Mat Schaffer <mat@elastic.co>
2022-03-04 02:55:53 -07:00
Kibana Machine
104b760cf7
[functional/security/test-user] remove naked boolean (#126652) (#126807)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit be1028c345)

Co-authored-by: Spencer <spencer@elastic.co>
2022-03-03 10:27:00 -07:00
Christos Nasikas
44c3fb380b
[Cases] Fix bug when pushing a case and the closure option is set to automatic (#126705) (#126782)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 0c806e9e41)

# Conflicts:
#	x-pack/plugins/cases/server/client/cases/push.ts
2022-03-03 09:48:10 -07:00
Kibana Machine
d888a60c25
Workaround for reporting url too long (#126552) (#126644)
* 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>
2022-03-01 15:23:32 -07:00
John Dorlus
c587eb8b3f
Migrated Snapshot and Restore tests to use test user (#126011) (#126638)
* 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)
2022-03-01 14:52:48 -07:00
Kibana Machine
9fe7fb1abe
Revert "[Stack Monitoring] api_integration - Ignore logs section of index detail api" (#126559) (#126583)
(cherry picked from commit aafb7be138)

Co-authored-by: Mat Schaffer <mat@elastic.co>
2022-03-01 07:42:35 -07:00
Chris Cowan
599f75a481
[Metrics UI] Increase composite size to 10K for Metric Threshold Rule and optimize processing (#121904) (#126506)
* [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
2022-02-28 13:47:57 -07:00
Tiago Costa
633934ed32
skip flakt suite (#124413 #122838) 2022-02-28 13:54:16 +00:00
Kibana Machine
7640b5dbef
[Stack Monitoring] api_integration - Ignore logs section of index detail api (#126427) (#126436)
(cherry picked from commit 5ec3206bf8)

Co-authored-by: Mat Schaffer <mat@elastic.co>
2022-02-28 04:38:17 -07:00
Dominique Clarke
9674c7f0a1
Synthetics functional tests - Query for experimental packages (#126281) 2022-02-24 11:31:33 -05:00
Lee Drengenberg
d5dd05605e
fix merge issue (#126178) 2022-02-22 12:51:14 -07:00
Kibana Machine
9107a6d117
[Dashboard] Fix time range and filter state comparisons for dashboard-to-dashboard drilldowns (#124278) (#126175)
* Remove deprecated references.

* Add timeRange to DashboardState and timeRestore to DashboardContainerInput

* Ignore filters.$state during dashboard diff

* Undo remove deprecated references.

* Conditionally exclude filter state from comparison

* Inject filter.$state for context filters

* Trigger apply filters

* Add save to functional tests

* Remove unused variable

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 6f1a963d1d)

Co-authored-by: Hannah Mudge <Heenawter@users.noreply.github.com>
2022-02-22 12:01:59 -07:00
Bhavya RM
758a776458
removing a skipped test comment and unskipping security login test (#125798) (#126128)
(cherry picked from commit 0e83465303)
2022-02-22 03:17:06 -07:00
Kibana Machine
e60cd94587
[8.0] [Security Solution][Upgrade] Add tag for disabled rules on upgrade (#125448) (#125894)
* [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>
2022-02-17 10:36:41 -07:00
Kibana Machine
1fd2f21b17
ExecutionContext: encode all context fields when converting to header (#125783) (#125925)
* 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>
2022-02-17 07:14:45 -07:00
Walter Rafelsberger
f41c1b4980
[ML] Transforms: Fix editing retention policy without default value. (#123450) (#125926)
- 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)
2022-02-17 06:48:51 -07:00
Yulia Čech
ade71c13ca
[8.0] [Snapshot & Restore] Fix repository types on Cloud (#125656) (#125835)
* [Snapshot & Restore] Fix repository types on Cloud (#125656)

* [Snapshot & Restore] Fix repository types on Cloud

* [Snapshot & Restore] Move repo types tests into `on-prem` describe block

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 37dfc22c1a)

# Conflicts:
#	x-pack/plugins/snapshot_restore/server/routes/api/repositories.test.ts
#	x-pack/plugins/snapshot_restore/server/routes/api/repositories.ts

* [Snapshot & Restore] Fix linting issue
2022-02-17 05:26:34 -07:00
Nathan Reese
2c775e32a0
[8.0] [maps] fix Dashboards with by-value maps are broken when copied to new space (#125599) (#125887)
* merge with main

* update expect
2022-02-16 20:46:05 -07:00
Hannah Mudge
a1a5b914fb
[8.0] [Dashboard] Transfer state when drilldown is opened in a new tab (#124770) (#125740)
* [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
2022-02-16 11:06:23 -07:00
Kibana Machine
09250a76f2
[Archive Migration] replace es_archive with kbn_archive invalid_scripted_field.json (#125321) (#125814)
* 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>
2022-02-16 10:37:27 -07:00
Kibana Machine
91ee460a0a
[Security Solution][Lists] - Fix exception list with comments import bug (#124909) (#125808)
### Summary

Addresses https://github.com/elastic/kibana/issues/124742

#### Issue TLDR
Import of rules that reference exception items with comments fail. Failure message states that comments cannot include `created_at`, `created_by`, `id`.

(cherry picked from commit f894d8673b)

Co-authored-by: Yara Tercero <yctercero@users.noreply.github.com>
2022-02-16 10:21:02 -07:00
Kibana Machine
226be06574
[8.0] [Fleet] Avoid breaking setup when compatible package is not available in registry (#125525) (#125672)
* [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>
2022-02-16 05:41:23 -07:00
Liza Katz
38c6c85855
[8.0] Reverse parent child context relationship (#125486) (#125670)
* Reverse parent child context relationship (#125486)

* reverse parent child context relationship

* bad merge

* ts

* ts

* fix jest

* try unblocking flaky test

* doc

(cherry picked from commit 724e3b2ebf)

# Conflicts:
#	docs/user/troubleshooting/trace-query.asciidoc
#	src/plugins/discover/public/embeddable/saved_search_embeddable.tsx
#	src/plugins/visualizations/public/embeddable/visualize_embeddable.tsx
#	x-pack/plugins/lens/public/embeddable/embeddable.tsx

* backport fixes

* ts

* skip

* es
2022-02-16 04:14:52 -07:00
Kibana Machine
9f64458e3c skip failing test suite (#125455) 2022-02-16 00:17:36 -05:00
Kibana Machine
fba6713de8
[Security Solution] Upgrade tests for DE rule types - alerts on legacy alerts (#125331) (#125709)
* 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>
2022-02-15 13:51:21 -07:00
Patryk Kopyciński
6d001e4d58
[8.0] [Osquery] Fix infinite loop (#124332) (#125615)
* [Osquery] Fix infinite loop (#124332)

Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
(cherry picked from commit 1f4a7d4d72)

# Conflicts:
#	x-pack/plugins/osquery/public/packs/queries/query_flyout.tsx
#	x-pack/test/osquery_cypress/artifact_manager.ts

* Update index.tsx

* fix

* fix

Co-authored-by: Tomasz Ciecierski <tomasz.ciecierski@elastic.co>
2022-02-15 13:18:30 -07:00
Dima Arnautov
bd277583e7
[8.0] [ML] Fix flaky Trained Models tests (#125484) (#125623)
* [ML] Fix flaky Trained Models tests  (#125484)

* add extra assertion

* prevent extra call on init

* fix stats call

(cherry picked from commit b51c87f24c)

# Conflicts:
#	x-pack/test/functional/services/ml/common_ui.ts
#	x-pack/test/functional/services/ml/index.ts

* update refresh button check
2022-02-15 08:36:32 -07:00
Kibana Machine
2d01f48b78
Reduces timeouts from 10 minutes per test down to 2 minutes and changes one log.error to log.debug to avoid spamming cloud servers (#125432) (#125441)
## 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>
2022-02-11 15:11:20 -07:00
Kibana Machine
466ad82d4d
Add origin conflict checks when resolving import errors (#125241) (#125435)
(cherry picked from commit 5629decd9e)

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2022-02-11 13:41:48 -07:00
Kibana Machine
8381a82d64
[ML] Fix Trained Model stats and pipelines tab (#125382) (#125421)
(cherry picked from commit 67fb388acd)

Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
2022-02-11 12:34:19 -07:00
Alison Goryachev
10e01709ec
[Upgrade Assistant] Add warning when remote clusters are configured (#125138) (#125296) (#125369) 2022-02-11 07:35:00 -07:00
Kibana Machine
8c822e7b29 skip failing test suite (#124747) 2022-02-08 21:39:16 -05:00
Madison Caldwell
ed37a15ec1
Filter out 'signal.*' fields to prevent alias clashes (#124410)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-07 16:07:54 -05:00
Yulia Čech
3c15a5d44b
[ILM] Fixed failed functional tests on Cloud (#123202) (#124829)
* [ILM] Fixed functional test failures on Cloud

* [Upgrade Assistant] Fixed functional test failures on Cloud
2022-02-07 09:30:47 -07:00
Nathan Reese
96690d98c1
[maps] fix Can not style by date time with vector tiles (#124530) (#124741)
* [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
2022-02-04 12:56:12 -07:00
Robert Oskamp
53c0e362bc
[8.0] [ML] Functional tests - always refresh job list before filtering (#123195) (#124684)
* [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
2022-02-04 08:27:31 -07:00
Robert Oskamp
b92f3ee293
Functional test runner creates system_indices_superuser (#124008) (#124669)
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
2022-02-04 05:08:15 -07:00
Alison Goryachev
150a813e2c
[Index Management] Fix cluster_nodes API test (#124224) 2022-02-01 07:34:16 -07:00
Kibana Machine
cb96f704e4
[Lens] Stabilize drag and drop test (#124007) (#124101)
(cherry picked from commit bc74ed2c5b)

Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2022-01-31 05:45:49 -07:00
Robert Oskamp
8f8b91e8ce
[ML] Functional tests - only check expected fields in jobs_summary response (#123939) (#124022)
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)
2022-01-28 15:31:52 +01:00
Lukas Olson
fc23293a11
Unskip search api tests (#123145) (#123958)
(cherry picked from commit d84a5df7bd)

Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
2022-01-27 12:07:53 -07:00
Alison Goryachev
c5263b2ece
[8.0] [Upgrade Assistant] Fix deprecated index settings resolution (#123599) (#123763) (#123921)
* [Upgrade Assistant] Fix deprecated index settings resolution (#123599) (#123763)

(cherry picked from commit c5fa8e2be4)

* fix TS
2022-01-27 12:03:03 -07:00
Kibana Machine
8ea0e64f94
[ML] Functional tests - reduce job run time in date nanos and categorization tests (#123899) (#123930)
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>
2022-01-27 08:31:25 -07:00
Alison Goryachev
2d12a9dbeb
[Upgrade Assistant] Avoid creating the new index if it already exists when reindexing (#123817) (#123865) (#123922)
(cherry picked from commit 481fb8f536)
2022-01-27 07:42:47 -07:00
Marius Dragomir
51e7754975
change test to match current message when decryption fails (#122224) (#123893)
* 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>
2022-01-27 03:03:03 -07:00
Felix Stürmer
6526772365
[Infra UI] Avoid eager async imports in metric alert registrations (#123285) (#123868)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 629c602a67)

# Conflicts:
#	x-pack/plugins/infra/public/alerting/inventory/components/expression.tsx
#	x-pack/plugins/infra/public/alerting/inventory/components/metric.tsx
#	x-pack/plugins/infra/public/alerting/metric_anomaly/components/expression.tsx
#	x-pack/plugins/infra/public/alerting/metric_threshold/components/expression.tsx
#	x-pack/plugins/infra/public/alerting/metric_threshold/components/expression_row.tsx
#	x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/evaluate_condition.ts
#	x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/calculate_from_based_on_metric.ts
#	x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/evaluate_rule.ts
#	x-pack/plugins/infra/server/lib/alerting/metric_threshold/register_metric_threshold_rule_type.ts
#	x-pack/test/api_integration/apis/metrics_ui/inventory_threshold_alert.ts
2022-01-26 13:36:42 -07:00
Dominique Clarke
dee9010e62
[8.0] [Uptime] Update functional test directory to use a pinned version of package registry via docker (#117736) (#123823)
* [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
2022-01-26 09:10:49 -07:00