Commit graph

2799 commits

Author SHA1 Message Date
Spencer
0f12ecf0dd
[kbn-test] convert kibana-install-dir flag to installDir option (#21317) (#21626)
* [kbn-test] convert kibana-install-dir flag to installDir option

* [kbn-test] replicate kibana-install-dir handling to startServers

* [ftr] try running functional tests in production in CI

* Revert "[ftr] try running functional tests in production in CI"

This reverts commit e5b94aa024.

* [core/public/legacyPlatform] exclude ui/test_harness from the distributable

* [optimizer] fix `process.env.IS_KIBANA_DISTRIBUTABLE` definition

* [optimizer] only define `process.env.IS_KIBANA_DISTRIBUTABLE` when needed

Adding a `webpack.DefinePlugin` slows down the optimizer a small amount,
so only apply it when it is necessary, and skip it if it is going to
be defined as "false".

* [kbn-test/startServer] don't run in --dev mode if running from dist

* [ftr/kibanaServer/version] attach `-SNAPSHOT` suffix to version if running build_snapshot
2018-08-02 18:52:07 -07:00
Nathan Reese
0b45b125cb
Global time range in URL overwritten in certain situations. (#21440) (#21568)
* move global state update from kbn_global_timepicker to timefilter

* add functional test

* update time and refreshInterval when either update

* use same function name from kbn_global_timepicker

* call globalState.save in context of a digest cycle

* ensure callers of registerTimefilterWithGlobalState pass in
2018-08-02 15:56:34 -06:00
Chris Roberson
c3026cbff7
[Monitoring] Support legacy use cases for passthrough (#21211) (#21487)
* Support legacy use cases for passthrough

* Support generic case too

* Add legacy flag

* Do not format api field names in legacy mode

* Add basic test for legacy parameter

* Add more tests
2018-08-02 17:36:18 -04:00
Jen Huang
05155c9301
Fix flaky context filters tests (#21511) (#21566) 2018-08-01 16:42:58 -07:00
Stacey Gammon
ee2a283cc4
Skip flaky tests (#21439) (#21553) 2018-08-01 15:04:11 -04:00
Nathan Reese
dc34879948
set pause to 'true' when refresh interval is zero (#21498) (#21549)
* set pause to 'true' when refresh interval is zero

* keep original assertion

* fix expect message in functional tests now that pause is set to true

* fix executorProvider mocha test
2018-08-01 13:03:34 -06:00
Peter Pisljar
fa625ef9e5 fixing error with average bucket pipeline aggregation (#21400) (#21520) 2018-08-01 15:45:56 +02:00
Peter Pisljar
b3fe4cfb44
fixing embedded mode in visualize (#21468) (#21522) 2018-08-01 11:27:13 +02:00
Lee Drengenberg
01a2771e98
Wait for saveSearch to reload, retry on openSavedSearch (#21371) (#21493)
* Wait for saveSearch to reload, retry on openSavedSearch

* Added comments and moved a waitUntilLoadingHasFinished
2018-07-31 12:26:24 -05:00
Nathan Reese
d02879d2c2
Move EuiComboBox functional test utility functions into own service (#21219) (#21451)
* Move EuiComboBox utility functions into its own service

* remove old functions from visualize page object

* use waitForDeletedByClassName instead of retry and exists to ensure no longer loading

* wait for options loading when getting options list
2018-07-30 18:24:10 -06:00
Peter Pisljar
b0c7f8d712
fixing editor bug with apply being disabled in some cases (#21333) (#21384) 2018-07-30 14:06:46 +02:00
Stacey Gammon
38978a07ae
Add pluggable panel action tests (#20163) (#21378)
* Add pluggable panel action tests

* address code review comments

* update inspector snapshot

* remove temp declared ts module now that eui has EuiFlyout typings

* address code comments
2018-07-29 19:24:40 -04:00
CJ Cenizal
fa9575e69f
Re-enable Dashboard time changes functional test. (#21323) (#21373) 2018-07-27 15:56:55 -07:00
Bill McConaghy
b4790ea924
better fix for flaky management settings test (#21171) (#21368)
* better fix for flaky management settings test

* implementing better click strategy for toggleAdvancedSettingCheckbox

* converting all of settings page to use preferred styles for clicks and finds

* PR feedback

* fixing issue with missing method

* fixing issue with missing method

* adding missing method

* fixing test

* fixing test issue
2018-07-27 17:29:21 -04:00
Tim Roes
053a8e0a27
Wait for visualizations to render in tests (#21258) (#21357)
* Wait for visualizations to render

* Use Visualize.waitForRender on dashboard

* Enable previously flaky dashboard tests again

* Add data-loading for initial render

* Remove unnecessary timeout
2018-07-27 21:56:52 +02:00
CJ Cenizal
fbb042ecb1
Verify that we've navigated to Settings by checking the title. (#21245) (#21321)
* Fail the consuming test if navigation to settings is unsuccessful.
* Add testSubjects.existOrFail helper.
2018-07-27 11:59:23 -07:00
CJ Cenizal
f3e0ef6134
Reenable import objects tests (#21250) (#21320)
* Reenable import objects tests. Refine their assertions. Add primary callout to indicate completion of import process when the user has opted to not import anything.
2018-07-26 18:24:45 -07:00
Stacey Gammon
1e803e7fe5
Fix refreshed dashboard losing time range (#20858) (#21264)
* Add test that would have caught the bug

* Initialize global state with current time range

* Fix issue with failing tests - need to remove added "t" parameter to the url in the new tests

* remove unneccessary extra call

* Fix tests that failed due to globally added time in new tests

* Update home page test to not care about any state.
2018-07-26 10:29:13 -04:00
Lee Drengenberg
ae966b57e6
Add method to wait for loading to complete in Add Panel table (#21109) (#21246)
* Add method to wait for loading to complete in Add Panel table

* remove extra retry loop
2018-07-25 18:45:09 -05:00
Bill McConaghy
df431c1287
fixing flaky management settings test (#21123) (#21155)
* fixing flaky management settings test

* fix for the fix (awaiting results of find)
2018-07-24 14:13:20 -04:00
liza-mae
67addab4eb
Shell script to run kibana tests on cloud via Jenkins (#21107) (#21120)
* Shell script to run kibana tests on cloud via Jenkins

* Add comment explaining cloud setup
2018-07-24 11:51:47 -06:00
Chris Roberson
d31e9978f7
[Monitoring] Remove kibana_stats.requests.status_codes from bulk uploader (#20855) (#21149)
* Remove `status_codes` from bulk uploader

* Remove more references to `status_codes`
2018-07-24 12:53:43 -04:00
Nathan Reese
286843ac64
avoid day long gaps in sample data (#20897) (#21070)
* avoid day long gaps in sample data

* avoid using toISOString to avoid an timezone problems

* unskip sample test now that problem is fixed

* use much better cj algorithm for translating time

* cjcenizal review updates

* update funtion name in install.js

* push source reference date back a week
2018-07-23 06:20:01 -06:00
Nathan Reese
54d4c5332c
Change painless scripted field (#21026) (#21046)
* Change painless scripted field

* Remove wrong char

* Remove invalid escape chars
2018-07-20 14:41:52 -06:00
Bill McConaghy
6c5d885c38
Reactify users roles (#20739) (#21028)
* partial progress on reactifying users

* progress on EUIfication of users screen

* removing Angular stuff

* adding data-test-subj="passwordConfirmationInput"

* removing data-test-subj="userFormEmailInput" refs from tests

* fixing selector for role assignment

* some functional test fixes

* fixing some functional tests

* fixing last functional test

* removing stray console log

* fixing warnings

* attempting to fix flaky test

* trying again to fix flaky test

* PR feedback

* PR feedback

* fixing issue where form tried to submit

* adding sleep to allow user to load

* Design edits

Mainly adding wrapper EUI page elements, but also shifted around form elements.

* Fixed console error and added responsive prop to table

* addressing PR feedback

* A few more PR feedback

- Fixed alignment of table
- Removed the tooltip from the lock icon and placed the description inline.
- Changed delete button to an empty button

* addressing more PR feedback

* adding email field back in

* adding back username validation

* restoring original error message

* fixing dumb null error
2018-07-20 10:15:32 -04:00
Tim Sullivan
8fc67c064a
Stats API: implement the "kibana status" spec from the Monitoring data model for stats (#20577) (#20956)
* [Stats API] Set API field names per spec

* fix jest tests

* fix api integration test

* trash the original metrics collector

- constantly accumulating stats over time does not align with the existing behavior, which is to reset the stats to 0 whenever they are pulled

* move some logic out of the collector types combiner into inline

- change the signature of sourceKibana

* Make a new stats collector for the API

- to not clear the data when pulling via the api
- fetching is a read-only thing

* isolate data transforms for api data and upload data

* no static methods

* remove external in bytes

* remove the _stats prefix for kibana and reporting

* update jest test snapshot

* fix collector_types_combiner test

* fix usage api

* add test suite todo comment

* reduce some loc change

* roll back mysterious change

* reduce some more loc change

* comment correction

* reduce more loc change

* whitespace

* comment question

* fix cluster_uuid

* fix stats integration test

* fix bulk uploader test, combineTypes is no longer external

* very important comments about the current nature of stats represented and long-term goals

* add stats api tests with/without authentication

* fix more fields to match data model

* fix more tests

* fix jest test

* remove TODO

* remove sockets

* use snake_case for api field names

* restore accidental removal + copy/paste error

* sourceKibana -> getKibanaInfoForStats

* skip usage test on legacy endpoint

* fix api tests

* more comment

* stop putting a field in that used to be omitted

* fix the internal type to ID the usage data for bulk uploader

* correct the kibana usage type value, which is shown as-is in the API

* more fixes for the constants identifying collector types + test against duplicates

* add a comment on a hack, and a whitespace fix
2018-07-19 12:03:57 -07:00
liza-mae
db6e57ed71
skip test (#20986) (#20992) 2018-07-19 12:01:20 -06:00
Nathan Reese
8ea7af9511
merge conflicts (#20959) 2018-07-18 21:11:48 -06:00
Nathan Reese
fe2f671d0a
[home] Include ability to publish kibana saved objects from add data tutorial (#19559) (#20939)
* add savedObjects to tutorial schema, add savedObjects to APM, add bulk create endpoint

* SavedObjectInstaller component

* bulkCreate fixes

* fix tutorial jest test

* update from sqren review

* updated copy

* move saved object json into seperate json files

* minor commit clean up

* ensure isMounted before setting state after async call, allow manifest to customize saved object install message

* remove duplicated logic for getting config xpack.apm.indexPattern

* refactor get index pattern title

* add functional test that loads APM saved objects

* remove extra await

* display overwrite message

* use angular free savedObjectClient

* functional test cleanup

* handle bulkRequest exception and add jest tests for SavedObjectsInstaller

* use Promise.reject instead of throw

* update copy
2018-07-18 12:17:54 -06:00
liza-mae
0b39582294
Improve visualization tests (#20782) (#20932)
* Improve tests for histogram, tag cloud, input controls and enable lab mode.

* enable skipped tests

* Update shakespeare test navigation to visualize

* Add sleep to shakespeare test

* Skip shakespeare test for now, it is not clear why it is failing and does not fail locally, need the other tests to run in CI

* Revert selector for selectAggregation, re-enable shakespeare test

* skip vega spec text test, was not fixed with changes

* Enable only visualize tests to run, need to see results and it's being blocked by other test failures

* Enable all tests again, visualization tests all passed

* Skipping sample data test due to bug #20807, let's see if rest of the tests pass
2018-07-18 09:08:50 -06:00
liza-mae
6f7bc88b09
Add telemetry false for dashboard tests (#20901) (#20906) 2018-07-17 20:48:32 -06:00
Nathan Reese
2747d5e848
fix flaky input control chained test (#20642) (#20886)
* add check that combobox was successfully cleared

* run test 25 times

* checkin the correct files this time

* re-enable skipped test

* remove extra test loaders
2018-07-17 11:24:26 -06:00
liza-mae
ecafae1a6e
Skipping test due to bug #20807 (#20809) (#20812) 2018-07-14 18:31:35 -06:00
John Dorlus
38c44389cf
[Management] Relationships API test coverage (#19737) (#20788)
* Added coverage around search and dashboard tests.

* Added tests to check for whether the resource is available. If not, return 404.

* Skipped two tests due to https://github.com/elastic/kibana/issues/19713. Added error handling for relationships API for when no result is found. Return 404.

* Applied patch file per PR.

* Applied Chris patch and tested locally. No failures.

* Removed ajv and utilised joi for schema validation.

* Fixed package.json.

* Copied package.json description from master.

* Reverted package.json and made proper edit.
2018-07-13 15:33:37 -04:00
Lee Drengenberg
885eb1039e
refactor login page check, turn off telemetry (#17435) (#20722)
* refactor login page check, turn off telemetry

* significant refactor of navigateTo

* replace slashes with _ in test failure output html files

* re-do out of date PR
2018-07-12 11:57:47 -05:00
Nathan Reese
988784188c
remove angular dependencies in SavedObjectClient (#20384) (#20693)
* create saved object client that is native javascript

* fix savedObjectClient unit tests

* get saved object client from chrome when being used outside of angular

* update error handlers to pull status code from FetchError

* add some debug messages to failing functional test

* revert changes to management/_objects

* add clicks to import done in import objects test

* take screenshots of test only failing in CI

* remove functional test screenshot code since test is passing in CI now

* remove unused file, clean up saved_objects_client test to not use global, add test to error_auto_create_index to ensure compatibility with kfetch errors

* add body to kfetch error

* update savedObjectClient.bulkCreate

* add bulkCreate wrapper to SavedObjectsClientProvider

* mark _createSavedObject and _processBatchQueue as private methods
2018-07-12 07:25:14 -06:00
Peter Pisljar
6c4b4d2437
Remove Angular from visualize (#20295) (#20593) 2018-07-11 14:22:50 +02:00
Nathan Reese
e5223de945
disable flaky input controls vis test (#20637) (#20643)
* disable flaky input controls vis test

* only skip flaky test
2018-07-10 16:37:00 -06:00
Nathan Reese
9e6c4bfba9
merge conflicts (#20522) 2018-07-10 11:37:42 -06:00
Nathan Reese
a0bd039e2e
[input controls] update dropdown suggestions when filtered (#18985) (#20604)
* input controls - re-fetch options list user input

* fix jest tests

* add functional test case

* remove unneeded async and await

* use fetchAsRejectablePromise instead of fetch to avoid kill kibana session when fetching agg results

* only show options once field is selected

* clean up list control editor to only display options when field selected and only display dynamic checkbox when field is string

* do not use size when using dynamic options

* display disabled toggle when field is not string field, allow searching in middle of word

* no tooltip for disabled dyncamic options, just change help text

* fix functional test expects since search now includes more than terms that start with
2018-07-10 07:37:35 -06:00
Nathan Reese
a0add1bf5b
Upgrade to EUI 1.1.0 (#20411) (#20529)
* Upgrade to EUI 1.0.1

* upgraded to eui 1.1.0

* fix setInspectorTablePageSize function in functional tests

* better comment about basic table pagination buttons
2018-07-06 13:33:27 -06:00
Peter Pisljar
92ed45719e
refactoring geohash agg to not use vis (#20298) (#20510) 2018-07-06 10:11:40 +02:00
Tim Roes
b6a2ec51e5
Fix flaky TSVB test (#20481) (#20483) 2018-07-05 14:31:58 +02:00
Tim Roes
4cc9fc30a8
Inspector enhancements (#20452) (#20474)
* Rename trigger button to Inspect

* Change default page size to 20

* Change request description layout

* Fix functional tests

* Fix functional test

* Fix more functional tests
2018-07-05 10:52:05 +02:00
Peter Pisljar
941533eb25
adding dissabled aggs functional tests (#20454) (#20458) 2018-07-05 08:27:14 +02:00
Tim Roes
f85af486ee
Skip flaky vega test (#20127) (#20468)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-07-04 19:41:14 +02:00
Peter Pisljar
53d38799ac
Split editor state from saved state (#20323) (#20451) 2018-07-04 18:53:53 +02:00
Peter Pisljar
b5fac1b9a6
[6.x] Move visualize editor out of visualize directive (#20263) (#20404) 2018-07-04 17:39:08 +02:00
Peter Pisljar
ac0eb944c6
removing angular dependency from base and react vis types (#20386) (#20464) 2018-07-04 16:15:04 +02:00
Nathan Reese
62deaa896b
Remove display from timefilter refreshInterval state (#20348) (#20445)
* Remove display from refresh state

* fix spelling error, ensure garbage cannot be added to timefilter state
2018-07-03 19:09:12 -06:00