Commit graph

33000 commits

Author SHA1 Message Date
Wylie Conlon 459daa7f23
[Lens] Use rules of hooks with linting (#65593) 2020-05-07 10:01:51 -04:00
Walter Rafelsberger 6a6b3edd7f
[ML] Migrate server side Mocha tests to Jest. (#65651)
Migrates job validation related server side tests from Mocha to Jest.
2020-05-07 15:58:16 +02:00
Frank Hassanabad 0d3ddbe9d0
Fixes the client to setup SSL with the CA certificates for testing (#65598)
## Summary

Fixes the non-legacy ES test client to work with SSL.

Without this if you try to migrate `siem rules` or `alerting` or `CASE` or anything else that is using SSL based tests you get this error when trying to use the non-legacy:

```ts
// pull in non-legacy service for functional tests
const es = getService('es');
```

```ts
// use it somewhere where your config.ts is utilizing SSL in a functional test
// ...
```

In your console you get this error:

```ts
    ConnectionError: self signed certificate in certificate chain
          at onResponse (node_modules/@elastic/elasticsearch/lib/Transport.js:205:13)
          at ClientRequest.request.on.err (node_modules/@elastic/elasticsearch/lib/Connection.js:98:9)
          at TLSSocket.socketErrorListener (_http_client.js:401:9)
          at emitErrorNT (internal/streams/destroy.js:91:8)
          at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
          at process._tickCallback (internal/process/next_tick.js:63:19)
```

This fixes that by adding the CA certs from test to the ES test client.
2020-05-07 07:57:34 -06:00
Mikhail Shustov 8373247da0
reduce uptime plugin initial bundle size (#65257) 2020-05-07 14:36:35 +02:00
James Gowdy 55e4c7f9a7
[ML] Consolidating shared types and util functions (#65247)
* [ML] Consolidating shared types and util functions

* including formatter

* adding missing includes

* removing unused export

* ignoring numeral type error

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-07 12:23:42 +01:00
Anton Dosov 3604f5d21a
[Drilldowns] Preserve state when selecting different action factory (#65074)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-07 13:18:56 +02:00
Uladzislau Lasitsa 6ef45e17d4
Migrate test plugins ⇒ NP (kbn_tp_embeddable_explorer) (#64756)
* Migrated kbn_tp_embeddable_explorer to the new platform.

* Added discover as a dependency

* fixed types

* Updated typescript task

* revert previous commit

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-07 14:15:37 +03:00
Diana Derevyankina e723a8f916
Move remaining home assets to the new platform (#65053)
* Migrate tutorial resources

Closes #55710

* Added type to context in apm plugin index

* Removed context parameter  from ApmPlugin

* Generated apm plugin by generate_plugin script

* Removed getGreeting declaration

* Remove unused assets and comment previewImagePaths

* Removed unnecessary types file

* Move assets and sample_data_resources, update snapshot

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-07 13:34:07 +03:00
Stratoula Kalafateli 8b862fea06
Change the copy and the id from blacklist to block list for consistency (#65419)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-07 13:21:47 +03:00
Dima Arnautov ab5943c71d
[ML] Hide selector helper in Anomaly Explorer swimlane (#65522) 2020-05-07 12:10:15 +02:00
Dima Arnautov dddeec51b7
[ML] Fix the limit control on the Anomaly explorer page (#65459)
* [ML] persist limit control value

* [ML] remove console statement

* [ML] fix default value
2020-05-07 11:52:28 +02:00
Sébastien Loix 83a088cb49
[Mappings editor] Add component integration tests (#63853) 2020-05-07 11:47:50 +02:00
Felix Stürmer 8a8647ab95
[Logs + Metrics UI] Prevent component errors from breaking the whole UI (#65456) 2020-05-07 11:33:50 +02:00
Alejandro Fernández f53b147097
[Logs UI] Disable search bar when live stream is on. (#65491) 2020-05-07 11:15:47 +02:00
Pierre Gayvallet 3f3d5f9666
fix SavedObjectMigrationMap type (#65569) 2020-05-07 10:32:30 +02:00
Shahzad 9734dafbfa
[Uptime] Improve cert flaky test (#65458) 2020-05-07 10:31:02 +02:00
Shahzad be3f6ef8ed
[Uptime] Fix monitor list result runtime type, ip can be null (#65532) 2020-05-07 10:30:28 +02:00
Cauê Marcondes d935600645
[APM] Agent configuration: Bug makes it possible to create invalid configurations (#65508)
* reset settings when navigate to choose-settings-step page

* reset settings when navigate to choose-settings-step page

* reset settings when navigate to choose-settings-step page
2020-05-07 10:00:40 +02:00
Cauê Marcondes 19ed83958f
[APM] Remove link from active page in the breadcrumb (#65473) 2020-05-07 10:00:11 +02:00
MadameSheema 15eec5a9ee
[SIEM] Fixes test flakiness (#65510)
* adds 'Configures a new connector' test

* refactor code

* updates configure_cases screen selectors

* removes 'configure connector' test flakiness
2020-05-07 09:59:04 +02:00
Alexey Antonov 642b03b41d
[ESLint] update @kbn/eslint/no-restricted-paths rule to allow imports mocks from folder (#65471) 2020-05-07 10:56:36 +03:00
Uladzislau Lasitsa c5d4d9e68a
Migrate test plugins ⇒ NP (kbn_tp_run_pipeline) (#64780)
* Migrated kbn_tp_run_pipeline to the new Platform

* Updated config.

* Added tsconfig.

* Updated index.ts for tests

* updated tsconfig

* Updated typescript task

* fixed tests

* Fixed tests

* updated comment

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-07 10:12:46 +03:00
Mikhail Shustov 4a6ecc84a6
move core provier to NP. allows to run tests on every page (#64929)
* move core provier to NP. allows to run tests on every page

* remove no-base-path

* pass whole KbnTestServer config

* fix build path

* another id

* np

* build kibana tests plugins. it is used in xpack tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-07 08:26:11 +02:00
Yuliia Naumenko 74187fd80d
Extended alerting documentation with information about using Kibana keystore and action types for preconfigured connectors (#65201)
* Extended alerting documentation with information about using Kibana keystore and action types for preconfigured connectors

* Fixed due to comments and merged two preconfig pages

* Fixed due to review comments

* Update docs/user/alerting/action-types/index.asciidoc

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Fixed due to comments

* -

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2020-05-06 18:19:15 -07:00
Spencer 4a440427a6
[functional tests] add some missing awaits (#65566) 2020-05-06 16:45:15 -07:00
Yuliia Naumenko bb9eaf78a6
Fixed create new connector from alert flyout form throw an error messages in external plugins. (#65539)
* Fixed create new connector from alert flyout form throw an error messages in external plugins.

* Fixed due to comments
2020-05-06 16:06:40 -07:00
Steph Milovic c03bdccce1
[SIEM] [Cases] External services not getting all comments bug fix (#65307) 2020-05-06 16:09:25 -06:00
Aaron Caldwell c00b36e9e3
Migrate Coordinate Maps to NP (#64668) 2020-05-06 15:12:38 -06:00
Michail Yasonik 402df7f51e
Updating Canvas location in nav (#65519) 2020-05-06 16:11:18 -05:00
Frank Hassanabad 23bb1aa700
[SIEM][Lists] Fixes up contracts to work outside of requests
## Summary

Fixes up the API contracts to work outside of a request and as a regular plugin.

* Removes space and request stuff that is not needed
* Adds in plugin ability with space id and user name being pushed down
2020-05-06 14:56:09 -06:00
Wylie Conlon 90de711c27
[Lens] Remove "inside only" option for treemap labels (#65363)
* [Lens] Remove "inside only" option for treemap labels

* Fix type error

* Update from feedback
2020-05-06 16:45:32 -04:00
Justin Kambic 6c13f7f55e
[Uptime] Add TLS alert functional test (#65303)
* Add alert option for flyout selection helper function.

* Add functional test for TLS alerts.
2020-05-06 16:41:41 -04:00
Josh Dover d7d8eb06f7
Fix z-index of kbnLoadingIndicator (#65521) 2020-05-06 14:24:37 -06:00
John Dorlus f891a0150a
Fixed indice assertion to loop through expected keys (#64684)
* Changed assertion to loop through expected keys and confirm that they are contained within the array. Also made sure that the two arrays have the same length. Those two assertions should make sure that the contents are the same no matter the order of the keys.

* Changed assertion to loop through expected keys and confirm that they are contained within the array. Also made sure that the two arrays have the same length. Those two assertions should make sure that the contents are the same no matter the order of the keys.

* Fixed typo in function.

* Changed assertion per conversation.

* Updated assertion on second test.

* Fixed assertion for equality that's not strict.

* Added comment to code to explain why the arrays were sorted.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-06 15:45:32 -04:00
Dmitry Lemeshko 38c26ff337
[services/remote] set download folder with auto-saving (#65476)
* [services/remote] set download folder with auto-saving

* Update test/functional/services/remote/webdriver.ts

* use REPO_ROOT per review suggestion
2020-05-06 22:41:47 +03:00
gchaps dfcf5b35e7
[DOCS] More formatting fixes to Timelion docs (#65543) 2020-05-06 12:24:40 -07:00
spalger eef220e0c6 skip flaky suite (#65423) 2020-05-06 12:09:49 -07:00
Oliver Gupte 41c8426842
[APM] Remove service maps badge row and num instances in popover (#65492)
* Closes #65487 by removing the badge row and num instances metrics

* removed unused translations for xpack.apm.serviceMap.numInstancesMetric
2020-05-06 12:03:15 -07:00
Yuliia Naumenko 6dd5ba0e67
Updated alerting docs screenshots where necessary (#65354)
* Updated alerting docs screenshots where necessary

* Changed screenshots for management section

* fixed alt issue
2020-05-06 11:33:55 -07:00
Nathan Reese 2eaa074923
[Maps] convert EMS file source to TS (#65373)
* [Maps] convert EMS file source to TS

* ts more ems_file_source

* ts lint cleanup

* more ts clean up

* clean up some ts-ignores

* review feedback
2020-05-06 12:28:30 -06:00
Paul Tavares 552bac5dc7
[Endpoint] Policy functional (integration) tests (#64803)
* Re-enable Policy Functional tests
* Test service to provide endpoint policy test data
  - includes workaround to fleet integration service
2020-05-06 14:16:40 -04:00
Frank Hassanabad 0730bae5c6
[SIEM][Lists] More tests and renames and file movements and types (#64968)
* Adds unit tests to the schema for input/output validation 
* Changes the mocks to use a `file_name.mock.ts` pattern
* Introduces io-ts partials _carefully_ where I get both the partials and the required undefined in the types
* Introduces an Identity type to remove weird intersection types and make plain types when using io-ts.
* I Introduces a RequiredKeepUndefined in order to work with partials and keep the undefined as required for when the type is used directly within the code. This makes it simpler to force new functions/methods to have to push down `undefined` 


### Checklist

Delete any items that are not applicable to this PR.

- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios
2020-05-06 12:00:12 -06:00
Oliver Gupte 7a9261adb2
Closes #65404 by updating text and considtionally displaying tooltip (#65499) 2020-05-06 10:59:14 -07:00
Mike Côté b71b13947e
Shallow clone properties when adding to registry (#65309) 2020-05-06 13:39:09 -04:00
Josh Dover 5f314227d9
Fix logstash integration with monitoring (#65165) 2020-05-06 10:42:07 -06:00
Pete Harverson 46b91cc9fd
[ML] Add check for loss_function when cloning a regression job (#65481) 2020-05-06 17:03:01 +01:00
Alejandro Fernández 8581ba8c38
[Logs UI] Add tests to the log alert executor (#64881) 2020-05-06 17:37:30 +02:00
Caroline Horn e5abec1922
[Doc-Table] Import styles into JS where possible (#65329)
Fixes styles and overflow table vis
2020-05-06 11:25:46 -04:00
spalger 3e9a12cf33 Revert "[SIEM] Eliminate Superfluous Untitled Timelines (#64341)"
This reverts commit a06c02f606.
2020-05-06 08:11:04 -07:00
Walter Rafelsberger eccdbdbf40
[ML] Data Frame Analytics: Skip job cloning functional tests. (#65465) 2020-05-06 06:48:06 -07:00