kibana/test
Brandon Kobel 83bc5004e3
Allow routes to specify the idle socket timeout in addition to the payload timeout (#73730)
* Route options timeout -> timeout.payload

* timeout.idleSocket can now be specified per route

* Removing nested ternary

* Fixing integration tests

* Trying to actually fix the integration tests. Existing tests are hitting
idle socket timeout, not the payload timeout

* Fixing payload post timeout integration test

* Fixing PUT and DELETE payload sending too long tests

* Fixing type-script errors

* GET routes can't specify the payload timeout, they can't accept payloads

* Removing some redundancy in the tests

* Adding 'Transfer-Encoding: chunked' to the POST test

* Fixing POST/GET/PUT quick tests

* Adding idleSocket timeout test

* Removing unnecessary `isSafeMethod` call

* Updating documentation

* Removing PUT/DELETE integration tests

* Working around the HapiJS bug

* Deleting unused type import

* The socket can be undefined...

This occurs when using @hapi/shot directly or indirectly via
Server.inject. In these scenarios, there isn't a socket. This can also
occur when a "fake request" is used by the hacky background jobs:
Reporting and Alerting...

* Update src/core/server/http/http_server.ts

Co-authored-by: Josh Dover <me@joshdover.com>

* Adding payload timeout functional tests

* Adding idle socket timeout functional tests

* Adding better comments, using ?? instead of ||

* Fixing the plugin fixture TS

* Fixing some typescript errors

* Fixing plugin fixture tsconfig.json

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Josh Dover <me@joshdover.com>
2020-08-18 10:46:08 -07:00
..
accessibility Removing flaky axe rule (#69418) 2020-06-17 13:00:52 -05:00
api_integration Remove legacy optimizer (#73154) 2020-08-13 09:08:44 -07:00
common Remove legacy optimizer (#73154) 2020-08-13 09:08:44 -07:00
examples Routing example plugin (#69581) 2020-07-15 12:44:42 -04:00
functional [Functional] Increases the time to locate the Create Visualization button (#75133) 2020-08-18 09:12:06 +03:00
harden chore(NA): upgrade to lodash@4 (#69868) 2020-07-03 01:30:13 +01:00
interpreter_functional Upgrade EUI to v27.4.0 (#74004) 2020-08-14 10:31:15 -06:00
new_visualize_flow [Dashboard] Add visualization by value to dashboard (#69898) 2020-06-30 12:38:12 +01:00
plugin_functional Allow routes to specify the idle socket timeout in addition to the payload timeout (#73730) 2020-08-18 10:46:08 -07:00
scripts Remove legacy optimizer (#73154) 2020-08-13 09:08:44 -07:00
server_integration Remove legacy optimizer (#73154) 2020-08-13 09:08:44 -07:00
typings Update @typescript-eslint to ensure compatibility with TypeScript v3.9 (#74091) 2020-08-05 17:32:19 +02: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 Update @typescript-eslint to ensure compatibility with TypeScript v3.9 (#74091) 2020-08-05 17:32:19 +02:00
tsconfig.json chore(NA): upgrade to lodash@4 (#69868) 2020-07-03 01:30:13 +01:00