Commit graph

1761 commits

Author SHA1 Message Date
Matthew Bargar
944b78a241 Update functional tests to know about the new add data landing page 2016-01-22 13:27:11 -05: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
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
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