Commit graph

2252 commits

Author SHA1 Message Date
Kibana Machine
91779ec7e4 skip failing test suite (#106650) 2021-12-29 10:42:41 -05:00
Jonathan Budzenski
081fd3267d Revert "[ftr] Tag dashboard pdf and csv generation as smoke tests (#121328)"
This reverts commit d4fab0abae.
2021-12-28 09:28:32 -06:00
spalger
de7bb6d392 skip flaky suite (#118584)
(cherry picked from commit 6b7f3df72c)
2021-12-28 08:43:56 -06:00
Kibana Machine
5192b8f12c
[Stack Monitoring] Attempt to stabilize test for logstash and elasticsearch (#121546) (#122033)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2021-12-27 12:28:16 -07:00
Brian Seeders
5776199294 skip flaky suite (#121968) 2021-12-26 15:12:10 -05:00
Kibana Machine
cf37e5a4ae
[Stack monitoring] adapt ES queries to updated document structure (#121641) (#121949)
* adapt ES queries to updated document structure

* lint

* Revert "lint"

This reverts commit 2ad61e406c.

* Revert "adapt ES queries to updated document structure"

This reverts commit 25d4357dd2.

* fix cluster state property accesses

* only query index_recovery with ecs compliant indices

* lint

* setup/teardown to support datastreams

* lint

* update _mb archived data to target .monitoring index

* load archive with useCreate for datastream compatibility

* Revert "update _mb archived data to target .monitoring index"

This reverts commit 7bad361fd1.

* ignore non-elasticsearch archived documents

* Revert "ignore non-elasticsearch archived documents"

This reverts commit 26daeb7066.

* use correct index for archived documents

* add datastream lifecycle helper for api-integration tests

* use datastream lifecycle methods

* transform ccr_mb archive

* clean up datastreams

* lint

* load _mb data

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

Co-authored-by: Kevin Lacabane <klacabane@gmail.com>
2021-12-23 05:45:16 -07:00
Kibana Machine
9a529e482c
[Telemetry] Ensure refreshCache: true in tests and helpers (#121913) (#121941)
Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
2021-12-23 03:26:50 -07:00
Catherine Liu
534acbd32f
[Canvas] Functional tests for embeddables (#120024) (#121929)
* Adds embeddable functional tests for Canvas

* Add saved search tests

* Fixed saved search tests

* Added lens tests

* Fix test user permissions for saved search tests

* Added visualize and maps tests

* Revert change to saved object finder

* Fix imports

* Remove unused i18n labels

* Fix ts errors

* Fixed lens test descriptions
2021-12-22 20:47:34 -07:00
Kibana Machine
b49fae46eb
Fix flaky SO import FTR test (#121765) (#121849)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Pierre Gayvallet <pierre.gayvallet@elastic.co>
2021-12-22 02:49:05 -07:00
Tim Sullivan
87c792e432
[Reporting] Ensure correct data view is selected for all test (#121687) (#121717)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-20 17:36:32 -07:00
Kibana Machine
b606417ae5
[8.0] [Usage collection] Update bulkFetch logic (#121437) (#121665)
* [Usage collection] Update bulkFetch logic (#121437)

* Update collector_set.ts

Co-authored-by: Ahmad Bamieh <ahmadbamieh@gmail.com>
2021-12-20 14:25:30 -07:00
Hannah Mudge
1fc3b5a3a5
[Dashboard] Fix blank panel save and display issue. (#120815) (#121660)
* Added special case to panel comparison.

* Fixed panel title behaviour when linking/unlinking to/from the library.

* Added panel title test suite.

* Made the injection of the 'savedSearchId' key conditional on if it is defined when unlinking.

* Adjusted use of 'setValue()' based on feedback from @dmlemeshko

* Refractor test suite.

* Improved code for removal of title on library link.
# Conflicts:
#	src/plugins/embeddable/public/lib/attribute_service/attribute_service.tsx
2021-12-20 10:50:21 -07:00
Kibana Machine
381dc13b93
[ML] Add initial docs screenshot generation (#121495) (#121645)
This PR utilizes the functional test runner to walk through the UI and take a couple screenshots for use in the documentation.

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
2021-12-20 09:03:31 -07:00
Tiago Costa
8406b9aa88
skip flaky suites (#121172) 2021-12-20 14:06:51 +00:00
Kibana Machine
b95154fae8
Fixing a skipped Maps functional test (../x-pack/test/functional/apps/maps/layer_errors.js) (#121362) (#121578)
* fixing the skipped tests in layers_errors file, correcting the error message

* cleanup

* added a comment for the skipped test

* review comments incorporated

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

Co-authored-by: Rashmi Kulkarni <rashmi.kulkarni@elastic.co>
2021-12-17 16:29:13 -07:00
Brian Seeders
06539478f6 skip flaky suite (#116058) 2021-12-17 17:18:17 -05:00
Kibana Machine
679edf186a
[ftr] Tag dashboard pdf and csv generation as smoke tests (#121328) (#121569)
The smoke tag is used in package testing to test kibana and associated
binaries.  Reporting spawns a chromium process, so it's a good candidate
for package testing.

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

Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
2021-12-17 14:47:23 -07:00
Pierre Gayvallet
05adfe9bd1
Fix import_saved_objects_between_versions FTR test (#121498) (#121561) 2021-12-17 13:35:11 -07:00
Kibana Machine
e8bf5e4322
Migrated ILM Tests to Use test_user (#121262) (#121359)
* Updated ILM tests to use test user and updated permissions.

* Updated security tests to check for Advanced Settings in the navigatio pane since we added it to the Kibana permissions.

Co-authored-by: John Dorlus <silne.dorlus@elastic.co>
2021-12-15 17:18:14 -07:00
Faisal Kanout
46b07f178b
[RAC] Show all alerts, not only "open" workflow status, and remove Workflow filter related logic and clean up the code (#120231) (#121281)
* Remove comments

* Remove workflow code from Alert page and make currentFilter in t grid optional

* Remove workflow props for AlertsTableTGridProps

* Remove unused import

* Remove workflow state from Alert page state container

* Update page state container

* Update tests

* Remove builk actions tests

* Remove bulk actions provider

* Remove does not render case options in the overflow menu test

* Resume permissions for cases test

* Fix does not render case options in the overflow menu test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/test/observability_functional/apps/observability/index.ts
2021-12-15 05:44:14 -07:00
Kibana Machine
db59580746
wait for vis before asserting on it (#121083) (#121102)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-12-13 10:46:22 -07:00
Tiago Costa
304559ac57
skip flaky suite (#117780) 2021-12-13 13:51:49 +00:00
Tiago Costa
8a2f610866
skip flaky suite (#104249) 2021-12-13 13:42:24 +00:00
Kibana Machine
23d22569de
[Security Solutions] Fixes telemetry to work with rule types (#120809) (#121028)
## Summary

What this does:
* Fixes telemetry to work with the newer rule types
* Updates the queries to the new rule types and rule query names
* Uses constants where I can from cases and the new rule types
* Changes the index to the new index type alias
* Adds e2e backend tests we didn't have before

What this does not do:
* Doesn't add e2e backend tests for alerts added to cases
* Doesn't add e2e backend tests for ML jobs for security_solution

Those two test scenarios have to be manually tested still.

Manual testing:
To see telemetry go to advanced settings -> Usage Data (and click cluster data):
<img width="2193" alt="Screen Shot 2021-12-08 at 4 14 43 PM" src="https://user-images.githubusercontent.com/1151048/145310671-b7350892-d290-4f3d-ab8c-4e9ec86f4120.png">

Create alerts of different types and add them to cases:
<img width="1464" alt="Screen Shot 2021-12-08 at 4 48 21 PM" src="https://user-images.githubusercontent.com/1151048/145310800-2fae6373-5e84-46ec-9e44-f7a140ea9c36.png">

Activate ML_jobs and any alerts that have ML jobs associated:
<img width="754" alt="Screen Shot 2021-12-08 at 5 08 42 PM" src="https://user-images.githubusercontent.com/1151048/145310978-861f4bb7-2575-4a07-a55f-1e4fdfe288e7.png">

When clicking advanced settings -> Usage Data -> Click cluster data

Search for `security_solution` and then ensure that the data looks as expected underneath the different values such as:

`ml_jobs`
<img width="750" alt="Screen Shot 2021-12-08 at 3 08 25 PM" src="https://user-images.githubusercontent.com/1151048/145311124-c3523d4e-b31b-4bab-b14e-267155bf2b92.png">

`detection_rules` and `cases` working again:
<img width="420" alt="Screen Shot 2021-12-08 at 4 43 10 PM" src="https://user-images.githubusercontent.com/1151048/145311192-e062c435-e8c3-4919-b4e9-8a786dc588c6.png">

Note, `detection_rule_detail` will only be filled in if have prepackaged rules installed:
<img width="761" alt="Screen Shot 2021-12-08 at 5 14 50 PM" src="https://user-images.githubusercontent.com/1151048/145311446-1d78541f-1211-4389-b947-7c0939d7c946.png">

Also note that the `detection_rule_detail`'s `rule_id` is its UUID and not its `rule_id`. That's the way it's been in the codebase for a while it looks like so I have not changed that behavior.

### Checklist

- [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: Frank Hassanabad <frank.hassanabad@elastic.co>
2021-12-09 22:04:22 -07:00
Kibana Machine
32fe956760
[8.0] [Fleet] Make API responses consistent (#119494) (#120753)
* [Fleet] Make API responses consistent (#119494)

* make apis consistent

* UI and test fixes

* test fixes

* fixed test

* fix tests

* fix test

* removed deprecated shared_id from openapi spec

* added back list prop as deprecated

* renamed apis with hyphens

* openapi update

* fix checks

* fix test

* renamed epm api path and response

* fix tests

* fix ml

* moved splitPkgKey

* fixed edit package policy page

* fixed storybook

* fix prettier after conflict

* fix tests

* fix tests

* fix tests

* fix test

* fix test

* added back semver validation

* fix test

* pkgVersion optional

* fix tests

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

* fixed tests

Co-authored-by: Julia Bardi <90178898+juliaElastic@users.noreply.github.com>
Co-authored-by: Julia Bardi <julia.bardi@elastic.co>
2021-12-08 10:51:49 -07:00
Kibana Machine
63777ab69d
[Metrics UI] Add migration to fix incorrect action group spelling (#119626) (#120466)
* Add a migration function for incorrectly spelt action group

Co-authored-by: Kerry Gallagher <kerry.gallagher@elastic.co>
2021-12-08 06:59:09 -07:00
Tiago Costa
39b77c36d5
skip flaky suite (#113993) 2021-12-08 13:57:42 +00:00
Melissa Alvarez
74200e2ed2
[ML] Data frame analytics wizard: Only allow data view creation if job will be started (#120042) (#120716)
* Only allow data view creation if job will be started

* update tests

* no stat fetching when job not started

* ensure result index exists before dataview creation attempt

* update error message and increase retry delay

* use getIdsWithTitle to avoid fieldsWithWildcard call

* move dataview validation to create step

* use exists api in ml index_exists endpoint

* refactor retry function

* fix duplicate i18n ids

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-08 00:53:13 -07:00
Kibana Machine
e62439dbfc
[Synthetics Integration] add enabled toggle (#119994) (#120539)
* add enabled toggle

* adjust types

* adjust types

* add wrapper for simple fields

* adjust icmp simple fields

* Update x-pack/plugins/uptime/public/components/fleet_package/custom_fields.test.tsx

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

Co-authored-by: Dominique Clarke <doclarke71@gmail.com>
2021-12-07 21:38:04 -07:00
Kibana Machine
a56ee61103
Enterprise Search Stack Monitoring (#114303) (#120630)
* Added enterprise search panel, corrected queries

* Update the index pattern for Enterprise Search

* Typescript error ignore

* Our timestamp fields are called @timestamp (per ECS)

* Adjust Enterprise Search index patterns with the rest of monitoring plugin patterns (including CCS, etc)

* Initial implementation of the Enterprise Search overview panel (health only)

* Add a basic stub for enterprise search response fields

* Cleanup aggs configs

* Bring back a file deleted by mistake

* Started working on the overview page

* Correctly use heap_max as the total heap

* Ent search breadcrumbs

* Simple overview

* Allow the cluster_uuid filter to be skipped while fetching metrics

* Cleanup

* Switch to module-level uuid field and use both types of events

* Add stats-based product usage metrics + apply filter paths to reduce traffic

* Change the name of the ent search overview class

* Move the standalone cluster hack in the the internal function

* Change the overview page to show product usage metrics + introduce enterprise search stats in addition to metrics (they are fetched differently and allow us to reuse the stats code we have for the main page panel)

* Cluster UUID is at the module level now

* Simplify ent search pages structure, only have one overview page

* Fix ent search icon

* Add total instances

* Product usage metric graphs

* Simplify metrics loading in the overview page since we load all metrics anyways

* Add more enterprise search overview metrics

* Avoid duplicate labels

* linting

* Revert "Simplify metrics loading in the overview page since we load all metrics anyways"

This reverts commit 4bd67ab88a.

* Switch to multiple timeseries per graph

* Reorder graphs and metrics for better experience

* Typescript fixes

* i18n fixes

* Added a couple more JVM metrics

* Completely covered JVM metrics

* Convert Enterprise Search component to Typescript

* Switch config setting back

* Remove the nodes link since it raises more questions than it solves

* Update jest snapshots with the new metrics

* Remove console statement

* Properly handle cases when aggregations return no data for Enterprise Search

* Add a functional test for the Enterprise search cluster list panel

* Add a functional test for Enterprise Search overview page

* Update multicluster API response fixture with the new enterprise search response key

* Default uptime value is 0

* update overview fixture

* More fixture updates

* Remove fixmes

* Fix imports

* Properly export type

* Maybe fix the type checking error

* PR Feedback

* TS fixes

Co-authored-by: cdelgado <carlos.delgado@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Jason Stoltzfus <jason.stoltzfus@elastic.co>

Co-authored-by: Oleksiy Kovyrin <oleksiy@kovyrin.net>
Co-authored-by: cdelgado <carlos.delgado@elastic.co>
Co-authored-by: Jason Stoltzfus <jason.stoltzfus@elastic.co>
2021-12-07 09:33:11 -07:00
Kibana Machine
bd90843b9e
[ML] Fixes data grid column actions button when histogram charts are visible (#120202) (#120519)
* [ML] Fixes data grid column actions button when histogram charts are visible

* [ML] Adjust histogram color tolerance values

* [ML] Remove test tag

* [ML] Stabilize canvas element test by rounding color values

* [ML] Adjust color tolerance values

* [ML] Further color tolerance adjustments

* [ML] Adjust more color tolerance expected values

* [ML] More color stat adjustments

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

Co-authored-by: Pete Harverson <pete@elastic.co>
2021-12-06 10:57:04 -07:00
Kibana Machine
03a203dfb7
[Uptime] Add throttling parameters to the Fleet UI (#118594) (#120502)
* [Uptime] add throttling parameters to the browser synthetic monitor form

This commit adds three fields to the browser synthetic monitor creation
form, these fields are: `download_speed`, `upload_speed`, and `latency`.

Each of these fields is used to test how applications behave under
particular network conditions.

This commit closes #114155.

* [Uptime] add functional tests for synthetic monitors throttling fields

* [Uptime] add toggling for throttling fields

* [Uptime] add normalizer for editing browser throttling fields

Co-authored-by: Lucas F. da Costa <lucas@lucasfcosta.com>
2021-12-06 09:29:15 -07:00
Joe Reuter
0ad93a7b49
fix order of Lens tests (#120460) (#120492)
# Conflicts:
#	x-pack/test/functional/apps/lens/index.ts
2021-12-06 08:31:38 -07:00
Tiago Costa
df60601d50
skip flaky suite (#109260) 2021-12-06 13:49:01 +00:00
Tiago Costa
e3c514993c
skip flaky suite (#99879) 2021-12-06 13:35:37 +00:00
Tiago Costa
d1b0cacbe6
skip flaky suite (#120433) 2021-12-06 13:20:55 +00:00
Tim Sullivan
56d52f71aa
[Discover] Fix csv report for filtered discover result on dashboard (#119583) (#120418)
* [Discover] fix csv report for filtered discover result on dashboard

* [Discover] fix tests

* [Discover] add functional test

* [Discover] fix the case when timeFilter was not applied, but others filters were applied for non time based data views

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	src/plugins/discover/public/application/apps/main/utils/get_sharing_data.ts

Co-authored-by: Dmitry Tomashevich <39378793+Dmitriynj@users.noreply.github.com>
2021-12-03 16:08:01 -07:00
Joe Portner
f974ecc001
[8.0] Prevent endless loop for saved object migrations (#120146) (#120350)
* Prevent endless loop for saved object migrations (#120146)

* Fix invalid saved objects

* Fix more invalid saved objects
2021-12-03 12:14:23 -07:00
Kibana Machine
a7b09bd991
[Fleet] Wire Fleet setup status to core Kibana status API (#120020) (#120381)
* Wire Fleet setup status to core Kibana status API

* Remove fake error from testing 🙃

* Apply suggestion for PR review

Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>

* Add error message to meta upon Fleet setup failure

* Mark fleet as available if setup fails - for now

* Fix failing API key tests

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

Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co>
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
2021-12-03 11:19:34 -07:00
Ersin Erdal
e829d98930
[RAC] fix failing alerts table pagination functional tests (#119985) (#120220)
* [RAC] fix failing alerts table pagination functional tests
2021-12-02 08:33:00 -07:00
Kibana Machine
32cd3f4c20
[Fleet] Fix typo in Fleet fixtures (#120098) (#120141)
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2021-12-01 12:03:49 -07:00
Kibana Machine
f2a882defb
[ML] Functional tests - add retry to Fleet package install and removal (#120076) (#120130)
This PR stabilizes the module test setup and teardown by adding retries to the Fleet package install and removal service methods.

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
2021-12-01 11:17:18 -07:00
Kibana Machine
233643ede4
[ML] Removes APM NodeJS and RUM Javascript modules (#119945) (#120084)
* [ML] Removes APM NodeJS and RUM Javascript modules

* [ML] Delete unnecessary module_apm archive

* [ML] Fix get_module API test

Co-authored-by: Pete Harverson <pete@elastic.co>
2021-12-01 06:08:45 -07:00
Kibana Machine
a58cad9bae
[Metrics UI] Stabilize home page tests (#120010) (#120083)
Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2021-12-01 05:49:13 -07:00
Tiago Costa
e5070e0eba
skip flaky suite (#103390) 2021-11-27 16:05:31 +00:00
Tiago Costa
64599464ce
skip flaky suite (#119763) 2021-11-26 15:31:30 +00:00
Kibana Machine
c5146db546
[Stack monitoring] Add basic tests for alerts modal (#116769) (#119754)
* Add basic tests for alerts modal

* fix types

* fix setup mode button test subj

* fix unit tests

* Move alerts modal tests to functional since ssl is not required anymore

* Remove not needed config change

* fix test for overview alerts badge

* Extract alerts deletion to a new service

* exit setup mode in alerts test

* add missing file

* update test snapshots

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

Co-authored-by: Ester Martí Vilaseca <ester.martivilaseca@elastic.co>
2021-11-25 12:27:54 -07:00
Kibana Machine
d91e394657
[ML] Functional tests - stabilize and re-enable index data visualizer tests (#119720) (#119746)
This PR stabilizes and re-enabled the index data visualizer tests by waiting for global loading to finish before validating row content.

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
2021-11-25 10:44:49 -07:00
Kibana Machine
7323bfe4c7
Functional tests - adjust userMenu timeout (#119607) (#119721)
This PR stabilizes the login during functional tests by adjusting the timeout for the opened user menu.

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
2021-11-25 05:52:18 -07:00
Kibana Machine
d862acfdaa
[ML] Functional tests - stabilize Discover custom URL test (#119578) (#119641)
This PR stabilizes the Discover custom URL test by making sure all popover are closed before clicking the Discover hide side bar button.

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
2021-11-24 11:21:29 -07:00