Commit graph

2252 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
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
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
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
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
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
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
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
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
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
Kibana Machine
8c822e7b29 skip failing test suite (#124747) 2022-02-08 21:39:16 -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
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
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
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
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
Tim Sullivan
7db42f23ef
[8.0] unskip reporting mgmt test (#122471) (#123317)
* unskip reporting mgmt test (#122471)

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

* fix test snapshots
2022-01-19 11:24:49 -07:00
Kibana Machine
ec0314bfda
[Connectors] Checking for undefined config and secrets during connector validation (#122696) (#123369)
* Checking for undefined config and secrets during connector validation

* Adding functional tests

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

Co-authored-by: ymao1 <ying.mao@elastic.co>
2022-01-19 09:10:13 -07:00
Tim Sullivan
f0b7f3bdcc
[reporting] update pdfmake node module (#121585) (#123293)
* [Reporting] Upgrade pdfmake module

* change pdf maker to integration test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 7e7319b007)
2022-01-18 14:15:41 -07:00
Jonathan Buttner
ec5cc62e94
[ResponseOps][Cases] Setting rule info to null for 8.0 (#123096)
* Setting rule information to null

* Addressing PR feedback

* Re-encoding new_value

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-01-18 15:15:28 -05:00
Tiago Costa
f18a1386a5
skip flaky suite (#118728) 2022-01-18 03:00:07 +00:00
Kibana Machine
3cd5f59ad3
[ML] Functional tests - stabilize transform wizard field input (#123126) (#123180)
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>
2022-01-17 11:43:49 -07:00
Kibana Machine
aa23b8d094
[Stack monitoring] logstash - read from correct aggregation (#122443) (#123149)
* add test-subj to pipeline viewer section

* pipeline viewer service

* clickPipeline

* pipeline viewer_mb test

* lint

* lint

* update component snapshot

* fix get_pipeline bucket selection

* align metricbeat pipeline data with internal monitoring

* collect filters

* fix pipeline viewer test

* clean logstash_pipelines_mb archive

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

Co-authored-by: Kevin Lacabane <klacabane@gmail.com>
2022-01-17 07:13:21 -07:00
Tim Sullivan
29165d5414
[8.0] [Screenshotting] Add functional test for report generation of dashboard with Maps embeddable (#122887) (#123008)
* [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
2022-01-14 11:52:32 -07:00
Kibana Machine
6af7d0120f
[ML] Functional tests - stabilize data frame analytics creation (#123025) (#123056)
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>
2022-01-14 09:13:19 -07:00
Kibana Machine
7abc9e95e2
[share] Fix url redirect in custom space (#122787) (#123043)
(cherry picked from commit 00bb22a8d7)

Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
2022-01-14 17:02:48 +01:00
Kibana Machine
ca31b15f6d
[UA] Fix a11y test (#122539) (#122923)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit cce8091d5c)

Co-authored-by: Yulia Čech <6585477+yuliacech@users.noreply.github.com>
2022-01-13 05:54:37 -07:00
Kibana Machine
65f984c669
[ML] Functional tests - stop re-using saved objects (#122669) (#122761)
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>
2022-01-12 06:43:34 -07:00
Kibana Machine
9830506c4d
[Stack Monitoring] Attempt to stabilize ES node sorting tests (#122383) (#122671)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 7974e31c63)

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2022-01-12 05:24:39 -07:00
Madison Caldwell
ef1b80f43e
[8.0] [Security Solution] Disable legacy rules on upgrade to 8.x (#121442) (#122695)
* [Security Solution] Disable legacy rules on upgrade to 8.x (#121442)

* Disable legacy rule and notify user to upgrade

* Ensure rules are disabled on upgrade

* Fix dupe detection on upgrade

* Revert "Fix dupe detection on upgrade"

This reverts commit 021ec0fac4.

* Add legacy notification

* Add tests for 8.0 security_solution rule migration

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

# Conflicts:
#	x-pack/plugins/alerting/server/saved_objects/migrations.ts
#	x-pack/plugins/security_solution/server/lib/detection_engine/signals/signal_rule_alert_type.ts
#	x-pack/plugins/security_solution/server/plugin.ts

* RawRule should be RawAlert in 8.0
2022-01-11 14:53:27 -07:00
Tiago Costa
470aeeee0f
skip flaky suite (#122137) 2022-01-11 13:49:14 +00:00
Kibana Machine
bff8b5cb9b
Cleaning up after DLS functional tests. (#122426) (#122628)
(cherry picked from commit 2ba281b8aa)

Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
2022-01-11 03:16:31 -07:00
Kibana Machine
0277ab63dd
Fix import_saved_objects_between_versions.ts FTR test (#122243) (#122553)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 389a87d036)

Co-authored-by: Pierre Gayvallet <pierre.gayvallet@elastic.co>
2022-01-10 09:54:36 -07:00
Kibana Machine
255260ff3c
[Lens] Wait for vis before asserting (#122333) (#122512)
(cherry picked from commit 25f4d0cc0b)

Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2022-01-10 03:59:22 -07:00
Tim Sullivan
eb4bfd012f
[8.0] [Reporting] Fix TypeError in CSV export (#121697) (#122451)
* [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
2022-01-06 16:37:08 -07:00
Chris Cowan
fad037def2
[Metrics UI] Honor time unit for Inventory Threshold (#122294) (#122444)
* [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>
2022-01-06 10:44:43 -07:00
Tim Sullivan
a5f31842e3
[8.0] [Reporting] Unskip Flaky Dashboard > Download CSV test (#121914) (#122304)
* [Reporting] Unskip Flaky Dashboard > Download CSV test (#121914)

* [Reporting] Unskip Flaky Dashboard > Download CSV test

* restructure tests

* back to ecommerce

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

* fix archive doc migration version

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-01-05 13:19:01 -07:00
Kevin Lacabane
e65414950d
[8.0] Stack monitoring - logstash 8.0 metricbeat standalone compatibility (#122177) (#122345)
* Stack monitoring - logstash 8.0 metricbeat standalone compatibility  (#122177)

* use node_stats metricset filter

* fix pipeline dropdown redirection

* add get_pipeline metricbeat aggregation

* add get_pipeline_vertex metricbeat aggregation

* update logstash metricbeat archived data

* merge_pipeline_versions

* type parameter

* use datastream for mb functional tests

* fix metricbeat apis tests

* lint

* lint

* lint

* fix multicluster api test

* lint

* fix singlecluster_green_gold_mb tests

* lint

* add test case

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/monitoring/server/lib/logstash/get_logstash_for_clusters.ts

* remove bluebird import
2022-01-05 10:07:22 -07:00
Kibana Machine
4b2c69ef50
[ML] Functional tests - stabilize anomaly explorer tests (#122247) (#122317)
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>
2022-01-05 04:06:43 -07:00
Kibana Machine
6f97f07cbc
[Security Solution] [Platform] Migrate pre-8.0 action connector ids in rule params on import to post-8.0 _id (#120975) (#122302)
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>
2022-01-04 17:55:06 -07:00
Kibana Machine
f882402f84
[maps] fix x-pack/test/functional/apps/maps/documents_source/top_hits.js test (#122276) (#122286)
* [maps] fix x-pack/test/functional/apps/maps/documents_source/top_hits·js test

* eslint

Co-authored-by: Nathan Reese <reese.nathan@gmail.com>
2022-01-04 12:50:48 -07:00
Kibana Machine
2dc83cd2fe
[Metrics UI] Stabilize group header functional test (#122169) (#122279)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2022-01-04 11:43:58 -07:00
Kibana Machine
ebc78ca55f
Stack monitoring - update standalone cluster query for metricbeat 8.0 (#122007) (#122219)
* use event.dataset property as filter for standalone query

* add standalone cluster listing functional test

* add metricbeat standalone cluster listing functional test

* lint

* lint

* update logstash datasets for standalone query

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kevin Lacabane <klacabane@gmail.com>
2022-01-03 10:24:47 -07:00
Kibana Machine
336963cebf
fix kibana metricsets property paths (#122034) (#122188)
* fix kibana metricsets property paths

* return inner kibana object

* fix functional test

* rename

* adapt tests to datastream

* rebuild archived data

* extract buildKibanaInfo for reuse

* add license

* lint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kevin Lacabane <klacabane@gmail.com>
2022-01-03 09:49:14 -07:00