Commit graph

2114 commits

Author SHA1 Message Date
spalger 3c0d12a50d Merge branch 'master' of github.com:elastic/kibana into feature/designMergeSnakeCase 2016-03-16 10:08:53 -07:00
LeeDr 3eeea899f5 Merge branch 'master' into visualizeTestChange 2016-03-16 09:50:15 -05:00
Matthew Bargar 98f9f53008 Merge branch 'master' into feature/ingest 2016-03-15 19:21:16 -04:00
Matthew Bargar 41fe73e57e Support both GET and POST in the count API 2016-03-15 10:59:45 -04:00
Matthew Bargar d12e2990be Count API - count the number of documents in an index pattern 2016-03-15 10:48:58 -04:00
spalger d77de4e1ca Merge branch 'master' of github.com:elastic/kibana into renameAllFiles 2016-03-15 00:35:01 -04:00
Matthew Bargar d5ec1f8ed3 Merge branch 'master' into feature/ingest 2016-03-14 18:33:30 -04:00
LeeDr 89aff0210f Changes to methods for getting more specific chart data to cover integration testing. 2016-03-14 14:40:53 -05:00
Nicolas Bevacqua ec037de9be [test] Consolidate elasticsearch URL in configuration file. Fixes #5555 2016-03-14 14:06:25 -03:00
Shaunak Kashyap f35c7122d2 More fun with spaces :| 2016-03-11 02:13:35 -08:00
Shaunak Kashyap 55cffbd706 Now too many spaces :| 2016-03-10 17:09:08 -08:00
Shaunak Kashyap bc76ba4f8d Missed a space :/ 2016-03-10 17:00:08 -08:00
Shaunak Kashyap acf9670ed7 s/(empty)/ - / in tests after reverting commit introducing (empty) 2016-03-10 16:51:48 -08:00
Shaunak Kashyap e92a07724d Fixing expected strings in text to match changes in actual output 2016-03-10 15:41:14 -08:00
spalger 7dda3709ca Merge branch 'renameAllFiles' into feature/design 2016-03-10 12:51:39 -07:00
Tyler Smalley 9502adedc1 Merge remote-tracking branch 'origin/master' into feature/design 2016-03-09 10:08:35 -08:00
Matt Bargar 4d7b468e3e Merge pull request #6121 from BigFunger/ingest-pipeline-setup-server
[ingest] Creates the simulate api route
2016-03-09 10:11:59 -05:00
Matthew Bargar 8f5777ed22 Add pipeline to api tests for ingest DELETE endpoint 2016-03-08 17:54:23 -05:00
Matthew Bargar ab5aebd5c8 Added some tests for pipelines in the ingest POST endpoint 2016-03-08 17:48:31 -05:00
Matthew Bargar 4ce5e7f323 Merge branch 'master' into feature/ingest 2016-03-08 10:14:09 -05:00
spalger 4fe8bbaeb8 [scenarioManager] snake_case baseDirs for scenarios 2016-03-07 15:11:11 -07:00
spalger 00bf02ab29 Merge branch 'master' of github.com:elastic/kibana into renameAllFiles 2016-03-07 14:09:39 -07:00
Matthew Bargar 2faa3ee2f5 Remove outdated mapping options that were copied over from logstash template 2016-03-04 15:48:14 -05:00
Matthew Bargar 2bb23ab1f1 Merge branch 'master' into feature/ingest 2016-03-04 14:50:18 -05:00
spalger 36cdae8281 [plugins] change plugin ids to be snakecase 2016-02-26 13:40:32 -07:00
Matthew Bargar 134e371176 test the actual set processor simulation output 2016-02-25 19:20:51 -05:00
Matthew Bargar 6b3f844264 use snake case throughout the ingest simulate API 2016-02-25 19:10:16 -05:00
spalger 42f936e633 [npm] remove requirefrom package 2016-02-24 14:50:12 -08:00
spalger af9ebba958 [rename] hunt down remaining non-snake path refs 2016-02-24 14:18:21 -08:00
spalger c1c8607f27 [rename] process previously dynamic imports 2016-02-24 13:36:12 -08:00
spalger 07b32d715f Merge branch 'chore/removeRequireFrom' into renameAllFiles 2016-02-24 13:33:57 -08:00
spalger 506c9939b9 [npm] remove requirefrom package 2016-02-24 13:30:02 -08:00
spalger 2422a988e5 [rename] rename all files to snake_case 2016-02-24 12:14:05 -08:00
Jonathan Budzenski bc10322c64 [timepicker] Set scope properly, update spinner selector on tests, wait for refresh button to hide 2016-02-11 15:41:56 -06:00
Jonathan Budzenski 9c8c7f4c47 [timepicker] Update test selector 2016-02-11 15:41:56 -06:00
Khalah Jones Golden f57ed8d068 Merge pull request #6169 from stormpython/legend
Design Changes to Visualize Legend
2016-02-10 21:24:06 -04:00
Khalah Jones Golden af5f0b6a2c Merge pull request #6170 from panda01/fix/nav-details
Fix/nav details
2016-02-10 19:47:24 -04:00
Shelby Sturgis d5c082996c removing legend tests 2016-02-10 15:46:18 -08:00
Khalah Jones-Golden 180aacd470 Merge remote-tracking branch 'upstream/feature/design' into fix/nav-details 2016-02-10 19:06:26 -04:00
Shelby Sturgis 400a31cc1e removing legend from Discover page, also removing functional tests for the legend on discover 2016-02-10 14:18:42 -08:00
Shelby Sturgis da2725d6c7 Merge remote-tracking branch 'upstream/feature/design' into legend 2016-02-10 10:08:00 -08:00
Jonathan Budzenski 70f5f996a3 [tests] Remove ng-scope from visualize action selector 2016-02-10 11:09:56 -06:00
Shelby Sturgis e7126127eb fixing broken tests 2016-02-09 23:33:02 -08:00
Matthew Bargar a6bf99a58f Use Joi schemas for validation instead of manual checks, separate server concerns from frontend code, and start enforcing snake case in simulate api 2016-02-09 22:34:28 -05:00
Timothy Sullivan 16300d6607 Merge remote-tracking branch 'upstream/master' into feature/design-merge-master 2016-02-09 17:07:09 -07:00
Khalah Jones-Golden 5b1576f0fc [Tests] Updated the tests with thte proper selector 2016-02-09 17:41:28 -04:00
Matthew Bargar fb7804431d Beginning work on integration tests for new ingest simulate API 2016-02-08 19:17:53 -05:00
spalger 9a4bb32385 [scenarioManager] use index:true rather than removal from 8d0d581577 2016-02-08 15:54:23 -07:00
spalger 728fbdbc71 [scenarioManager] do not mix index:analyzed and doc_values:true 2016-02-08 14:06:50 -07:00
spalger 10e97a4d75 Merge branch 'fix/failTestOnBadBulk' into upgrade/elasticsearch/master 2016-02-08 14:05:52 -07:00
spalger d248af5702 [scenarioManager] when bulk fails, report errors 2016-02-08 14:04:10 -07:00
spalger 8d0d581577 [scenarios] number types are not analyzable 2016-02-08 12:38:03 -07:00
spalger b605b66be7 [fixtures] fix syntax error 2016-02-05 18:23:12 -07:00
spalger 410029d271 [ScenarioManager] use new multi-field syntax 2016-02-05 10:27:39 -07:00
spalger 1e507a90b3 [elasticsearch/client] use bluebird for promises for better backward compat 2016-02-05 10:24:02 -07:00
Matthew Bargar 0e707fe72d Merge branch 'feature/ingest' into ingest/pipelineIngestAPI 2016-02-04 20:25:39 -05:00
Khalah Jones-Golden f7c98cc2d4 Merge branch 'feature/design' into feature/5.0 2016-02-04 13:06:43 -04:00
Jonathan Budzenski 1345c6aafd Merge pull request #6062 from jbudz/design/base_chart_color
[visualize] Change first chart color
2016-02-04 10:14:56 -06:00
Jonathan Budzenski 540a8af53b [visualize test] Update fill color 2016-02-02 14:58:14 -06:00
Matthew Bargar 9748328309 update new tests to work with add data landing page 2016-02-02 15:08:46 -05:00
Matthew Bargar 208ccabb84 Merge branch 'master' into feature/ingest 2016-02-02 13:44:37 -05:00
Khalah Jones-Golden 9d4d38d37b Merge remote-tracking branch 'upstream/master' into feature/5.0 2016-02-02 14:11:52 -04:00
Matthew Bargar 459338e0fa Merge branch 'master' into ingest/pipelineIngestAPI 2016-02-01 18:01:54 -05:00
Spencer c54b9ca6b7 Merge pull request #5891 from spalger/implement/mochaSetup
formalize mocha setup
2016-02-01 15:31:42 -07:00
Khalah Jones-Golden 033ae847ee [Tests] Updating the tests to cover html changes 2016-01-29 15:46:54 -04:00
LeeDr c43e43153b Fix ./Common to ./common 2016-01-28 17:34:52 -06:00
LeeDr 7327c250aa Change Common to common in _collapse_expand.js. 2016-01-28 17:25:33 -06:00
LeeDr eb77030f79 snake_case merged master. 2016-01-28 17:11:47 -06:00
LeeDr bc07598ab7 Merge branch 'master' into snake_case 2016-01-28 16:25:54 -06:00
LeeDr a4088bbacc snake_case test files. 2016-01-28 16:17:23 -06:00
Matthew Bargar 468c70066a Add pipeline support to ingest API POST endpoint 2016-01-28 13:41:45 -05:00
LeeDr 763c564d67 Merge branch 'master' into expandCollapse 2016-01-28 12:31:43 -06:00
Matthew Bargar 556b0cfbf7 Add index_pattern key to ingest api payload schema to make room for the pipeline 2016-01-27 17:41:12 -05:00
LeeDr a30a70964c Improve baseUrl function. 2016-01-27 09:16:08 -06:00
LeeDr ef9833f4a3 Missing a period. 2016-01-26 17:55:58 -06:00
LeeDr 91fe72c89a Allow either old Firefox Ctrl + C or new Firefox clipboard message. 2016-01-26 17:33:26 -06:00
LeeDr dc36197b55 New tests for expand/collapse discover tab legend and sidebar. 2016-01-26 15:36:54 -06:00
LeeDr 5073aa520c Share expectedToastMessage variable between tests, and comment about Firefox version changes message. 2016-01-26 12:30:09 -06:00
LeeDr 82d993adff Add 5 tests for Discover shared links 2016-01-25 20:39:27 -06:00
Matthew Bargar d262deaba2 use data-test-subj click create button in a less fragile manner 2016-01-25 17:09:15 -05:00
Matthew Bargar 97cb64c2ac updated new functional test to work with new page layout 2016-01-22 18:56:27 -05:00
Matthew Bargar 9c27e3d52a Merge branch 'feature/ingest' into ingest/addDataStart 2016-01-22 18:39:37 -05:00
Matthew Bargar 944b78a241 Update functional tests to know about the new add data landing page 2016-01-22 13:27:11 -05:00
LeeDr 696d50c0f2 Merge pull request #5975 from LeeDr/moreDiscoverTests
8 new discover tests, _field_data
2016-01-21 17:33:11 -06:00
LeeDr aeb45136d4 8 new discover tests, _field_data 2016-01-21 15:44:33 -06:00
Court Ewing d50c48bccb Configurable shield credentials for tests
While there are still hardcoded defaults, this change allows people to
specify custom credentials via environment variables for each shield
role in our tests.
2016-01-21 13:13:17 -05:00
LeeDr c477ab40a8 Minor changes from review comments. 2016-01-20 12:14:49 -06:00
LeeDr 3da9d84fe7 Merge branch 'master' into addDiscoverIntervalTests 2016-01-20 08:27:07 -06:00
LeeDr 6a84f5cf1b Added tests that change the interval through most of the choices and check the data. 2016-01-19 18:05:14 -06:00
spalger 72ab9aa7b0 [devServer] include self-signed certificates for testing
When running the Kibana server in --dev mode the server will use the new `test/dev_certs/server.key/crt` files to provide SSL by default. These files are not secure, and should not be used in production, but are fine for local development. Directions for trusting these certs are linked from the CONTRIBUTING.md file and the new ssl config can be disabled completely by passing `--no-ssl` to the server on startup.
2016-01-19 14:19:25 -07:00
LeeDr 40f8450d61 Fix screenshots Data Table and Tile Map. Add comments.
Fixes #5932
2016-01-19 19:07:54 +00:00
LeeDr 86ab222d4d Fix screenshots Data Table and Tile Map.
Fixes #5932
2016-01-19 19:07:54 +00:00
LeeDr 667372194f Fix screenshots Data Table and Tile Map.
Fixes #5932
2016-01-19 19:07:54 +00:00
LeeDr 540ca8e267 Revert "Fix screenshots Data Table and Tile Map."
This reverts commit b6f67920aa.

