kibana/test
Mikhail Shustov 2a82ff9566
[KP] use new ES client in SO service (#72289)
* adapt retryCallCluster for new ES client

* review comments

* retry on 408 ResponseError

* remove legacy retry functions

* use Migrator Es client in SO migration

* update migration tests

* improve ES typings and mocks

* migrate decorate ES errors

* add repository es client

* use new es client in so repository

* update repository tests

* fix migrator integration tests

* declare _seq_no & _primary_term on get response. _source expect to be a string

* make _sourceIncludes and refresh compatible with the client

* add test for repository_es_client

* move ApiResponse to es client mocks

* TEMP: handle wait_for as true for deleteByNamespace

* add tests for migration_es_client

* TEMP: skip test for deleteByNamespace refresh

* pass ignore as transport option in mget

* log both es client and response errors

* fix update method test failures

* update deleteByNamespace refresh settings

es doesn't support 'refresh: wait_for' for `updateByQuery` endpoint

* update repository tests. we do not allow customising wait_for

* do not delegate retry logic to es client

* fix type errors after master merged

* fix repository tests

* fix security solutions code

SO doesn't throw Error with status code anymore. Always use SO error helpers

* switch error conditions to use SO error helpers

* cleanup

* address comments about mocks

* use isResponseError helper

* address comments

* fix type errors

Co-authored-by: pgayvallet <pierre.gayvallet@elastic.co>
2020-07-25 11:59:56 +02:00
..
accessibility Removing flaky axe rule (#69418) 2020-06-17 13:00:52 -05:00
api_integration [KP] use new ES client in SO service (#72289) 2020-07-25 11:59:56 +02:00
common [kbn/es-archiver] move to a package (#72318) 2020-07-22 08:02:39 -07:00
examples Routing example plugin (#69581) 2020-07-15 12:44:42 -04:00
functional Index patterns on alias - reenable functional tests (#71802) 2020-07-23 17:46:26 -05:00
harden chore(NA): upgrade to lodash@4 (#69868) 2020-07-03 01:30:13 +01:00
interpreter_functional Upgrade EUI to v26.3.1 (#70243) 2020-07-09 19:51:45 -07:00
new_visualize_flow [Dashboard] Add visualization by value to dashboard (#69898) 2020-06-30 12:38:12 +01:00
plugin_functional Management API - simpler interface, remove app context usage (#71144) 2020-07-14 11:30:01 -05:00
scripts [kbn/optimizer] report sizes of assets produced by optimizer (#71319) 2020-07-14 17:23:14 -07:00
server_integration apply prettier styles 2020-05-22 09:08:58 +02:00
typings [Metrics UI] Refactor With* containers to hooks (#59503) 2020-04-14 09:01:41 -07:00
ui_capabilities/newsfeed_err apply prettier styles 2020-05-22 09:08:58 +02:00
visual_regression chore(NA): upgrade to lodash@4 (#69868) 2020-07-03 01:30:13 +01:00
mocha_decorations.d.ts Re-split ciGroups after pipeline rollout (#46375) 2019-09-25 15:18:37 -07:00
tsconfig.json chore(NA): upgrade to lodash@4 (#69868) 2020-07-03 01:30:13 +01:00