Commit graph

2610 commits

Author SHA1 Message Date
Lee Drengenberg
0400ae3595
[6.4] Fix context test timing (#24949) (#25291)
* merge

* Removed unused Keys import
2018-11-08 15:41:52 -06:00
Marco Vettorello
0f677d87e8
Fixes pie charts on empty time window (#24031) (#24517)
* Fix missing check on empty response

* Fix test order and remove applying on each entered filter

* Change quotes on addNewFilterAggregation testsubject

* Rename test hasPieChartError method to expectPieChartError

* Refactor piechart zero-value slices data cleaning.

The previous implementation used to remove zero-value slices by mutating the vis data from the legend logic.
We moved the logic of "cleaning" the zero-value slices before rendering the piechart and/or the legend, so now piechart and legends are rendering themselves with the same data structure.

* Reverting _validatePieData method to the old one
2018-10-24 21:20:56 +02:00
Tim Roes
76c3e65fac
fixing updating editor state (#22869) (#24484)
* editor state update

* remove lockDirty

* Add functional tests

* Add data to functional tests
2018-10-24 15:27:12 +02:00
liza-mae
7d9ef5b427
Add argument passing to jenkins cloud job (#23538) (#23550) 2018-09-26 17:46:23 -06:00
Lee Drengenberg
db74ea25ed
Fix rbac test (#22912) (#22935)
* conditionalize Monitoring tests for Cloud testing

* make security_page/login wait

* revert these files from another PR

* revert these files from another PR
2018-09-11 15:15:18 -05:00
Marco Vettorello
c74da9cac9
Fix _source formatting (#22800) (#22865)
* Fix _source formatting

* Update unit test

* Add functional test

* Fix CI error, move functional test to the end
2018-09-10 12:07:02 +02:00
Lee Drengenberg
aed73026a5
Partial backport of #22341 (#22547) 2018-08-30 12:41:03 -05:00
liza-mae
5bc6ac4d83
Fix gauge test (#22472) (#22476) 2018-08-29 12:03:59 -06:00
Lee Drengenberg
8bd1b047dd
Wait for saveSearch to reload, retry on openSavedSearch (#21371) (#21494)
* Wait for saveSearch to reload, retry on openSavedSearch

* Added comments and moved a waitUntilLoadingHasFinished
2018-08-28 16:57:37 -05:00
CJ Cenizal
11e2fa1b6f
[6.4] Fix bug caused by importing saved objects with missing index patterns (#20379, #20379, #22068, #22029) (#22432)
* Add detection of invalid JSON searchSource to saved_object and dashboard (#20379)

* Reenable import objects tests (#21250)

* 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.

* fixing importing saved objects when there's a missing index pattern (#22068)

* fixing issue with importing vis with missing saved search (#22029)
2018-08-28 08:31:39 -07:00
Lee Drengenberg
1cdd5fffa6
Fix "visualize app linked saved searched should allow adding filters while having a linked saved search" (#22380) (#22418)
* Rebuild modulePath correctly if on Windows

* Adding 1 second sleep to fix flaky test

* Wait to find a gear in the visualization after clicking Edit

* Revert "Wait to find a gear in the visualization after clicking Edit"

This reverts commit 8dac3fbd63.

* use waitForRenderComplete and change that to 1s timeout

* Add retry.waitFor

* use waitFor and return === result

* Revert to files from another PR

* Remove a debug console.log
2018-08-27 21:01:51 -05:00
Lee Drengenberg
3014a0cc1e
Speed up dashboard add panel (#22278) (#22340)
* Rebuild modulePath correctly if on Windows

* Change how we find dashboard add panel is loaded

* Add and use find.byClassName instead of remote

* cleanup a comment
2018-08-27 09:36:10 -05:00
Rashmi Kulkarni
576c707d30
added log info for clarity while running the test with additional parameters (#22277) (#22313) 2018-08-23 12:37:44 -07:00
liza-mae
09135510e8
Emit error if api is not stopped and exit code is greater than zero (#22224) (#22258) 2018-08-22 12:15:54 -06:00
liza-mae
9223eedc29
Add option to run chrome headless. (#21972) (#22087)
* Add opton to run chrome headless. Mainly for windows tests which can't use xvfb.

* Update from review comments

Make environment variable Boolean, remove single quotes from keys, remove window size.
2018-08-20 13:39:09 -06:00
Nathan Reese
13b5c652b3
fix merge conflicts (#22062) 2018-08-16 07:35:30 -06:00
Tim Roes
89aafdcbf9
Fix selecting time range in embedded mode (#22053) (#22061)
* Fix selecting time range in embedded mode

* Add data-test-subj for table vis
2018-08-16 15:27:02 +02:00
Spencer
a6296dc8a8
[6.4] [retry] implement waitFor method (#21747) (#21970)
Backports the following commits to 6.4:
 - [retry] implement waitFor method  (#21747)
2018-08-14 15:27:54 -07:00
Spencer
124a351468
[6.4] [pageObjects/dashboard] check that save is complete before resolving (#21892) (#21946)
Backports the following commits to 6.4:
 - [pageObjects/dashboard] check that save is complete before resolving  (#21892)
2018-08-13 17:22:46 -07:00
Matt Bargar
d45b10b21d [6.4] Fix available fields option toggle (#21730) (#21758)
* Fix available fields option toggle (#21730)

a36b87a#diff-aff92ff718af4b68d02f030d8a438754 added an ng-if around the available fields button element. ng-if creates a child scope. The ng-click on the button directly modifies scope state. As a result, when the ng-if was added, that ng-click began modifying the ng-if's child scope instead of the parent scope.

The best solution would be to update the discFieldChooser directive to use the controllerAs property so its scope variables are namespaced. However, this is a bit risky because I'd need to make sure to update every single scope variable reference in the template, and it's a relatively large template. Since we'd like to backport this to 6.4 I've taken the less risky route of adding $parent to the scope reference inside the ng-if block.

* forgot I needed this one too
2018-08-08 13:04:28 -07:00
Marco Vettorello
08f1cfbd7c
[6.4] Fix hidden ticks when using log scale (#21507) | Skip scale tick tests because of possible flakyness (#21641) (#21647)
* Fix hidden ticks when using log scale (#21507)

* Add support for vertical axis

The vertical axis scale has an inverted range (max, min) and we need to compute the absolute scale width instead.

* Add functional test for Y axis scale type  switching

* Remove unnecessary waitUntilLoadingHasFinished

* Skip scale tick tests because of possible flakyness (#21641)
2018-08-03 17:18:43 +02:00
Peter Pisljar
2d4a54efa5
[6.4] fixes pinned filters in visualize and dashboard (#21463) (#21633)
* fixing embedded mode in visualize (#21468)

# Conflicts:
#	test/functional/config.js
#	test/functional/services/index.js

* fixing tests
2018-08-03 15:55:18 +02:00
Spencer
c937bebf1e
[6.4] [kbn-test] convert kibana-install-dir flag to installDir option (#21317) (#21627)
Backports the following commits to 6.4:
 - [kbn-test] convert kibana-install-dir flag to installDir option  (#21317)
2018-08-02 19:32:52 -07:00
Nathan Reese
08e8a66f31
set pause to 'true' when refresh interval is zero (#21498) (#21550)
* 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 11:15:04 -06:00
Nathan Reese
1e7d3f7bca
fix merge conflicts (#21546) 2018-08-01 11:13:30 -06:00
Peter Pisljar
0213bc745a [6.4] fixing embedded mode in visualize (#21468) (#21523)
* fixing embedded mode in visualize (#21468)

# Conflicts:
#	test/functional/config.js
#	test/functional/services/index.js

* Fix tests for 6.4
2018-08-01 14:39:35 +02:00
Peter Pisljar
0ec3df5332
fixing error with average bucket pipeline aggregation (#21400) (#21521) 2018-08-01 11:27:05 +02:00
Peter Pisljar
e999a9f4bc
fixing editor bug with apply being disabled in some cases (#21333) (#21385) 2018-07-30 10:15:30 +02:00
Stacey Gammon
82b1499451
Fix refreshed dashboard losing time range (#20858) (#21267)
* 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:56:35 -04:00
Lee Drengenberg
b62d01925a
Add method to wait for loading to complete in Add Panel table (#21109) (#21247)
* Add method to wait for loading to complete in Add Panel table

* remove extra retry loop
2018-07-25 18:45:39 -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