Fixes #5932
2016-01-19 19:07:54 +00:00
LeeDr df6c34f4ca Fix screenshots Data Table and Tile Map.
Fixes #5932
2016-01-19 19:07:54 +00:00
LeeDr f480b9b510 Fix screenshots Data Table and Tile Map.
Fixes #5932
2016-01-19 19:07:53 +00:00
LeeDr c0d049c050 Fix screenshots with minimal sleep calls. Remove a couple unnecessary promise chains in visualizePage.
Fixes #5932
2016-01-19 19:07:53 +00:00
LeeDr 967cc0c0e3 switch from sleeps to waiting for visualize-legend.
Fixes #5932
2016-01-19 19:07:53 +00:00
LeeDr e2face2071 Trying 4 sec sleep before screenshots.
Fixes #5932
2016-01-19 19:07:53 +00:00
LeeDr d41f985f53 Trying 4 sec sleep before screenshots.
Fixes #5932
2016-01-19 19:07:53 +00:00
LeeDr 4c5f822429 Initial test to see if screenshot timing is the prob.
Fixes #5932
2016-01-19 19:07:53 +00:00
LeeDr 24b0177688 Fix screenshots Data Table and Tile Map. Add comments. 2016-01-19 12:41:17 -06:00
LeeDr 127e8e67dd Fix screenshots Data Table and Tile Map. 2016-01-19 12:20:09 -06:00
LeeDr 21e996bd88 Fix screenshots Data Table and Tile Map. 2016-01-19 10:50:30 -06:00
LeeDr 24fa2d41f9 Revert "Fix screenshots Data Table and Tile Map."
This reverts commit b6f67920aa.
2016-01-19 10:39:51 -06:00
LeeDr b6f67920aa Fix screenshots Data Table and Tile Map. 2016-01-19 10:28:05 -06:00
LeeDr b9d626aa70 Fix screenshots Data Table and Tile Map. 2016-01-19 10:08:33 -06:00
LeeDr 720faf45dd Fix screenshots with minimal sleep calls. Remove a couple unnecessary promise chains in visualizePage. 2016-01-18 20:40:54 -06:00
LeeDr 9157cf7e16 switch from sleeps to waiting for visualize-legend. 2016-01-18 16:50:40 -06:00
LeeDr 55330638c7 Trying 4 sec sleep before screenshots. 2016-01-18 13:43:40 -06:00
LeeDr a7dce5012c Trying 4 sec sleep before screenshots. 2016-01-18 13:09:30 -06:00
LeeDr 68a46618ab Initial test to see if screenshot timing is the prob. 2016-01-18 11:37:51 -06:00
Court Ewing 2ef3f19621 Merge pull request #5884 from epixa/5562-tests-with-shield
Basic support for running server tests with shield
2016-01-15 18:08:13 -05:00
LeeDr cc882ca539 Remove unused variable. 2016-01-15 12:19:56 -06:00
LeeDr 84a54618da Remove commented code. 2016-01-15 12:18:58 -06:00
LeeDr cefbb5ede4 Fix multiple problems with discover 'should show the correct bar chart'. UTC timezone, array.length, improve cssSelector. 2016-01-15 12:00:15 -06:00
Court Ewing 4b0ac79c6f Inline documentation for kbn_server test utility 2016-01-15 11:48:46 -05:00
spalger d3fd053d0a [mochaOpts] use full option name 2016-01-13 16:51:29 -07:00
spalger 7b15ee05d1 [mochaSetup] added notes to explain the purpose for the workarounds in place 2016-01-13 16:50:55 -07:00
spalger 680bf2102c [mocha] setup auto-release-sinon for server tests 2016-01-12 16:36:02 -07:00
spalger c87aec3dae [mocha] move setup work into module
with https://github.com/elastic/kibana/pull/5553 we added command line flags the told mocha it was supposed to use babel. This changes the strategy here and instead uses mocha's -r option (and it's mocha.opts file to specify it). This means that using mocha directly from the command line still works, and that we have a place where we can do other setup work.
2016-01-12 16:26:42 -07:00
Court Ewing eccb3d6f97 Basic support for running server tests with shield
These changes will make sure the kibana server in tests is using shield
credentials, as are any requests made through the kbn_server test
helper.

