kibana/test/api_integration
nicknak ba9bb1229b
[Saved Objects] Add hidden types to savedobjects (#28722) (#31591)
* Saved Objects routes and service should be able to hide objects.

* Remove context providers as a feature.

* Respository should be creatable to include hidden types.

* Fixes failing unit tests.

* Fixes issues with filter method.

* Adds check to get method for allowed types.

* Adds tests for get,delete,bulkGet,find

* Remove need for schema in saved objects api.

* Remove more traces of schema validation added to rest api.

* Remove inclusion of hidden types in route specific client.

* Removes getAvailableTypes as it is no longer used.

* Fixing up initialization of components.

* Moves default setting for includeHiddenTypes

* Allows for single value or array in assertAllowedTypes.

* Adds type assertion to bulkCreate, and incrementCounter with tests.

* Conversion to boolean should be more explicit.

* Repository should restrict types allowed to be manipulated.

* Saved objects should use the right root type.

Privileges should have unit test.

* All saved objects APIs should validate types.

* No need for test to be typescript if under test not ts.

* Handle extraTypes being undefined.

* Routes should verify that they do not allow invalid types.

* Bulk create should be tested.

* Saved objects mixin does not need extra blank lines.

* Saved objects integration tests should test unknown types.

* Integration tests should test for bad request with unknown type.

* Adds missing privileges to global all.

* Tests should use valid types.

Tests should have accurate expectations.

* Fix bulkCreate to assert allowed types.

* Fix unknown search field tests.

* Adjust expectations for unknown type in saved object api.

* Saved object integration should return proper responses.

* Fix expect to use a separated matcher.

* Should expect forbidden responses for unauthorized users.

* Should expect 400 when trying to use unknown types.

* Removes unwanted .only call.

* Adjust repository to throw error unless it has allowed types.

* Unknown types should return 403s and empty results where applicable

* Removes type validation from saved object API.

* Captures and returns appropriate exceptions for type assertion.

* Properly filtter c'tor params to repository.

* Checking allowed type should be bool check function.

* Cleanup test situation descriptions.

* Updating snapshot file for jest tests.

* Changes expected results for find from saved object service.

* Expect an empty response when attempting to access an unsupported type.

* Adds test coverage for new error methods added.

Adds create test to repository.

* Adds bulkGet, bulkCreate unsupported type errors.

* First step in refactoring saved object service.

Adding missing test coverage of saved object service creation.

* Move extra saved objects test to legacy folder.

* Adds references filtering by allowed type.

* Adds more coverage for mixin repository creation.

* Removes unnecessary decorate on server object for unused method.

* Revert reworking how kibana migrator uses mappings.

* Revert "Adds references filtering by allowed type."

This reverts commit 92b07d4b92.

* Adds check for unexpected callCluster type.

* Should cover as many parts of the mixin as possible.

* More expectations to tests.

* Keeps ordering of created items but does not pass unsupported types.

* Fix a failing before hook test.

* Should not use escaped single quotes inside template literals.

Co-Authored-By: njd5475 <njd5475@gmail.com>

* Changed how check is done in repository.

* Remove unused mappings file.

* Cleans up a couple of nits.

* Adds test for overwrite option being passed if it is in the url.

* Missed semicolon.
2019-02-20 12:56:12 -05:00
..
apis [Saved Objects] Add hidden types to savedobjects (#28722) (#31591) 2019-02-20 12:56:12 -05:00
fixtures/es_archiver Upgrade Kibana to Elasticsearch 7.0 (#29184) 2019-01-30 09:08:58 -05:00
services
config.js [Tests] Add http integration test setup (#19261) 2018-08-17 08:36:14 +02:00