Commit graph

864 commits

Author SHA1 Message Date
Frank Hassanabad
c9a11ee971
[SIEM] Adds process_started ECS fields to Uncommon Process Table (#45664)
## Summary

Adds process_started ECS fields to the uncommon process table for any agents which support it. This removes duplicates from the uncommon process table as well in some cases where we were counting process started and process ended as two different counts.

https://github.com/elastic/kibana/issues/45530

Anyone outside of beats implementing this will need these two fields to show up:

```ts
event.type: process_start
event.category: process,
```

Their ECS record should have this bare minimum:

```ts
  "event": {
    "type:": "process_start",
    "category": "process",
  },
```

To show up
### Checklist

Use ~~strikethroughs~~ to remove checklist items you don't feel are applicable to this PR.

- [ ] This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility)
- [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)
- [ ] [Documentation](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials
- [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
- [ ] This was checked for [keyboard-only and screenreader accessibility](https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Accessibility#Accessibility_testing_checklist)

### For maintainers

- [x] This was checked for breaking API changes and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)
- [x] This includes a feature addition or change that requires a release note and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)
2019-09-13 14:37:52 -06:00
spalger
5696b67c92 [Reporting] Skip failing test (#45656)
(cherry picked from commit 40e24547ae)
2019-09-13 13:36:11 -07:00
Lee Drengenberg
d9cd4e614e
[Reporting] skip flaky reporting tests (#45659)
* Add option for Internet Explorer IE11

* WIP trying to figure out IE options/capabilities

* more attempts to get IE tests working

* more work, but still can't set font size in Dev Tools Console

* two changes for IE

* revert skip in console test

* this change *appears* to set absolute times but they don't stick

* Shakespeare passing on all 3 browsers

* add config.ie.js, change 'internet explorer' to 'ie'

* increase notifications:lifetime so ew have a chance to see the message

* correct path with this missing slash

* skip flaky tests issues #45499 #42725

* revert these files to master

* revert to master
2019-09-13 15:34:35 -05:00
Justin Kambic
271be95171
[Uptime] Add TLS cert expiry to GQL schema for individual docs (#44506)
* Add certificate expiration date to uptime GQL schema.

* Update test fixture/snapshot for broken unit test.

* Extract TLS data to two separate GQL types.

* Remove unused field from schema/adapters.

* Update broken functional tests.

* Extract TLS data to two separate GQL types.

* Remove unused field from schema/adapters.

* Update broken functional tests.

* Modify schema/types and parsing code to avoid weird data structure.

* Fix busted test snapshot/mock data.
2019-09-13 12:52:15 -04:00
Xavier Mouligneau
f5e91da99c
[SIEM] Fix paginated table state when switching tab (#45487)
* Keep state of host/netwrok table when switching tab

* keep state in the event viewer when switching tab in host page

* refactor test to ensure activePage updates from prop change

* rm comments

* add/fix unit test

* fix i18n

* need to rm weird files

* rm weird files

* fix inspect button for real + loading view between tabs

* cleanups

* commented by mistake

* fix logic loading

* review I

* review II

* review III

* review IV
2019-09-13 07:22:27 -04:00
Nathan Reese
bdc2575d79
[Maps] fix adding filters in map embeddable (#45187) 2019-09-12 14:40:41 -06:00
Robert Oskamp
bd8c09e63b
Fix model bytes validation (#45508)
This PR adds `model_bytes` to the list of count details that are only validated to be present and re-enables the tests.
2019-09-12 17:17:21 +02:00
Melissa Alvarez
9e3a3dc7c6
[ML] Reorganize ML navigation with top and sub level tabs (#45220)
* Add main nav tabs with sub tabs for new nav

* move transforms to top level main nav

* Make top nav normal font weight

* Update breadcrumbs to take top nav into account

* proper spacing when settings selected

* fix localization error

* Fix functional tests. Update breadcrumbs

* revert analytics breadcrumb update. save for follow up

* ensure main/sub tabs align left

* update dataVisualizer breadcrumbs

* update typescript for tabs
2019-09-12 09:09:36 -04:00
Gidi Meir Morris
1c6b9336e3
[alerting] Renames the AlertInstance.fire to scheduleActions (#45245)
Renamed the misleadingly named AlertInstance.fire to scheduleActions, as it does not in fact "fire" the actions, but rather schedules them to be executed by the Task Manager at the next available opportunity.
2019-09-12 09:34:24 +01:00
Dmitry Lemeshko
a33909a480
Change data-test-subj selector logic to support value with spaces (#43682)
* update test-subj-selector

* update locators

* adjust whitespaces removal

* fix another locator

* fix ML test locators
2019-09-12 09:48:09 +02:00
Spencer
9a109f2170
Revert "Revert "Revert "Revert "[ci] compress jobs for CI stab… (#45454)
* Revert "Revert "Revert "Revert "[ci] compress jobs for CI stability" (#44584)"""

This reverts commit 148b8c0f90.

* sync changes with Jenkinsfile
2019-09-11 15:27:43 -07:00
spalger
c0dd0ca7d3 skip flaky test (#45450) 2019-09-11 14:21:33 -07:00
spalger
45711a3005 skip flaky test (#45447) 2019-09-11 14:20:54 -07:00
Brian Seeders
27d23c4184 Jenkins pipeline with parallel cigroups (#45285)
* Pipeline

* WIP some work for parallelization with ciGroups

* Fix xpack kibana install dir, and add some debugging

* Attempt to quick fix a few tests

* Revert "Revert "Revert "[ci] compress jobs for CI stability" (#44584)""

This reverts commit 078ac2897f.

* Recombine test groups, and try runbld again

* Mostly cleanup, and fix failed_tests reporting to hopefully work for both pipeline and non-pipeline

* Fix typo in shell script

* Remove some debug code

* Add support for changing es transport.port during testing via TEST_ES_TRANSPORT_PORT

* Fix test that uses hard-coded es transport port and add it back in to parallel groups

* Disable checks reporter again for now

* Set env var for TEST_ES_TRANSPORT_PORT in pipeline

* Update Jenkinsfile for shorter testrunner labels

* Fix another hard-coded transport port

* Fix a new test with hard-coded URLs

* Jenkinsfile cleanup and fix one of the groups

* Fix double slash

* Testing vault credentials on jenkins server

* Add a non-existent credential

* Revert "Add a non-existent credential"

This reverts commit 0dc234c465a5483b1a994cb510a182fef766e9cc.

* Try github-checks-reporter again

* github-checks-reporter should only run for elastic/kibana, forks won't work

* Clean up some debug code

* Changing names around to try to make BlueOcean UI a little better

* Add more stages

* Make some changes to stage structure to mirror a nested example from CloudBees

* Handle TODOs, and some cleanup in Jenkinsfile

* Pass GIT_BRANCH when started without GHPRB, fix branch check

* Fix mailer problem and add code that ensures all tests are in cigroups back in

* Test adding worker/job name to junit report paths

* Remove some duplication from ci_setup scripts

* Fix unit test that uses junit path

* Don't reinstall node every time setup_env is run

* Fix yarn install logic

* Fix another unit test that uses junit output dir

* Download latest ES snapshot after kibana builds

* Make sure junit reports are always processed

* Add two failing tests for testing purposes

* Add support to Jenkinsfile for kibana build e-mails

* Remove some debug code for email sending

* Change JOB env handling in junit paths and move it to a sub-directory

* Revert "Add two failing tests for testing purposes"

This reverts commit 5715203e26922a93483feb0ebb8bb3fdcc3daf8c.

* Fix junit report path in test

* Don't send kibana emails on build abort

* Address PR feedback, formatting and use built-in url formatting library

* Fix path formatting for functional test

* Add email sending back in to Jenkinsfile

* Fix another unit test with path problem
2019-09-11 11:58:28 -07:00
Robert Oskamp
9cd2f6e0b3
[ML] Add multi metric job wizard test (#45279)
This PR adds functional UI tests to create a machine learning job using the multi metric wizard.
2019-09-11 16:57:23 +02:00
Dmitry Lemeshko
8a900bfe09
Functional tests: convert more test/services to TS (#45176)
* convert more test/services to TS

* Update test/functional/services/combo_box.ts

Co-Authored-By: Tre' <wayne.seymour@elastic.co>

* Update test/functional/services/combo_box.ts

Co-Authored-By: Tre' <wayne.seymour@elastic.co>

* Update test/functional/services/combo_box.ts

Co-Authored-By: Tre' <wayne.seymour@elastic.co>

* fix lint error
2019-09-11 16:10:13 +02:00
spalger
1834fe070a disable flaky test (#45317) 2019-09-10 17:40:53 -07:00
spalger
078ac2897f Revert "Revert "[ci] compress jobs for CI stability" (#44584)"
This reverts commit 50355d08f2.
2019-09-10 09:03:23 -07:00
Joe Reuter
c46eea53d1
[Graph] Re-enable functional test (#44683) 2019-09-10 10:20:33 +02:00
Aleh Zasypkin
9d69b72a5f
Move base feature controls functionality from XPack Main plugin to a dedicated XPack Features plugin (#44664) 2019-09-09 19:15:58 +02:00
Christiane (Tina) Heiligers
2541850c38
Add saved queries to maps (#44442)
* initial attempt at adding saved-queries to maps

* Adds savedQuery methods to map_controller

* Adds saveQuery to Maps ui

* Fixes watcher on state

* Fixes adding filters, still debuggin why the timefilter automatically changes to last 15 min on saving a query with a time filter. The time filter saves correctly in the saved query

* Gets time filter working with saved queries

* Adds saved query management component functionality tests to maps for all privileges

* Adds a saved query to the mapping and data for maps security functional tests

* Updates test saved query doc

* Adds functional tests for saved queries as a maps read-only user

* Adds 'skip' back to maps security functional tests

* uses onRefreshChange in map_controller

* Removes redundant trigger of onQuerySubmit call in the search bar

* deletes redundant call to updateStateFromSavedQuery in state.savedQuery watcher

* Refactors savedQuery watchers in map controller
2019-09-09 09:24:40 -07:00
spalger
8fee51f46a disable all code functional tests (#45094) 2019-09-06 23:50:37 -07:00
spalger
4ff9013a6d disable flaky suite (#42111)
(cherry picked from commit 797d5c60899cd77341da4af4137f821661d4441b)
2019-09-06 22:26:41 -07:00
spalger
c0923adeda disable flaky suite (#45079) 2019-09-06 20:40:28 -07:00
Dario Gieselaar
c01a5793ac Upgrade io-ts and fp-ts (#44753)
* Upgrade io-ts and fp-ts

* Add io-ts/fp-ts as top level dependencies

* Merge fp-ts changes from actions plugin

* Use getOrElse instead of fold
2019-09-06 15:40:51 -05:00
Mengwei Ding
1909ed98ac
[Code] bundle git repo for functional test (#44547)
* [Code] bundle git repo for functional test

* adjustment
2019-09-06 11:06:54 -07:00
Larry Gregory
0d239384e5
skipping flakey test (#45001) 2019-09-06 11:28:07 -04:00
Gidi Meir Morris
0d1f3cf620
[alerting] Adds Action Type configuration support and whitelisting (#44483)
A wide refactor of Action Types and their configuration:
- Action Types are now initialised with a their associated configuration based on `kibana.yml`
- You may now whitelist certain hostnames to allow built-in actions, such as _Webhooks_, to communicate with the outside world
- The _Webhooks_ Built-in action is now available, if you have `alerting` and `actions` enabled
2019-09-06 07:43:21 +01:00
Dmitry Lemeshko
3a158b9d7d
FTR: fix WebDriver Actions calls (#44605)
* [services/web_element_wrapper] add actions API methods

* fixes

* [services/browser] fix dragAnDrop to work in both w3c/non-w3c modes

* small review changes

* dragAndDrop: add default values for offset
2019-09-06 07:54:26 +02:00
Nathan Reese
e40359958f
[Maps] Update titles and descriptions for data sources (#44833)
* [Maps] Update titles and descriptions for data sources

* update kibana tilemap source description

* Update x-pack/legacy/plugins/maps/public/layers/sources/es_pew_pew_source/es_pew_pew_source.js

Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>

* update functional test dataTestSubj click handles based on source name changes

* update TMS source descriptions to be more consistent
2019-09-05 20:38:01 -06:00
Aleh Zasypkin
1b76070f2f
Use external script for the OIDC Implicit flow handler page. (#44866) 2019-09-05 19:28:43 +02:00
Robert Oskamp
43b08b3ab1
[ML] Add enhanced job list validations to create single metric job test (#44651)
This PR adds enhanced job list validations to the existing create single metric job test.
2019-09-05 10:14:38 +02:00
Nathan Reese
a0272cad27
[Maps] name space dynamic property style names to avoid collisions (#44676)
* [Maps] name space dynamic property style names to avoid collisions

* update expect for functional test

* another update to expected map styles
2019-09-04 14:01:23 -06:00
spalger
08f9435c9a skip flaky suite (#37859) 2019-09-04 08:43:51 -07:00
Larry Gregory
4f09de749a
Fixing flaky copy-to-space test (#44656)
* wait for context menu to appear

* run x-pack-ciGroup4 40 times

* actually enable the flaky test...

* Revert "run x-pack-ciGroup4 40 times"

This reverts commit 71ac8e167e.
2019-09-04 07:33:50 -04:00
Spencer
50355d08f2
Revert "[ci] compress jobs for CI stability" (#44584)
This reverts commit debf8c62b4.
2019-09-03 08:36:47 -07:00
Robert Oskamp
993f4c461e
[ML] Re-activate create single metric job test (#44591)
This PR re-activates the `create single metric job` test.
2019-09-02 12:52:59 +02:00
spalger
586fbaa665 skip flaky suite (#44572) (#42111) (#44286) (#43557) (#42567) 2019-09-01 23:29:28 -07:00
spalger
97135be313 disable flaky suite (#41336) 2019-09-01 23:10:44 -07:00
spalger
5d47a562e6 disable flaky suite (#44575) 2019-09-01 23:04:37 -07:00
spalger
7607dbf8db disable flaky suite (#44576) 2019-09-01 23:03:36 -07:00
Mengwei Ding
12dece6fae
[Code] add functional test to verify lang server full api symbol/reference counts (#44051)
* [Code] add functional test to verify lang server full api symbol/reference counts

* symbol language aggregations
2019-08-31 23:26:54 -07:00
Frank Hassanabad
7a0a3f5b86
Changes network to use ECS fields (#44392)
* Change network to use ECS fields

* Updated functional tests with new field mapping and data
2019-08-30 14:33:35 -06:00
Rashmi Kulkarni
382733be29
[WIP] Rollup unskip test - test 30 times on CI (#44304)
fixes https://github.com/elastic/kibana/issues/43559
2019-08-30 10:36:51 -07:00
Mengwei Ding
8952e57fa0
[Code] add skipCloud for all code function tests (#44334) 2019-08-29 15:59:10 -07:00
Chris Roberson
e4ded1f39e
[Monitoring] Ensure we pass down all the parameters for fetching logs (#43869)
* Ensure we pass these all the way down

* Add additional test

* Fix tests

* PR feedback

* Update copy and test wording
2019-08-29 12:27:39 -04:00
Joe Reuter
6fad639f25
[Graph] Listing page and folder restructuring (#44068) 2019-08-29 17:19:56 +02:00
Andrew Cholakian
5bc81ed3d8
Add drawer to monitors page to show response bodies / errors (#44194)
Adds a drawer to the monitor page ping list showing errors and the body info for HTTP requests if present.

Fixes elastic/uptime#76
2019-08-29 08:26:03 -05:00
Steph Milovic
29b8ce2b7e [SIEM] Top Talkers: Split into Source and Destination (#43719)
* wip

* sources table working woohoo

* rename table back to n flow

* wired up both source and destination tables

* cleanups

* flows and ips sort

* flows and ips sort

* fix flow sorting

* differentiate tables

* bring back network

* fix tests

* integration tests updated

* add country names to flags, sort by desc on first click

* yarn doing its thing

* correct panel width during initial load

* remove default props

* fix inspect btn placement at small viewport sizes

* reformatting bytes

* used compressed table prop

* fix unit tests bytes

* update header subtext size

* override table cell display flex

* make titles plural

* less distracting empty string

* simplify markup and align numbers right

* improve more items experience

* undo compressed tables…looks bad

* stack tables

* restore compressed and side by side layout

* sentence case for titles

* table cleanup

* force more to separate line

* dnd poc changes

* jest test updates

* TypeScript, i18n, and bean-gen fixes

* fix for filter action color

* single quotes instead of backticks

* use getEmptyValue() instead of static emdash

* remove “ AS” prefix

* address PR concerns

* add space

* first attempt at prop change with matchMedia

* split table display by mediaMatch

* rm comments

* fix type issue

* correct react hook

* lint fix

* fix jest

* update snapshots
2019-08-29 12:32:56 +02:00
WangQianliang
950a2b5225
[Code] fix flaky functional test (#43563)
* fix(code/frontend): fix flaky functional test
2019-08-29 14:07:09 +08:00