The current credentials are hardcoded based on our internal best
practices, but they should be made configurable in the future.

This will pass credentials to ES regardless of whether shield is
actually enabled, but that will have no negative effect if shield
happens to be disabled.
2016-01-12 17:16:10 -05:00
Court Ewing 41de597e42 Abstract kbn server setup in tests
The new kbn_server test utility allows us to setup KbnServer instances
with consistent defaults and make requests through a common test-only
interface. These abstractions allow us to configure global behaviors
such as shield authorization for all of our tests rather than
re-implementing it in every test.
2016-01-12 17:11:58 -05:00
Matthew Bargar 4f5aa95fca ingest API requires at least one field 2016-01-07 17:58:09 -05:00
Matthew Bargar e1bb5f58c4 return 204 for successful POST an use JSON for all response payloads 2016-01-06 15:59:07 -05:00
Matthew Bargar e9810328a9 Change the name of the index_pattern api to ingest and remove the JSON API payload wrapper 2016-01-06 15:48:12 -05:00
Matthew Bargar b4ef144ae0 Created more robust defaults and removed support for overriding them 2016-01-06 12:40:37 -05:00
Matthew Bargar a0ac2135d7 Remove endpoints that we don't need for the Add Data UI 2016-01-05 17:09:27 -05:00
Matthew Bargar fe296b4b36 First pass at adding support for fields that are part of an object 2016-01-05 16:45:08 -05:00
Matthew Bargar d4e85bc7da Better defaults for scripted fields and prevent scripted fields from getting in the index template 2016-01-04 17:12:58 -05:00
Matthew Bargar 1b916a34cf Added API tests for initialization of default index pattern field values and creation of index template field mappings 2016-01-04 16:44:49 -05:00
Matthew Bargar 3fae90fa0b Remove the concept of a template resource from the index pattern API 2016-01-04 15:52:57 -05:00
Matthew Bargar bc0406157d Remove PUT endpoint 2016-01-04 13:33:15 -05:00
Matthew Bargar c1a32aa8de Make pattern deletion more lenient by allowing include=template even if a template doesn't exist. Makes deleting everything easier, you can always just add the include param 2015-12-29 13:37:50 -05:00
Matthew Bargar 1568ddcb5f add test for field mapping normalization 2015-12-29 13:37:50 -05:00
Matthew Bargar 3eae7cdf54 Update GET tests for new functionality 2015-12-29 13:37:50 -05:00
Matthew Bargar 56b729ac61 updating DELETE tests for ability to optionally delete template along with pattern 2015-12-29 13:37:50 -05:00
Matthew Bargar 6b28312e69 Update DELETE to use template id included in pattern resource instead of relying on a naming convention 2015-12-29 13:37:50 -05:00
Matthew Bargar 1f6105591d cleaning up tests 2015-12-29 13:37:50 -05:00
Matthew Bargar 97cb8a0548 remove marvel index pattern example from tests to avoid conflicts 2015-12-29 13:37:50 -05:00
Matthew Bargar b9cf052bc1 update PUT endpoint for new resource schema 2015-12-29 13:37:50 -05:00
Matthew Bargar bf45998057 Update GET single pattern endpoint to use the new resource schema 2015-12-29 13:37:50 -05:00
Matthew Bargar 636b444bf5 Updated GET-all api endpoint and tests to use the new resource schema 2015-12-29 13:37:50 -05:00
Matthew Bargar 7ce3f1e790 update delete tests with new fixture name 2015-12-29 13:37:50 -05:00
Matthew Bargar 0ff6696dd2 update POST api functional tests for the new resource schema 2015-12-29 13:37:50 -05:00
Matthew Bargar 8ae714b0c2 fix key name 2015-12-29 13:37:50 -05:00
Matthew Bargar 66b3c1eb97 Beginning to update index pattern api resource schema 2015-12-29 13:37:50 -05:00
Matthew Bargar 62bbd4bd5c Use snake_case in API payloads 2015-12-29 13:37:50 -05:00
Matthew Bargar f47c4c28f6 Fix require for casesensitive systems 2015-12-29 13:37:50 -05:00
Matthew Bargar c5565d72c6 Give API tests their own intern config
Adding a 'suites' property to the existing intern configuration caused
an error to be thrown at the beginning of the functional test run. Even
if the value of 'suites' was just an empty array. The existence of the
property seemed to enabled execution of the config file in the selenium
browser because it complained about not having the node require
function. To fix this, I created a separate api test config file without
the node require and removed the 'suites' property from intern.js.
2015-12-29 13:37:50 -05:00
Matthew Bargar 00c535910c Move the API into the kibana plugin since index patterns are a core part of kibana 2015-12-29 13:37:50 -05:00
Matthew Bargar 7bf6264c09 adhear to new API naming conventions 2015-12-29 13:37:50 -05:00
Matthew Bargar dbc512e7e4 test GETting an index-pattern by ID 2015-12-29 13:37:50 -05:00
Matthew Bargar 4b60a3eda3 Test GETting all index patterns with creation of test data before suite runs 2015-12-29 13:37:50 -05:00
Matthew Bargar d8d605bf74 Test DELETE of index-patterns 2015-12-29 13:37:50 -05:00
Matthew Bargar 32768725df test 404 response when PUTting to a non-existent document 2015-12-29 13:37:50 -05:00
Matthew Bargar 53d35573ee Test 400 responds for invalid PUT payloads 2015-12-29 13:37:50 -05:00
Matthew Bargar 526e8e7e74 Don't allow updates to title when PUTting index-patterns 2015-12-29 13:37:50 -05:00
Matthew Bargar 68d3be8b8d Test PUTting index patterns 2015-12-29 13:37:50 -05:00
Matthew Bargar 118608cd95 fix function name 2015-12-29 13:37:50 -05:00
Matthew Bargar 675bb7c0c6 Ensure that field mappings are given a type 2015-12-29 13:37:50 -05:00
Matthew Bargar 2dcbbf6006 Refactor tests into modules 2015-12-29 13:37:50 -05:00
Matthew Bargar 565f261da5 adding a bunch of tests for the POST index-patterns endpoints 2015-12-29 13:37:50 -05:00
Matthew Bargar f3ee0ce361 Added Joi schema for index pattern resource and tests to make sure it works for validating payloads 2015-12-29 13:37:50 -05:00
Matthew Bargar 08d6685a41 return from handler in empty payload check to prevent error from being thrown 2015-12-29 13:37:50 -05:00
Matthew Bargar a2ba98c360 test for missing payload with POST 2015-12-29 13:37:50 -05:00
Matthew Bargar e6100c2f4e First API test 2015-12-29 13:37:50 -05:00
LeeDr 290974770d Reduce elasticsearch client timeout back down to 5 minutes. Use fieldName variable consistently in _index_pattern_popularity. 2015-12-23 11:09:07 -06:00
LeeDr 6a0966ab0a Merge branch 'master' into testVisualize 2015-12-22 15:28:07 -06:00
LeeDr b5897c2c3a Revert "Revert "Rename test:ui to test:browser so will run on Jenkins.""
This reverts commit b7935865dc.

