Commit graph

5017 commits

Author SHA1 Message Date
Kibana Machine
5592a15f88
Hotfix remove actions on update (#117910) (#118341)
* if actions array is empty in the rule update payload, remove the actions whether migrating or not

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

Co-authored-by: Devin W. Hurley <devin.hurley@elastic.co>
2021-11-11 12:02:39 -05:00
Kibana Machine
e0baae4cfa
[ML] Functional tests - add apm_transaction module tests (#115011) (#118370)
This PR adds/updates module recognizer and setup tests for the `apm_transaction` module as well as a corresponding esArchive.

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
2021-11-11 11:52:50 -05:00
Melissa Alvarez
b49687afe7
[ML] Data Frame Analytics list - ensure refresh works as expected (#117959) (#118365)
* move includes fields error below analysis table

* ensure analytics list refresh interval is respected

* check global state before overwriting timepicker interval setting

* ensure refreshInterval persists between tabs

* handle undefined globalState

* stabilize openMapView service method

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
2021-11-11 11:45:59 -05:00
Kibana Machine
67f7dddba2
[Security Solution] fix tests for unique policy names (#118248) (#118344)
Co-authored-by: Joey F. Poon <joey.poon@elastic.co>
2021-11-11 10:48:52 -05:00
Kibana Machine
a09d2a8c38
[SECURITY] Don't use link for the last breadcrumb in the navigation bar for Security/Spaces management apps (#118117) (#118350)
* fix last breadcrumb item to only be text

* commit using @elastic.co

* cleaner

* tests are coming ;)

* used my brain to simplify it

* fix types

* fix/add jest test

* fix lint + jest tests for spaces

* fix accessibality

Co-authored-by: Xavier Mouligneau <xavier.mouligneau@elastic.co>
2021-11-11 10:37:39 -05:00
Kibana Machine
9ac0a34f0a
[APM] Reinstate ML multi-metric job (#117836) (#118333)
Closes #101734.

This reverts commit 008421f.

Additionally, incorporate suggested changes from #101734 (comment).

Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2021-11-11 09:36:32 -05:00
Kibana Machine
cdafd322c7
[Actionable Observability] Add links to navigate from alerts table to rule (#118035) (#118301)
[Actionable Observability] Add links to navigate from alerts table and flyout to rule generate it

Co-authored-by: Ersin Erdal <92688503+ersin-erdal@users.noreply.github.com>
2021-11-11 05:53:45 -05:00
Yuliia Naumenko
01ec98c8f4
[8.0] [Alerting UI] Fixed bug Search is not reset in Create rule flyout (#117807) (#117892)
* [Alerting UI] Fixed bug Search is not reset in Create rule flyout (#117807)

* [Alerting UI] Fixed bug Search is not reset in Create rule flyout

* fixed types

* fixed test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-11 02:06:37 -05:00
spalger
f5e58cda92 skip flaky suite (#118272)
(cherry picked from commit a03e12bec0)
2021-11-10 20:44:08 -07:00
Kibana Machine
427bb03e83
[Security Solution][Endpoint][Admin][Policy] Fixes the endpoint version test on policy details (#118124) (#118269)
Co-authored-by: Candace Park <56409205+parkiino@users.noreply.github.com>
2021-11-10 20:37:54 -05:00
spalger
3ef6e42c46 skip suite failing es promotion (#118251)
(cherry picked from commit baa658f8a7)
2021-11-10 14:30:12 -07:00
Kibana Machine
2ed71ef050
chore: rename test subjects to camel case (#118046) (#118235)
* chore: rename test subjects to camel case

* chore: rename test subjects to camel case /2

* Updates expectations

* Restores files not in observability

* Fixes test subjects

* Fixes selector

* Fixes selector

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

Co-authored-by: Claudio Procida <claudio.procida@elastic.co>
2021-11-10 16:19:15 -05:00
Kibana Machine
eb600d4601
[CI] Rebalance/split cigroups and speed up overall CI time (#118191) (#118202)
Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
2021-11-10 13:26:12 -05:00
Tiago Costa
847b3cdc8a
skip flaky suites (#116064) 2021-11-10 13:14:16 +00:00
Tiago Costa
f3258c851e
skip flaky suite (#118023) 2021-11-10 02:24:51 +00:00
Kibana Machine
a922adde0e
API test for upstream services and service dependencies (#116722) (#118107)
Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
2021-11-09 18:42:13 -05:00
Kibana Machine
9991896b31
unskip copy to space test (#118005) (#118058)
Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
2021-11-09 20:16:37 +00:00
Kibana Machine
2d0eec656c
[Security Solution][Endpoint][Policy] Automate policy tests (#117741) (#118049)
Co-authored-by: Candace Park <56409205+parkiino@users.noreply.github.com>
2021-11-09 19:46:52 +00:00
Kibana Machine
90b3416c55
fix flaky x-pack/test/stack_functional_integration APM smoke test (#117250) (#117376)
* waitUntilLoadingHasFinished() and wait for table caption to be set

* just formatting change to make eslint happy

Co-authored-by: Lee Drengenberg <lee.drengenberg@elastic.co>
2021-11-09 19:42:12 +00:00
Kibana Machine
e80e837453
[Security Solution][RAC] Threshold Rule Fixes (#117571) (#118045)
* Remove unused code

* Fix threshold field refs

* Fix import

* UI fixes for Rules

* Threshold Cypress test fixes

* Type fixes

* Threshold signal test fixes

* Handle legacy schema optionally

* Fix threshold integration test

* More test fixes

Co-authored-by: Madison Caldwell <madison.rey.caldwell@gmail.com>
2021-11-09 19:18:12 +00:00
Kibana Machine
935197e2dc
[SecuritySolution][Detections] Fixes rule status migration when alertId is not a string (#117962) (#118038)
## Summary

Resolves https://github.com/elastic/kibana/issues/116423, and adds an e2e test catching this behavior as we can't test via the migration test harness since the `siem-detection-engine-rule-status` SO isn't exposed within the SO Manager UI.

Also adds note with regards to changes necessary once core issue https://github.com/elastic/kibana/issues/115153 is resolved. See https://github.com/elastic/kibana/pull/114585/files#r729620927. Note: existing `find_statuses`/`find_rules` integration tests will fail once fixed, so no additional tests necessary. 



### 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

Co-authored-by: Garrett Spong <spong@users.noreply.github.com>
2021-11-09 18:50:25 +00:00
Kibana Machine
52faf4cdec
[SECURITY] Remove flakiness on SpacesPopoverList renders a search box (#117888) (#118029)
* wip to figure out flakyness

* clean up

* fix types

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

Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
2021-11-09 18:10:20 +00:00
Kibana Machine
050ca4a64e
fix flaky test + bug (#117953) (#118031)
Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
2021-11-09 18:06:00 +00:00
Kibana Machine
a51efc9923
[Uptime] Ping redirects - add retry logic (#117363) (#118017)
* add retry logic and focus test

* unfocus tests

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

Co-authored-by: Dominique Clarke <doclarke71@gmail.com>
2021-11-09 16:29:01 +00:00
Kibana Machine
d850dbc47f
Always call forceLogout first in the test cleanup code. (#117555) (#117989)
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
2021-11-09 12:48:10 +00:00
Walter Rafelsberger
0863a7f3a1
[8.0] [ML] APM Correlations: Fix usage in load balancing/HA setups. (#115145) (#117979)
* [ML] APM Correlations: Fix usage in load balancing/HA setups. (#115145)

- The way we customized the use of search strategies caused issues with race conditions when multiple Kibana instances were used for load balancing. This PR migrates away from search strategies and uses regular APM API endpoints.
- The task that manages calling the sequence of queries to run the correlations analysis is now in a custom React hook (useFailedTransactionsCorrelations / useLatencyCorrelations) instead of a task on the Kibana server side. While they show up as new lines/files in the git diff, the code for the hooks is more or less a combination of the previous useSearchStrategy and the server side service files that managed queries and state.
- The consuming React UI components only needed minimal changes. The above mentioned hooks return the same data structure as the previously used useSearchStrategy. This also means functional UI tests didn't need any changes and should pass as is.
- API integration tests have been added for the individual new endpoints. The test files that were previously used for the search strategies are still there to simulate a full analysis run, the assertions for the resulting data have the same values, it's just the structure that had to be adapted.
- Previously all ES queries of the analysis were run sequentially. The new endpoints run ES queries in parallel where possible. Chunking is managed in the hooks on the client side.
- For now the endpoints use the standard current user's esClient. I tried to use the APM client, but it was missing a wrapper for the fieldCaps method and I ran into a problem when trying to construct a random_score query. Sticking to the esClient allowed to leave most of the functions that run the actual queries unchanged. If possible I'd like to pick this up in a follow up. All the endpoints still use withApmSpan() now though.
- The previous use of generators was also refactored away, as mentioned above, the queries are now run in parallel.
Because we might run up to hundreds of similar requests for correlation analysis, we don't want the analysis to fail if just a single query fails like we did in the previous search strategy based task. I created a util splitAllSettledPromises() to handle Promise.allSettled() and split the results and errors to make the handling easier. Better naming suggestions are welcome 😅 . A future improvement could be to not run individual queries but combine them into nested aggs or using msearch. That's out of scope for this PR though.

* [ML] Fix http client types.
2021-11-09 12:42:36 +00:00
Giorgos Bamparopoulos
7e560b39ee
[8.0] Add API tests for top dependencies (#116788) (#117886)
* Add API tests for top dependencies (#116788)

* Add top dependencies API tests

Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>
# Conflicts:
#	x-pack/test/apm_api_integration/tests/dependencies/metadata.spec.ts
#	x-pack/test/apm_api_integration/tests/index.ts

* Delete duplicate file
2021-11-09 11:36:35 +00:00
Tim Sullivan
b5021e1d02
[Reporting] Use non-deprecated csv_searchsource API in integration tests (#117456) (#117968)
* [Reporting] Use non-deprecated csv_searchsource API in integration tests

* update snapshot

* fix tests

* update usage tests

* test organization

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-09 06:24:26 +00:00
Tim Sullivan
d801c82276
[Reporting] Increase functional tests on feature priviliges (#117443) (#117896)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-09 06:24:00 +00:00
Yuliia Naumenko
2ca2788154
[Alerting UI] Actions menu with mute/unmute, disable/enable should be available for the rules with requiresAppContext (#117806) (#117965)
* [Alerting UI] Actions menu with mute/unmute, disable/enable sould be available for the rules with requiresAppContext

* fixed test

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-09 05:41:55 +00:00
Kibana Machine
18edc88695
[maps] fix layer flashes when query is updated in query bar for mvt layers (#117590) (#117938)
* [maps] fix layer flashes when query is updated in query bar for mvt layers

* remove unused services

* eslint

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

Co-authored-by: Nathan Reese <reese.nathan@gmail.com>
2021-11-08 23:25:40 +00:00
Kibana Machine
cb0625ed88
[SECURITY] Remove flakiness around edit user (#117558) (#117897)
* wip

* convert flaky jest test to functional test

* improvement from review

* fix

* fix i18n

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

Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
2021-11-08 21:40:01 +00:00
Kibana Machine
4da2eb9b6c
[QA][X Pack] Swap es archiver for kbn archiver - API Keys app (#102087) (#117355)
Drop all empty kibana calls

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

Co-authored-by: Tre <wayne.seymour@elastic.co>
2021-11-08 19:26:20 +00:00
Kibana Machine
a471656f04
[Lens] Unskips heatmap test suite & stabilizes the dimensionConfiguration helper (#117811) (#117894)
* [Lens] Unskips heatmap test suite

* Check if operation button exists

Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
2021-11-08 19:06:22 +00:00
Steph Milovic
2828a22b76
[8.0] [Security Solution] [Sourcerer] [Feature Branch] Update to use Kibana Data Views (#114806) (#117670)
* [Security Solution] [Sourcerer] [Feature Branch] Update to use Kibana Data Views  (#114806)

* fix type

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-08 19:01:10 +00:00
Kibana Machine
224affb111
[ML] Functional tests - add retries to custom URL service methods (#113749) (#117854)
This PR further stabilizes the custom URLs tests by adding additional retries to the `create*CustomUrl` service methods.

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
2021-11-08 16:17:11 +00:00
Kibana Machine
1b53bad936
[APM] Fix top dependencies tests (#117087) (#117850)
* Fix dependencies tests

Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>

Co-authored-by: Giorgos Bamparopoulos <georgios.bamparopoulos@elastic.co>
Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>
2021-11-08 15:35:44 +00:00
Tiago Costa
16b3523098
skip flaky suite (#117770) 2021-11-08 13:51:08 +00:00
Kibana Machine
ce95939aff
[RAC] Adding a dismiss button for the disclaimer experimental message on the alert page (#117283) (#117823)
* Add Eui button with i18n

* Add localStorage flag to ack the experimental message

* Handle the UI feedback

* Update the init state of useState, remove useEffect hook

* Add data-attribute for testing

* Add functional tests

* Fix test value

* get back to original tests order for o11y

* Update tests

* Update localStoreg with JSON.parse to avoid confusion

* Fix check type

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

Co-authored-by: Faisal Kanout <faisal@kanout.com>
2021-11-08 12:54:14 +00:00
Kibana Machine
a11ae4949e
[ML] Fixes for the Model Management table (#117293) (#117813)
* [ML] allocated models as a table

* [ML] handle fetching stats for stopped model

* [ML] change date formatter, enable check for start and stop action, change icon

* [ML] hide stats tab when not stats are available

* [ML] update state on action

* [ML] update memory breakdown message

* [ML] fix type

* [ML] fix functional test

* [ML] render nodes as links

* [ML] fix locator types

* [ML] support node name in the URL state

* [ML] update icon

* [ML] routing state with reason tooltip

* [ML] move experimental tag

* [ML] add state column, fix import

* [ML] update stats on aciton

* [ML] refresh by timer

* [ML] rename fetchStats callback

* [ML] replace with promise.all

* [ML] add deployment state const

Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
2021-11-08 10:54:24 +00:00
Brian Seeders
e6f391cc9b skip flaky suite (#89397) 2021-11-05 23:48:00 -04:00
Kibana Machine
dee5e0a924
api tests (#117723) (#117752)
Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
2021-11-06 00:28:06 +00:00
Kibana Machine
0b416a71dd
[ML] Add functional tests for Field statistics embeddable in Dashboard, check for filters (#116774) (#117746)
* [ML] Add functional tests for dashboard embeddable, filters

* [ML] Fix permissions

* [ML] Update tests to use bulk api

* [ML] Change to constants

* [ML] Fix savedSearchTitle

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

Co-authored-by: Quynh Nguyen <43350163+qn895@users.noreply.github.com>
2021-11-05 23:58:52 +00:00
Kibana Machine
9b7145f3e9
Adds functional test for Canvas saved object resolve scenarios (#117386) (#117717)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Corey Robertson <corey.robertson@elastic.co>
2021-11-05 20:13:47 +00:00
Kibana Machine
0957d5067c
[Maps] do not fail migration when JSON.parse fails (#117342) (#117707)
* [Maps] do not fail migration when JSON.parse fails

* review feedback, log warning on failed migration

* better test name

* eslint

* eslint xpack/plugins/maps

* more eslint

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

Co-authored-by: Nathan Reese <reese.nathan@gmail.com>
2021-11-05 19:31:17 +00:00
Kibana Machine
32f77064df
Consider all errors non-fatal during dry runs (#117594) (#117704)
Since we've enabled auto upgrades for some packages in 7.16, we need to
revert a previous change that only considered policy validation errors
non-fatal. Any error encountered during the dry-run/upgrade process
should be considered non-fatal so that users can still access the Fleet
UI if setup fails.

Fixes #116985

Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co>
2021-11-05 19:06:10 +00:00
Maja Grubic
19d2071d75
[Discover] [Value suggestion non-timebased functional test] Unskip (#115718) (#117694)
* [Discover] Add a retry in a value suggestion non timebased test

* Dismiss popover before Discover even loads

* Set local storage value in navigateToApp

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-05 18:37:07 +00:00
Kibana Machine
006840ed39
[x-pack/test/apm_api_integration] make registry a service (#116365) (#117688)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2021-11-05 18:32:11 +00:00
Kibana Machine
44fdcd67ad
[Cases] Fix cases navigation after attaching an alert to a case. (#117633) (#117675)
Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
2021-11-05 17:10:27 +00:00
Kibana Machine
f842adca01
[Reporting] Remove pdf-to-img (#117637) (#117661)
* remove use of pdf to png conversion checker in comparison test

* remove use of pdf-to-img use in compare images service

* remove pdf-to-img dep from kibana

Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
2021-11-05 16:29:56 +00:00