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