kibana/test
Frank Hassanabad 0d3ddbe9d0
Fixes the client to setup SSL with the CA certificates for testing (#65598)
## Summary

Fixes the non-legacy ES test client to work with SSL.

Without this if you try to migrate `siem rules` or `alerting` or `CASE` or anything else that is using SSL based tests you get this error when trying to use the non-legacy:

```ts
// pull in non-legacy service for functional tests
const es = getService('es');
```

```ts
// use it somewhere where your config.ts is utilizing SSL in a functional test
// ...
```

In your console you get this error:

```ts
    ConnectionError: self signed certificate in certificate chain
          at onResponse (node_modules/@elastic/elasticsearch/lib/Transport.js:205:13)
          at ClientRequest.request.on.err (node_modules/@elastic/elasticsearch/lib/Connection.js:98:9)
          at TLSSocket.socketErrorListener (_http_client.js:401:9)
          at emitErrorNT (internal/streams/destroy.js:91:8)
          at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
          at process._tickCallback (internal/process/next_tick.js:63:19)
```

This fixes that by adding the CA certs from test to the ES test client.
2020-05-07 07:57:34 -06:00
..
accessibility New nav (#64018) 2020-05-05 23:14:14 -05:00
api_integration [Telemetry] oss api tests (#64602) 2020-04-29 10:54:19 -07:00
common Fixes the client to setup SSL with the CA certificates for testing (#65598) 2020-05-07 07:57:34 -06:00
examples [State Management] ScopedHistory support for state syncing utils (#62761) 2020-04-21 13:53:17 +02:00
functional [functional tests] add some missing awaits (#65566) 2020-05-06 16:45:15 -07:00
harden Harden creation of child processes (#55697) 2020-03-10 07:51:57 +01:00
interpreter_functional Migrate test plugins ⇒ NP (kbn_tp_run_pipeline) (#64780) 2020-05-07 10:12:46 +03:00
plugin_functional Migrate test plugins ⇒ NP (kbn_tp_embeddable_explorer) (#64756) 2020-05-07 14:15:37 +03:00
scripts Migrate test plugins ⇒ NP (kbn_tp_run_pipeline) (#64780) 2020-05-07 10:12:46 +03:00
server_integration Update cache-control header (#62014) 2020-04-06 10:19:42 -04:00
typings [Metrics UI] Refactor With* containers to hooks (#59503) 2020-04-14 09:01:41 -07:00
ui_capabilities/newsfeed_err [Newsfeed] UI plugin for Kibana (#49579) 2019-11-13 08:48:34 -07:00
visual_regression Fix visual baseline job (#59348) 2020-03-05 13:01:42 -07:00
mocha_decorations.d.ts Re-split ciGroups after pipeline rollout (#46375) 2019-09-25 15:18:37 -07:00
tsconfig.json Migrate test plugins ⇒ NP (kbn_tp_run_pipeline) (#64780) 2020-05-07 10:12:46 +03:00