Fixes #5750
2015-12-22 16:45:06 +00:00
LeeDr 0a67efb52b Revert "Rename test:ui to test:browser so will run on Jenkins."
This reverts commit 5d9d695268.

Fixes #5750
2015-12-22 16:45:06 +00:00
LeeDr 4f5b641580 Rename test:ui to test:browser so will run on Jenkins.
Fixes #5750
2015-12-22 16:45:06 +00:00
LeeDr 2a8c79d350 Bump Selenium version from 2.47.1 to 2.48.2 to work with latest Firefox 43. Add more debug logging around get url.
Fixes #5750
2015-12-22 16:45:05 +00:00
Rashid Khan 245ae24c4c Merge pull request #5729 from spalger/pr/5670
Resubmission of #5670
2015-12-21 16:44:10 -07:00
LeeDr 582f5fe80d Wrap the get call with debug logging so we can debug the test hanging. 2015-12-19 10:23:45 -06:00
LeeDr 723931356c Merge branch 'master' into testVisualize 2015-12-18 14:11:36 -06:00
LeeDr 854489353c Make getUrl.noAuth use getUrl. Fix elasticsearch and kibana ports in serverConfig.js. 2015-12-17 10:12:33 -06:00
LeeDr d01db9334b Initial changes (only the UI automation changes) to support running tests with Shield (works without Shield also). 2015-12-16 15:57:43 -06:00
Eric Herot 8479a38e12 Don't bother setting the number of index replicas when creating kibana-int (relates to #3877) 2015-12-14 11:06:41 -05:00
LeeDr 123caf464c Remove one used self var.
Fixes #5526
2015-12-08 21:01:13 +00:00
LeeDr 132552ce58 Fix cases.
Fixes #5526
2015-12-08 21:01:13 +00:00
LeeDr 859e115802 Fix cases.
Fixes #5526
2015-12-08 21:01:13 +00:00
LeeDr a8918278f2 Changed 3 console.logs to common.debugs. Ran with debug: false to make sure I had clean output.
Fixes #5526
2015-12-08 21:01:12 +00:00
LeeDr 8230905cd4 Not sure why Jenkins passed and Travis failed to find the timezone selection. Adding 1 second sleep to see if it's timing.
Fixes #5526
2015-12-08 21:01:12 +00:00
LeeDr f30c329b85 Add data-test-subj to advanced_row.html and advanced_row.html to enable test automation. Add a test for Advanced Settings.
Fixes #5526
2015-12-08 21:01:12 +00:00
LeeDr d8e9a684c6 Functions and test for setting advanced properties.
Fixes #5526
2015-12-08 21:01:12 +00:00
Spencer a44adcc3e8 Merge pull request #5506 from spalger/implement/testSubjSelector
Implement test subj selector
2015-12-07 13:48:53 -07:00
LeeDr 172ec0b399 Add check for UTC timezone before each visualize test with data. 2015-12-04 15:23:20 -06:00
LeeDr 41fb59c392 Merge branch 'advancedSettings' into testVisualize 2015-12-04 15:03:10 -06:00
LeeDr 562a33c781 Partial steps to check for UTC timezone before visualize tests. 2015-12-04 15:02:17 -06:00
LeeDr 8d2092c4bd Removed a pie chart test that isn't ready yet. 2015-12-03 15:34:04 -06:00
LeeDr acce83cdbc Debug log message when createIndexPattern succeeds. 2015-12-02 14:25:08 -06:00
LeeDr 895447e24c Trying setTimeout('script', 'implicit', and 'page load'). 2015-12-02 13:13:32 -06:00
LeeDr e7edd79536 Increase elasticsearch client timeout from 5 to 50 minutes! 2015-12-02 10:51:13 -06:00
LeeDr 44718237b2 Merge master 2015-12-02 10:26:58 -06:00
LeeDr 7a8e39d5da Increase ElasticSearch client timeout from 30s to 5m (probably a bit overkill). 2015-12-01 14:52:45 -06:00
LeeDr ad78770100 Similar to previous commit, add 1s sleep before entering the name of the saved visualization. 2015-12-01 11:02:54 -06:00
LeeDr 5d36e8749e Remove a console.log from scenarioManager. Add 1s delay before setting saved query name so we don't end up with concatenated name. 2015-12-01 10:20:59 -06:00
LeeDr c4b60c9c88 Increase elasticsearch client timeout from 30s to 5m. 2015-12-01 09:00:07 -06:00
LeeDr 32cf7762f2 Merge master. 2015-11-30 15:15:22 -06:00
LeeDr d5281075fb Minor changes and debug logging for visualize tests. 2015-11-30 14:26:24 -06:00
LeeDr 40b944d235 Not sure why Jenkins passed and Travis failed to find the timezone selection. Adding 1 second sleep to see if it's timing. 2015-11-30 12:23:47 -06:00
LeeDr 9a49fbc5c5 Add data-test-subj to advanced_row.html and advanced_row.html to enable test automation. Add a test for Advanced Settings. 2015-11-30 11:59:59 -06:00
LeeDr 6311d949a1 Functions and test for setting advanced properties. 2015-11-25 15:41:21 -06:00
spalger f654340713 use intern require syntax 2015-11-25 14:23:28 -06:00
LeeDr 025cbb0829 Sleep before getting barChartData and remove PieChartdata test until the data is parsed into something more reliable. 2015-11-25 14:15:44 -06:00
LeeDr d6ff27be29 Added UTC Timezone to the initial kibana data load. Change HeaderPage.setAbsoluteTime to click the Timepicker and collapse the pane when done. Update data in most visualize tests for UTC time. 2015-11-25 13:34:23 -06:00
spalger dfd8d3e960 added util for functional tests 2015-11-25 12:51:28 -06:00
Joe Fleming 14daaf0f85 move defaultTimeout into a config file 2015-11-24 15:29:56 -07:00
Joe Fleming 3e8307f8ac increase the default timeouts 2015-11-24 15:10:34 -07:00
Joe Fleming 25e7d2976e make the tryForTime output less noisy 2015-11-24 15:10:34 -07:00
Joe Fleming b3f2d5bfed add check for selected time field option 2015-11-24 15:10:34 -07:00
Joe Fleming 43a5e2b838 wrap getFieldsTabCount in tryForTime
give it a chance to fail up to 10 times before failing completely
2015-11-24 15:10:33 -07:00
Joe Fleming 4fdbc265c8 add catch for missing toast message 2015-11-24 15:10:33 -07:00
Joe Fleming c9c0f34efe add a little more debugging 2015-11-24 15:10:33 -07:00
Joe Fleming d8d8886747 speed up the waitForToastMessageGone helper 2015-11-24 15:10:33 -07:00
LeeDr e1606db2db setWindowSize for discover and visualize tests otherwise side panels and header buttons can be hidden. Add catch to all visualize test before functions. 2015-11-24 14:26:39 -06:00
LeeDr 9e10b8c532 Merge branch 'master' into testVisualize 2015-11-24 12:31:42 -06:00
Joe Fleming 4e9b1d34de restore waitForToastMessageGone timeout 2015-11-24 11:47:25 -06:00
Joe Fleming c940bc8497 put tryForTime in getCurrentQueryName 2015-11-24 11:47:02 -06:00
Joe Fleming 9303c57b7b update HeaderPage helper, use defaultTimeout 2015-11-24 10:30:36 -06:00
Joe Fleming ca5ba4fe16 fix use in navigateToApp 2015-11-24 10:21:37 -06:00
Joe Fleming 8a5c94c941 pass the resolved value 2015-11-24 10:17:55 -06:00
LeeDr 90ac2c3189 Increase 5s timeout to longTimeout of 60s. 2015-11-23 16:13:34 -06:00
LeeDr b68b644c11 Move test timeouts to top describe level. 2015-11-23 13:43:47 -06:00
LeeDr 9cdadc9de2 Adding idle-timeout back in. 2015-11-23 13:38:33 -06:00
LeeDr 8155ad799b Switch idle-timeout back to default 30 seconds. 2015-11-23 13:13:22 -06:00
LeeDr ad9895f920 Visualize tests all passing. 2015-11-23 13:10:47 -06:00
LeeDr e7256bde43 Bump idle-timeout from 30 to 99 seconds. 2015-11-20 16:32:07 -06:00
LeeDr 9b6994be96 Move timeout back to describe. 2015-11-20 16:21:55 -06:00
LeeDr e5d57f42a3 Fix one recurring timing related test failure by wrapping in tryForTime loop ('makelogs data should have expected number of fields'). 2015-11-20 15:24:49 -06:00
LeeDr 8ed347967f Merge branch 'functionalDebug' into testVisualize 2015-11-20 14:10:05 -06:00
LeeDr 2488a626e2 Move timeout in settings/index.js up to describe. 2015-11-20 14:06:32 -06:00
LeeDr 5f3b0ae4a2 Variablize 2 messages. 2015-11-20 13:43:26 -06:00
LeeDr 0d0628e5bd Move timeout setting out one level from bdd.before to bdd.describe. 2015-11-20 13:34:13 -06:00
LeeDr 5f10d16f4d Adding debug log before throwing errors. 2015-11-20 12:39:05 -06:00
LeeDr 3af604d9fb WIP Visualize tests. Moving getSpinerDone from DiscoverPage to HeaderPage. 2015-11-20 11:47:35 -06:00
LeeDr 43eb32b6d6 Replace default 30 second timeout even on Settings app tests with 2 minute timeout. 2015-11-19 11:30:52 -06:00
LeeDr 7411132164 Steps to debug and/or fix functional test timeouts. 2015-11-19 11:06:01 -06:00
LeeDr 7b37689798 Reverting this file back to 326892. 2015-11-17 12:56:46 -06:00
LeeDr 60d67aab5e Moved timepicker functions from DiscoverPage to HeaderPage. Fixed several other PR review comment issues. 2015-11-13 18:46:18 -06:00
LeeDr 61d0053bb2 Replace hacky backspacing with clearValue. 2015-11-13 17:48:27 -06:00
LeeDr 745d45b770 Intermittent failures on Travis. Wrapped the getbarChartData and compareData in a tryForTime. 2015-11-13 12:51:56 -06:00
LeeDr 81d61272e7 Change log statements to debug. 2015-11-13 12:30:44 -06:00
LeeDr 1cbf6afbd2 Set a 2 minute timeout on the whole _discover test suite. Added tempoary logging for debugging purposes if it still fails with 'Error: Request Timeout after 30000ms' 2015-11-13 12:00:41 -06:00
LeeDr 7cf3645630 findByCssSelector('a[ng-click="setMode(\'absolute\')"') works locally but not on Travis, trying findByLinkText('Absolute') instead. 2015-11-13 11:42:10 -06:00
LeeDr db95e52886 Merge remote-tracking branch 'jbudz/lint-ignore' into testDiscover 2015-11-13 10:46:33 -06:00
LeeDr 7a2a4d9498 Add /*eslint-disable*/ to one data load file which was missing it. 2015-11-13 10:02:09 -06:00
LeeDr 2464e13803 Adjust timing in tryForTime (shorter setFindTimeout, longer test timeout). 2015-11-13 09:58:41 -06:00
Jonathan Budzenski 6e48ccc443 Prevent linting fixtures 2015-11-12 17:09:46 -06:00
LeeDr ff44fd3ee5 Merge with master. 2015-11-12 15:42:05 -06:00
LeeDr 28d7519a0c New tests for Discover App. 2015-11-12 15:24:59 -06:00
LeeDr 2694b6b933 Save error messages in tryForTime and include in timeout messages. 2015-11-12 15:09:14 -06:00
LeeDr e4e1e66b52 Catch and ignore index_not_found_exception when deleting kibana index if not found. 2015-11-12 12:05:22 -06:00
LeeDr fd225796f7 Add missing semicolons. 2015-11-12 12:04:20 -06:00
Joe Fleming e86da76d86 a sea of missing semicolons 2015-11-11 15:47:02 -07:00
Joe Fleming 326892228c fix missing semi 2015-11-11 13:31:57 -07:00
Joe Fleming 7b5dd3ef9c unify timeouts, make timeout larger, remove debugging code 2015-11-11 11:44:12 -07:00
Joe Fleming fd2d4435f1 allow custom timeout on getTimeBasedIndexPatternCheckbox 2015-11-11 11:28:04 -07:00
Joe Fleming 53eb35fae4 set all timeouts to larger, default timeout 2015-11-11 11:18:07 -07:00
LeeDr 050de6c923 Added Discover app tests. 2015-11-11 11:51:02 -06:00
LeeDr ed244f33a6 Cleanup and remove failure message from takeScreenshot. 2015-11-11 11:49:02 -06:00
LeeDr a2a31c22a4 Adding logstashFunctional scenario data. 2015-11-11 11:26:56 -06:00
Joe Fleming 97d24e4050 pass in runScript timeout from getApp 2015-11-10 16:22:38 -07:00
Joe Fleming cf889cb91e bump timouts some more 2015-11-10 16:15:32 -07:00
Joe Fleming 5ff1d51648 rely on setFindTimeout for selection instead of tryForTime 2015-11-10 16:13:55 -07:00
Joe Fleming 178f53fabf longer element and url timeouts 2015-11-10 15:56:40 -07:00
Joe Fleming 5e572c8ce4 remove function names from prototype methods 2015-11-10 15:11:15 -07:00
Joe Fleming afb6ffe7ec fix headerpage click helpers 2015-11-10 15:00:20 -07:00
Joe Fleming fde0e1a0a0 turn off debugging output 2015-11-10 13:13:06 -07:00
Joe Fleming 5675d851d0 wait for application container, shorten url change time 2015-11-10 11:55:24 -07:00
Joe Fleming ade13d05ec properly return promise 2015-11-09 16:51:23 -07:00
Joe Fleming fe10e6f916 give the tests more time to find row count in tab
and remove the angular-specific class selection
2015-11-09 16:51:22 -07:00
Joe Fleming bbf9690782 load url first, then refresh 2015-11-09 16:51:22 -07:00
Joe Fleming 4cfe3e4c78 include missing Promise deps 2015-11-09 16:51:22 -07:00
Joe Fleming b2b1544e87 wait for application element when check for loaded app 2015-11-09 16:51:22 -07:00
Joe Fleming 62c90e7f62 change the selector used to check the loaded app
debug: wait for app scope before executing scripts

