Commit graph

3382 commits

Author SHA1 Message Date
Brian Seeders
2457c4636b
Skip entire flaky suite 2020-04-21 12:32:40 -04:00
Brian Seeders
0c8c22ec40
Skip failing timelion typeahead test 2020-04-21 11:21:21 -04:00
Brian Seeders
ad71e39a1e
Skip failing discover histogram test 2020-04-21 11:21:06 -04:00
Brian Seeders
fd865f4679
Skip failing context test 2020-04-21 11:20:45 -04:00
Dmitry Lemeshko
41dda64bda
[7.6] FTR: Enable w3c for chromedriver (#62542) (#63182)
* FTR: Enable w3c for chromedriver (#62542)

* enable w3c for chrome

* update maps tests

* update maps tests

* update common_page

* Revert "update maps tests"

This reverts commit 31f43fd678.

* revert changes to maps tests

* undo after removal

* update expect range to pass on Windows, unskip tests for Firefox

* print out value for discover brushing test

* log first timestamp

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

* remove unused function

* fix common page PO

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-13 01:34:47 +03:00
Brian Seeders
3f13fd8a7a
Ensure that discover data exists for home/_navigation test so that the test suite can run in isolation (#62516) (#63177) 2020-04-10 11:14:45 -04:00
Spencer
3ca04c0957
[7.6] [ci/es] always pull snapshots, break early when they're… (#62068)
* [ci/es] always pull snapshots, break early when they're not available

* move to setup.sh after deps are installed

Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	test/scripts/jenkins_build_kibana.sh
#	test/scripts/jenkins_xpack_build_kibana.sh
2020-03-31 14:50:10 -07:00
spalger
54f8c49868 skip flaky suite (#53888)
(cherry picked from commit facae44f5b)
2020-03-19 10:24:50 -07:00
Matthias Wilhelm
0f97a58d74
[Discover] Fix incorrect filter generated by "Filter for field present" (#58586) (#60224)
* Fix _exists_ filter handling

* Add functional test
2020-03-16 11:58:22 +01:00
Brian Seeders
6a12882e4a
Add a retry to dashboard test for a sometimes slow async operation (#59600) (#59789) 2020-03-15 19:33:37 -04:00
Rashmi Kulkarni
3f27bf1e44
OSS logic added to test environment (#60134) (#60179)
* OSS logic added

* reverting the logic of isOSS()

TileMap and RegionMap are on OSS but not on x-pack because it has Maps.
2020-03-13 23:03:30 -07:00
Brian Seeders
b77b127b10
[7.6] Navigate back to discover app during test, because the saved search from the preceding test has major performance problems when used with this test (#59571) (#59592) 2020-03-10 12:46:49 -04:00
Spencer
692e2a5693
[7.6] Fix visual baseline job (#59348) (#59471)
* Establish Percy baselines

* move Jenkinsfile changed back to `.ci` directory

* rename xpack workers

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-05 18:13:04 -07:00
Dmitry Lemeshko
a4eeee9d15
Convert discover_page to ts, remove redundunt methods (#59312) (#59426)
* convert discover_page to ts

* remove deuplicated methods, improve tests
2020-03-05 23:40:52 +03:00
Joe Reuter
b349ee3902
stabilize dashboard snapshot toast closing (#58709) (#59272) 2020-03-04 10:45:54 +01:00
Brian Seeders
0ee6a05aee
[CI] Pipeline refactoring (#56447) (#59078) 2020-03-02 17:04:46 -05:00
liza-mae
f95672f272
Add a way to disable certificate verification for FTR. (#58386) (#58523)
* Add a way to disable certificate verification for FTR.

* Remove other options

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-26 10:28:07 -07:00
Joe Reuter
e3c47beef7
refresh once to make sure everything is fetched (#58225) (#58583) 2020-02-26 13:43:08 +01:00
Joe Reuter
a9b21d2371
Functional tests: Fix saved object management button click retry (#58218) (#58581) 2020-02-26 13:42:26 +01:00
Matthias Wilhelm
bd2d76fb03
[Discover] Add check for the open perma link for cloud testing (#57884) (#57976)
- fixes a functional test failure in cloud
2020-02-19 12:35:06 +01:00
Matthias Wilhelm
f20f792132
[Discover] Improve functional test of context (#57575) (#57775)
By converting adding filters to a sequential mode, the test of clicking on a context link in the discover table should no longer be flaky
2020-02-18 17:53:14 +01:00
Lee Drengenberg
d5f8c43a1a
handle viewing sample dashboards on default dist (#57510) (#57627)
* handle viewing sample dashboards on default dist

* re-work change to not break jest test

* Update snap for addition of data-test-subj
2020-02-13 17:23:42 -06:00
Rashmi Kulkarni
359d531168
fix for chart_types test (#57056) (#57128)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-07 10:24:15 -08:00
Joe Reuter
a9dc431071
Rollup TSVB integration: Add test and fix warning text (#56639) (#56828) 2020-02-05 13:20:23 +01:00
Greg Thompson
8481b8fb62
[7.6] Upgrade EUI to v18.2.2 (#56206)
* eui to 18.2.2

* Homepage adjustment to match new icons

* Homepage adjustment to match new icons

* i18n fix

* i18n fix

Co-authored-by: dave.snider@gmail.com <dave.snider@gmail.com>
2020-01-29 09:43:02 -06:00
Brian Seeders
0b4d3c117e
Remove matrix build support (#54202) (#56171) 2020-01-28 16:57:21 -05:00
Joe Reuter
475acf083f
Fix missing labels on certain axes and label filter configurations (#47563) (#55565) 2020-01-22 18:14:40 +01:00
Tim Roes
cc3274507d
Fix KQL value suggestions for nested fields (#54820) (#55272)
* Revert "Flag nested fields as non-aggregatable (#51774)"

This reverts commit c7046a08

* Filter out nested fields at the agg param level

* Forbid nested fields in TSVB

* Revert "Forbid nested fields in TSVB"

This reverts commit afcaa348

Co-authored-by: Tim Roes <mail@timroes.de>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Matt Bargar <mbargar@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-18 19:16:47 +01:00
Tim Roes
7e7b18d44a
Remove nested root from index pattern (#54978) (#55267)
* Revert "Add label and icon to nested fields in the doc table (#54199)"

This reverts commit f77b3620

* Apply label and icon to nested fields in the doc table

* Add nested type to field_icon

* Improve nested test and add comment

* Fix tests

* Always pass the field type

Co-authored-by: Matt Bargar <mbargar@gmail.com>
2020-01-18 13:28:35 +01:00
Matthew Kime
f7f28b7bbb
Management API - redirect on disabled app path (#55136) (#55259)
* redirect on disabled management app path
2020-01-17 21:22:11 -06:00
Chandler Prall
20d418b61f
Upgraded EUI to 18.2.1 (#55090) (#55133) 2020-01-17 08:18:48 -07:00
Eli Perelman
5f2f07315e
Generate legacy vars when rendering all applications (#54768) (#55082)
* Generate legacy vars when rendering all applications

* Move rendering functional tests and add user settings tests

* Make rendering integration tests more robust, get data from page

* Address review nits, fix CI failures

* Remove extraneous file

* Fix type error
2020-01-16 13:01:16 -06:00
Josh Dover
205f33dacd
Renable navigation back test (#54825) (#55065) 2020-01-16 11:50:39 -07:00
Tim Roes
0198ece079
Add label and icon to nested fields in the doc table (#54199) (#54892)
* Apply label and icon to nested fields in the doc table

* Include nested fields in the index pattern so we can identify them in the Discover UI

* use color recommended by design

* Fix unit tests

* Update api integration test

* Fix test comment

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Tim Roes <mail@timroes.de>

Co-authored-by: Matt Bargar <mbargar@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-15 12:13:36 +01:00
Greg Thompson
e0d6407bde
[7.x] Upgrade EUI to v18.2.0 (#54786) (#54869)
* Upgrade EUI to v18.2.0 (#54786)

* 18.2.0

* ts update

* Updated `euiColorVis0`

* Update `euiColorVis1`

* Updating `euiColorVis2`

* Updated `euiColorVis3`

* Updated the rest

* Updated hard-coded viz palette hexes to latest

* src snapshot updates

* x-pack test updates

* mock jest fn

* Updated two vegalite visualization screenshots

Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: Chandler Prall <chandler.prall@gmail.com>

* snapshot

Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: Chandler Prall <chandler.prall@gmail.com>
2020-01-14 22:53:57 -06:00
Chandler Prall
2c66ffb3b8 [7.x] Backport/7.x/pr 54042 (#54799)
* Upgraded EUI to 18.0.0

* Fix breaks from `palette._.colors` changes

* snapshots

* Updated hard coded hex color codes in tests, fixed TS errors

* Updated a functional test's selector; added (BSD-3-Clause AND Apache-2.0) to license checker whitelist

* Functional test selector update

* Updated vega browser-ci tests for palette changes

* One more location for EUI package number update and yarn lock

* Fixed lurking [but introduced] TypeScript logic bug

* Swap a prop definition for the same value but tied closer to its source

* updates for backport

Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
2020-01-14 18:53:06 -05:00
Dmitry Lemeshko
4e6b99cdfc
Functional tests: refactor dashboard_page (#54588) (#54750)
* [test/functional] cleanup & tsfy dashboard_page

* fix & improvement

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-14 22:04:35 +01:00
Bhavya RM
e9fc194ac5
Discover a11y tests (#54209) (#54632)
Comprehensive discover a11y tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-14 14:33:15 -05:00
Vadim Dalecky
1e87504dc7
test: 💍 re-enable Dashboard sample data functional tests (#54717) (#54732)
Closes: #40670
2020-01-14 07:49:58 -08:00
Pierre Gayvallet
17480540bc
Fix chromeless NP apps not using full page width (#54550) (#54683)
* add missing conditional classes on app-wrapper and application containers

* update snapshot

* refactor and add unit tests for service

* typo

* use consistent classNames naming
2020-01-14 09:57:24 +01:00
Maja Grubic
3115ae650b
[Lens][Dashboard] Adding Lens to Dashboard (#53110) (#54607)
* First version of adding Lens to dashboard

* Fix failing unit test

* Replacing explicit Lens query param with a more generic one

* Fixing failing unit test

* Adding a unit test for redirect

* Do not show Save New if adding from Dashboard

* Adding functional test

* Adding functional test

* Fixing type issues

* Renaming query params

* Fixing failing unit test

* Removing unused constants

* Fixing erroneous imports

* Fixing erroneous import

* Fixing import

* Fix failing typecheck

* Removing timefilter from Dashboard URL

* Fixing type error

* Replacing time parsing with rison

* Replacing URL regex parsing with legacy URLs

* Fixing failing test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-13 19:33:34 +00:00
Brian Seeders
5ffb19b7d3
[7.x] Flaky test runner improvements/fixes (#49367) (#54591)
* Allocate multiple flaky test runner agents as executions grow

* WIP support for deleting kibana install dir during CI

* Add setup script for testing scripts

* Add REMOVE_KIBANA_INSTALL_DIR=1 to flaky test runner

* Change flaky test runner worker processes from 8 to 12
2020-01-13 12:14:42 -05:00
Anton Dosov
5f52cf0bf3
[State Management] State syncing utilities (#53582) (#54454)
Today, apps rely on AppState and GlobalState in the ui/state_management module to deal with internal (app) and shared (global) state. These classes give apps an ability to read/write state, when is then synced to the URL as well as sessionStorage. They also react to changes in the URL and automatically update state & emit events when changes occur.

This PR introduces new state synching utilities, which together with state containers src/plugins/kibana_utils/public/state_containers will be a replacement for AppState and GlobalState in New Platform.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-13 10:10:56 +03:00
Pierre Gayvallet
8636011d7c
Add ApplicationService app status management (#50223) (#54545)
* add unimplemented registerAppStatusUpdater & remove observers for apps and legacyApps

* adapt NavLinksService to use new application observables

* merge availableApps$ and availableLegacyApps$

* updating core docs

* adapt the navLink updating methods

* filters the inaccessible apps from availableApps$

* restrict access to navigateToApp depending on app status

* fixes due to merge

* add statusUpdater$ to AppBase

* export new types

* disable navlink depending on app status

* update generated doc

* update snapshots for disabled prop

* Address josh review

* Address review comments

* fix merge conflicts

* adapt changes due to merge

* update generated doc

* add comment and fix navlink url for custom url apps

* add AppNavLinkStatus type to split app/navlink states

* fix typo

* review comments and improvements

* add functional tests

* update generated docs and migration guide

* fix wrong type cast on AppsMenuProvider.readLinks

* properly type return of navigateToApp
2020-01-13 07:41:36 +01:00
Larry Gregory
8b0b09a4ea
Security - Role Mappings UI (#53620) (#54534)
* Initial role mappings UI

* apply design edits

* address PR feedback

* fix type cast for number field

* Update x-pack/legacy/plugins/security/public/views/management/role_mappings/edit_role_mapping/components/mapping_info_panel/mapping_info_panel.tsx

Co-Authored-By: Joe Portner <5295965+jportner@users.noreply.github.com>

* Cleanup FTR configuration, and handle role mapping 404 errors properly

* align naming of role mappings feature check

* Apply suggestions from code review

Co-Authored-By: Brandon Kobel <brandon.kobel@gmail.com>

* add missing test assertions

* inlining feature check logic

* switch to using snapshot

* use href instead of onClick

* adding delete unit test

* consolidate href building

* unify page load error handling

* simplify initial loading state

* documenting unconditional catch blocks

* use nodes.info instead of transport.request

* Apply suggestions from code review

Co-Authored-By: Brandon Kobel <brandon.kobel@gmail.com>

* move model out of LP into NP

* convert except_field_rule to except_any_rule

* docs, take 1

* update gif

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-11 20:05:46 -05:00
Pierre Gayvallet
6f9f68c13b
Allow the mounted application to prompt a confirm message before leaving (#54221) (#54437)
* add onAppLeave to AppMountParameters

* adapt legacy shims of app mount

* update generated doc

* returns properly typed AppLeaveAction from leave handler instead of raw strings

* add openConfirm to modal service and use it instead of window.confirm

* fix unit test

* update querystringinput snapshots

* add integration tests

* nits and review comments

* add functional tests
2020-01-10 13:46:28 +01:00
Joe Portner
74ebdf9b11
Add support for certificates in PKCS#12 (P12) key stores (#53810) (#54383)
Kibana now supports the usage of PKCS#12 (P12) key stores and trust stores for certificates and keys.
2020-01-09 14:47:16 -05:00
Nick Partridge
e56a7a2ee4
[Discover] fix histogram min interval (#53979) (#54324)
- Fixes issues involving min intervals for leap years and DST

Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
2020-01-09 08:41:43 -06:00
Matthew Kime
7479e2b487
Management - New platform api (#52579) (#54321)
* implement management new platform api
2020-01-08 23:01:35 -06:00
Dmitry Lemeshko
a6ea611344
Functional tests: refactor visualize_page (#53845) (#54126)
* add new POs and services

* split visualize_page

* refactor PO and tests

* lost changes

* more fixes

* fix tslint error

* refactor POs

* add vega_chart_page, refactor

* review fix

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-07 17:14:37 +01:00