debug: drop app check, let fail and output info
2015-11-09 16:51:19 -07:00
Joe Fleming 2632c7479c debugging ci test failures
DEBUGGING; why is index creation failing on CI?

debugging

debugging

bump timeout. i'm out of ideas. ugh.
2015-11-09 16:51:14 -07:00
Joe Fleming 4f7ef774d1 check that we're on the kibana app
instead of checking that we're not on the status page
2015-11-09 16:50:40 -07:00
Joe Fleming e1606565c7 bump the getFieldsTabCount timeout
disable debugging
2015-11-09 16:50:28 -07:00
Joe Fleming 7c2ed51050 better check for status page
use execute to run a script and get the app.id off the chrome scope
2015-11-06 13:03:39 -07:00
Joe Fleming cd0795288c enable debugging to try to solve jenkins issue 2015-11-06 11:14:27 -07:00
Joe Fleming 83bc559c64 give the time selection field a little more time to render
slow CI fix
2015-11-06 11:00:55 -07:00
Joe Fleming 1b0db1106a move tryForTime to getFieldsTabCount, speed up test 2015-11-06 10:58:31 -07:00
Joe Fleming 89352cfc38 wait for page elements, should fix slow CI envs 2015-11-06 10:29:09 -07:00
Joe Fleming 8c0c38b66a bump index pattern creation timeouts 2015-11-05 18:03:38 -07:00
Joe Fleming b8951da9a0 give the app time to update the url 2015-11-05 17:50:40 -07:00
Joe Fleming e05e91bcd4 fix scenarioManager and getUrl tests 2015-11-05 17:36:15 -07:00
Joe Fleming 48550f932b clean up HeaderPage helper 2015-11-05 16:51:36 -07:00
Joe Fleming e884cdc5ec minor tweak to tryForTime 2015-11-05 16:51:17 -07:00
Joe Fleming 7f75f65b5d add config to swollow index creation errors 2015-11-05 16:37:32 -07:00
Joe Fleming 32e9201ba5 propertly return promises, properly catch Promise.all failure 2015-11-05 16:15:20 -07:00
Joe Fleming 3faa130d67 refactor tests
use new navigation helpers, change location of some tests, clean up setup and teardown to speed things up
2015-11-05 15:39:01 -07:00
Joe Fleming 626fbe4276 simplify sleep code 2015-11-05 14:45:09 -07:00
Joe Fleming 221063e62b add indexDefinition to emptyKibana scenario
fixes potential issue where server doesn't recreate it in time
2015-11-05 14:44:49 -07:00
Joe Fleming e50bb3b859 provide safe methods for app navigation
also change the way getUrl works
2015-11-05 14:41:43 -07:00
Joe Fleming c9579d5da3 ScenarioManager load/unload always return promises 2015-11-05 14:36:45 -07:00
Joe Fleming 2d04ec4afa change serverConfig servers path 2015-11-04 16:08:00 -07:00
Joe Fleming 59c6b68383 remove now redundant timer in test 2015-11-04 15:23:49 -07:00
Joe Fleming 9cb5245b42 tighten up the create/remove index pattern helpers 2015-11-04 15:23:09 -07:00