Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.x] [Security Solutions] Fixes flake with cypress tests (#97329) #97381

Merged
merged 1 commit into from
Apr 16, 2021

Conversation

kibanamachine
Copy link
Contributor

Backports the following commits to 7.x:

## Summary

Fixes some recent flakeyness with Cypress tests
* Adds cypress.pipe() on button clicks around the area of flakes
* Adds an alerting threshold to the utilities so we can wait for when an exact number of alerts are available on a page
* Changes the alerts to not run again with 10 seconds, because if a test takes longer than 10 seconds, the rule can run a second time which can invalidate some of the text when running checks when timeline or other components update on their button clicks.

### Checklist

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
@kibanamachine
Copy link
Contributor Author

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / X-Pack API Integration Tests.x-pack/test/api_integration/apis/short_urls/feature_controls·ts.apis Short URLs feature controls "before all" hook for "users with "read" access to discover should be able to access short-urls"

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 2 times on tracked branches: https://github.com/elastic/kibana/issues/97382

[00:00:00]       │
[00:00:00]         └-: apis
[00:00:00]           └-> "before all" hook in "apis"
[00:07:33]           └-: Short URLs
[00:07:33]             └-> "before all" hook in "Short URLs"
[00:07:33]             └-: feature controls
[00:07:33]               └-> "before all" hook for "users with "read" access to discover should be able to access short-urls"
[00:07:33]               └-> "before all" hook for "users with "read" access to discover should be able to access short-urls"
[00:07:33]                 │ debg creating role discover-role
[00:07:33]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618602980117694297] added role [discover-role]
[00:07:33]                 │ debg creating role discover-minimal-role
[00:07:34]                 │ proc [kibana]   log   [20:58:38.874] [error][elasticsearch] Request error, retrying
[00:07:34]                 │ proc [kibana] GET http://localhost:6172/_xpack?accept_enterprise=true => connect ECONNREFUSED 127.0.0.1:6172
[00:07:34]                 │ proc [kibana]   log   [20:58:38.876] [warning][elasticsearch] Unable to revive connection: http://localhost:6172/
[00:07:34]                 │ proc [kibana]   log   [20:58:38.877] [warning][elasticsearch] No living connections
[00:07:34]                 │ proc [kibana]   log   [20:58:38.877] [warning][licensing][plugins] License information could not be obtained from Elasticsearch due to Error: No Living connections error
[00:07:34]                 │ proc [kibana]   log   [20:58:38.879] [info][plugins][searchprofiler] You cannot use searchprofiler because license information is not available at this time.
[00:07:34]                 │ proc [kibana]   log   [20:58:38.880] [info][painlessLab][plugins] You cannot use painlessLab because license information is not available at this time.
[00:07:34]                 │ proc [kibana]   log   [20:58:38.885] [info][plugins][snapshotRestore] You cannot use snapshot_restore because license information is not available at this time.
[00:07:34]                 │ proc [kibana]   log   [20:58:38.885] [info][indexManagement][plugins] You cannot use index_management because license information is not available at this time.
[00:07:34]                 │ proc [kibana]   log   [20:58:38.885] [info][plugins][rollup] You cannot use rollup because license information is not available at this time.
[00:07:34]                 │ proc [kibana]   log   [20:58:38.885] [info][plugins][remoteClusters] You cannot use Remote Clusters because license information is not available at this time.
[00:07:34]                 │ proc [kibana]   log   [20:58:38.885] [info][indexLifecycleManagement][plugins] You cannot use index_lifecycle_management because license information is not available at this time.
[00:07:34]                 │ proc [kibana]   log   [20:58:38.885] [info][plugins][transform] You cannot use transform because license information is not available at this time.
[00:07:34]                 │ proc [kibana]   log   [20:58:38.885] [info][ingestPipelines][plugins] You cannot use ingest_pipelines because license information is not available at this time.
[00:07:34]                 │ proc [kibana]   log   [20:58:38.895] [info][kibana-monitoring][monitoring][monitoring][plugins] Monitoring status upload endpoint is not enabled in Elasticsearch:Monitoring stats collection is stopped
[00:07:34]                 │ERROR [PUT http://elastic:changeme@localhost:6171/api/security/role/discover-minimal-role] request failed (attempt=1/0): Request failed with status code 500
[00:07:34]                 └- ✖ fail: apis Short URLs feature controls "before all" hook for "users with "read" access to discover should be able to access short-urls"
[00:07:34]                 │      Error: [PUT http://elastic:changeme@localhost:6171/api/security/role/discover-minimal-role] request failed (attempt=1/0): Request failed with status code 500 -- and ran out of retries
[00:07:34]                 │       at KbnClientRequester.request (/dev/shm/workspace/parallel/7/kibana/node_modules/@kbn/test/src/kbn_client/kbn_client_requester.ts:144:15)
[00:07:34]                 │       at runMicrotasks (<anonymous>)
[00:07:34]                 │       at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:07:34]                 │       at KbnClient.request (/dev/shm/workspace/parallel/7/kibana/node_modules/@kbn/test/src/kbn_client/kbn_client.ts:75:12)
[00:07:34]                 │       at Role.create (/dev/shm/workspace/parallel/7/kibana/test/common/services/security/role.ts:18:42)
[00:07:34]                 │       at Context.<anonymous> (test/api_integration/apis/short_urls/feature_controls.ts:75:9)
[00:07:34]                 │       at Object.apply (/dev/shm/workspace/parallel/7/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:07:34]                 │ 
[00:07:34]                 │ 

Stack Trace

Error: [PUT http://elastic:changeme@localhost:6171/api/security/role/discover-minimal-role] request failed (attempt=1/0): Request failed with status code 500 -- and ran out of retries
    at KbnClientRequester.request (/dev/shm/workspace/parallel/7/kibana/node_modules/@kbn/test/src/kbn_client/kbn_client_requester.ts:144:15)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at KbnClient.request (/dev/shm/workspace/parallel/7/kibana/node_modules/@kbn/test/src/kbn_client/kbn_client.ts:75:12)
    at Role.create (/dev/shm/workspace/parallel/7/kibana/test/common/services/security/role.ts:18:42)
    at Context.<anonymous> (test/api_integration/apis/short_urls/feature_controls.ts:75:9)
    at Object.apply (/dev/shm/workspace/parallel/7/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)

Kibana Pipeline / general / X-Pack API Integration Tests.x-pack/test/api_integration/apis/short_urls/feature_controls·ts.apis Short URLs feature controls "after all" hook for "users with "url_create" access to unknown-feature should not be able to create short-urls"

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 2 times on tracked branches: https://github.com/elastic/kibana/issues/97383

[00:00:00]       │
[00:00:00]         └-: apis
[00:00:00]           └-> "before all" hook in "apis"
[00:07:33]           └-: Short URLs
[00:07:33]             └-> "before all" hook in "Short URLs"
[00:07:33]             └-: feature controls
[00:07:33]               └-> "before all" hook for "users with "read" access to discover should be able to access short-urls"
[00:07:33]               └-> "before all" hook for "users with "read" access to discover should be able to access short-urls"
[00:07:33]                 │ debg creating role discover-role
[00:07:33]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1618602980117694297] added role [discover-role]
[00:07:33]                 │ debg creating role discover-minimal-role
[00:07:34]                 │ proc [kibana]   log   [20:58:38.874] [error][elasticsearch] Request error, retrying
[00:07:34]                 │ proc [kibana] GET http://localhost:6172/_xpack?accept_enterprise=true => connect ECONNREFUSED 127.0.0.1:6172
[00:07:34]                 │ proc [kibana]   log   [20:58:38.876] [warning][elasticsearch] Unable to revive connection: http://localhost:6172/
[00:07:34]                 │ proc [kibana]   log   [20:58:38.877] [warning][elasticsearch] No living connections
[00:07:34]                 │ proc [kibana]   log   [20:58:38.877] [warning][licensing][plugins] License information could not be obtained from Elasticsearch due to Error: No Living connections error
[00:07:34]                 │ proc [kibana]   log   [20:58:38.879] [info][plugins][searchprofiler] You cannot use searchprofiler because license information is not available at this time.
[00:07:34]                 │ proc [kibana]   log   [20:58:38.880] [info][painlessLab][plugins] You cannot use painlessLab because license information is not available at this time.
[00:07:34]                 │ proc [kibana]   log   [20:58:38.885] [info][plugins][snapshotRestore] You cannot use snapshot_restore because license information is not available at this time.
[00:07:34]                 │ proc [kibana]   log   [20:58:38.885] [info][indexManagement][plugins] You cannot use index_management because license information is not available at this time.
[00:07:34]                 │ proc [kibana]   log   [20:58:38.885] [info][plugins][rollup] You cannot use rollup because license information is not available at this time.
[00:07:34]                 │ proc [kibana]   log   [20:58:38.885] [info][plugins][remoteClusters] You cannot use Remote Clusters because license information is not available at this time.
[00:07:34]                 │ proc [kibana]   log   [20:58:38.885] [info][indexLifecycleManagement][plugins] You cannot use index_lifecycle_management because license information is not available at this time.
[00:07:34]                 │ proc [kibana]   log   [20:58:38.885] [info][plugins][transform] You cannot use transform because license information is not available at this time.
[00:07:34]                 │ proc [kibana]   log   [20:58:38.885] [info][ingestPipelines][plugins] You cannot use ingest_pipelines because license information is not available at this time.
[00:07:34]                 │ proc [kibana]   log   [20:58:38.895] [info][kibana-monitoring][monitoring][monitoring][plugins] Monitoring status upload endpoint is not enabled in Elasticsearch:Monitoring stats collection is stopped
[00:07:34]                 │ERROR [PUT http://elastic:changeme@localhost:6171/api/security/role/discover-minimal-role] request failed (attempt=1/0): Request failed with status code 500
[00:07:34]                 └- ✖ fail: apis Short URLs feature controls "before all" hook for "users with "read" access to discover should be able to access short-urls"
[00:07:34]                 │      Error: [PUT http://elastic:changeme@localhost:6171/api/security/role/discover-minimal-role] request failed (attempt=1/0): Request failed with status code 500 -- and ran out of retries
[00:07:34]                 │       at KbnClientRequester.request (/dev/shm/workspace/parallel/7/kibana/node_modules/@kbn/test/src/kbn_client/kbn_client_requester.ts:144:15)
[00:07:34]                 │       at runMicrotasks (<anonymous>)
[00:07:34]                 │       at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:07:34]                 │       at KbnClient.request (/dev/shm/workspace/parallel/7/kibana/node_modules/@kbn/test/src/kbn_client/kbn_client.ts:75:12)
[00:07:34]                 │       at Role.create (/dev/shm/workspace/parallel/7/kibana/test/common/services/security/role.ts:18:42)
[00:07:34]                 │       at Context.<anonymous> (test/api_integration/apis/short_urls/feature_controls.ts:75:9)
[00:07:34]                 │       at Object.apply (/dev/shm/workspace/parallel/7/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:07:34]                 │ 
[00:07:34]                 │ 
[00:07:34]                 └-> "after all" hook for "users with "url_create" access to unknown-feature should not be able to create short-urls"
[00:07:34]                   │ debg deleting user discover-user
[00:07:34]                   │ debg deleting user discover-minimal-user
[00:07:34]                   │ debg deleting user discover-minimal-shorten-user
[00:07:34]                   │ debg deleting user dashboard-user
[00:07:34]                   │ debg deleting user dashboard-minimal-user
[00:07:34]                   │ debg deleting user dashboard-minimal-shorten-user
[00:07:34]                   │ debg deleting user visualize-user
[00:07:34]                   │ debg deleting user visualize-minimal-user
[00:07:34]                   │ debg deleting user visualize-minimal-shorten-user
[00:07:34]                   │ debg deleting user infrastructure-user
[00:07:34]                   │ debg deleting user infrastructure-minimal-user
[00:07:34]                   │ debg deleting user infrastructure-minimal-shorten-user
[00:07:34]                   │ debg deleting user canvas-user
[00:07:34]                   │ debg deleting user canvas-minimal-user
[00:07:34]                   │ debg deleting user canvas-minimal-shorten-user
[00:07:34]                   │ debg deleting user maps-user
[00:07:34]                   │ debg deleting user maps-minimal-user
[00:07:34]                   │ debg deleting user maps-minimal-shorten-user
[00:07:34]                   │ debg deleting user unknown-feature-user
[00:07:34]                   │ debg deleting user unknown-feature-minimal-user
[00:07:34]                   │ debg deleting user unknown-feature-minimal-shorten-user
[00:07:34]                   │ debg deleting role discover-role
[00:07:34]                   │ debg deleting role discover-minimal-role
[00:07:34]                   │ debg deleting role discover-minimal-shorten-role
[00:07:34]                   │ debg deleting role dashboard-role
[00:07:34]                   │ debg deleting role dashboard-minimal-role
[00:07:34]                   │ debg deleting role dashboard-minimal-shorten-role
[00:07:34]                   │ debg deleting role visualize-role
[00:07:34]                   │ debg deleting role visualize-minimal-role
[00:07:34]                   │ debg deleting role visualize-minimal-shorten-role
[00:07:34]                   │ debg deleting role infrastructure-role
[00:07:34]                   │ debg deleting role infrastructure-minimal-role
[00:07:34]                   │ debg deleting role infrastructure-minimal-shorten-role
[00:07:34]                   │ debg deleting role canvas-role
[00:07:34]                   │ debg deleting role canvas-minimal-role
[00:07:34]                   │ debg deleting role canvas-minimal-shorten-role
[00:07:34]                   │ debg deleting role maps-role
[00:07:34]                   │ debg deleting role maps-minimal-role
[00:07:34]                   │ debg deleting role maps-minimal-shorten-role
[00:07:34]                   │ debg deleting role unknown-feature-role
[00:07:34]                   │ debg deleting role unknown-feature-minimal-role
[00:07:34]                   │ debg deleting role unknown-feature-minimal-shorten-role
[00:07:34]                   │ proc [kibana]  error  [20:58:38.269]  Error: Internal Server Error
[00:07:34]                   │ proc [kibana]     at HapiResponseAdapter.toError (/dev/shm/workspace/kibana-build-xpack-7/src/core/server/http/router/response_adapter.js:124:19)
[00:07:34]                   │ proc [kibana]     at HapiResponseAdapter.toHapiResponse (/dev/shm/workspace/kibana-build-xpack-7/src/core/server/http/router/response_adapter.js:78:19)
[00:07:34]                   │ proc [kibana]     at HapiResponseAdapter.handle (/dev/shm/workspace/kibana-build-xpack-7/src/core/server/http/router/response_adapter.js:73:17)
[00:07:34]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-xpack-7/src/core/server/http/router/router.js:164:34)
[00:07:34]                   │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-xpack-7/src/core/server/http/router/router.js:124:50)
[00:07:34]                   │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-xpack-7/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:07:34]                   │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-xpack-7/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:07:34]                   │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-xpack-7/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:07:34]                   │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-xpack-7/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:07:34]                   │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-xpack-7/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:07:34]                   │ proc [kibana]   log   [20:58:38.910] [warning][plugins][securitySolution] Unable to verify endpoint policies in line with license change: failed to fetch package policies: connect ECONNREFUSED 127.0.0.1:6172
[00:07:34]                   │ proc [kibana]   log   [20:58:39.001] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.004] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.006] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.007] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.009] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.010] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.012] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.013] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.015] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.016] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.017] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.019] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.020] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.021] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.023] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.024] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.025] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.027] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.028] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.029] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.030] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.031] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.033] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.034] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.035] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.036] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.037] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.038] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.041] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.042] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.043] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.044] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.045] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.046] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.048] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.049] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.050] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.051] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.057] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.059] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.063] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.065] [error][authentication][plugins][security] License is not available, authentication is not possible.
[00:07:34]                   │ proc [kibana]   log   [20:58:39.066] [warning][elasticsearch] Unable to revive connection: http://localhost:6172/
[00:07:34]                   │ proc [kibana]   log   [20:58:39.066] [warning][elasticsearch] No living connections
[00:07:34]                   │ proc [kibana]   log   [20:58:39.066] [warning][licensing][plugins] License information could not be obtained from Elasticsearch due to Error: No Living connections error
[00:07:34]                   └- ✖ fail: apis Short URLs feature controls "after all" hook for "users with "url_create" access to unknown-feature should not be able to create short-urls"
[00:07:34]                   │      Error: Request failed with status code 503
[00:07:34]                   │       at createError (/dev/shm/workspace/parallel/7/kibana/node_modules/axios/lib/core/createError.js:16:15)
[00:07:34]                   │       at settle (/dev/shm/workspace/parallel/7/kibana/node_modules/axios/lib/core/settle.js:17:12)
[00:07:34]                   │       at IncomingMessage.handleStreamEnd (/dev/shm/workspace/parallel/7/kibana/node_modules/axios/lib/adapters/http.js:260:11)
[00:07:34]                   │       at endReadableNT (internal/streams/readable.js:1327:12)
[00:07:34]                   │       at processTicksAndRejections (internal/process/task_queues.js:80:21)
[00:07:34]                   │ 
[00:07:34]                   │ 

Stack Trace

Error: Request failed with status code 503
    at createError (/dev/shm/workspace/parallel/7/kibana/node_modules/axios/lib/core/createError.js:16:15)
    at settle (/dev/shm/workspace/parallel/7/kibana/node_modules/axios/lib/core/settle.js:17:12)
    at IncomingMessage.handleStreamEnd (/dev/shm/workspace/parallel/7/kibana/node_modules/axios/lib/adapters/http.js:260:11)
    at endReadableNT (internal/streams/readable.js:1327:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  config: {
    url: 'http://elastic:changeme@localhost:6171/internal/security/users/discover-user',
    method: 'delete',
    headers: {
      Accept: 'application/json, text/plain, */*',
      'kbn-xsrf': 'kbn-client',
      'User-Agent': 'axios/0.21.1'
    },
    transformRequest: [ [Function: transformRequest] ],
    transformResponse: [ [Function: transformResponse] ],
    paramsSerializer: [Function: paramsSerializer],
    timeout: 0,
    adapter: [Function: httpAdapter],
    xsrfCookieName: 'XSRF-TOKEN',
    xsrfHeaderName: 'X-XSRF-TOKEN',
    maxContentLength: -1,
    maxBodyLength: -1,
    httpsAgent: null,
    validateStatus: [Function: validateStatus],
    data: undefined
  },
  request: <ref *1> ClientRequest {
    _events: [Object: null prototype] {
      socket: [Function (anonymous)],
      abort: [Function (anonymous)],
      aborted: [Function (anonymous)],
      connect: [Function (anonymous)],
      error: [Function (anonymous)],
      timeout: [Function (anonymous)],
      prefinish: [Function: requestOnPrefinish]
    },
    _eventsCount: 7,
    _maxListeners: undefined,
    outputData: [],
    outputSize: 0,
    writable: true,
    destroyed: true,
    _last: true,
    chunkedEncoding: false,
    shouldKeepAlive: false,
    _defaultKeepAlive: true,
    useChunkedEncodingByDefault: false,
    sendDate: false,
    _removedConnection: false,
    _removedContLen: false,
    _removedTE: false,
    _contentLength: 0,
    _hasBody: true,
    _trailer: '',
    finished: true,
    _headerSent: true,
    socket: Socket {
      connecting: false,
      _hadError: false,
      _parent: null,
      _host: 'localhost',
      _readableState: [ReadableState],
      _events: [Object: null prototype],
      _eventsCount: 6,
      _maxListeners: undefined,
      _writableState: [WritableState],
      allowHalfOpen: false,
      _sockname: null,
      _pendingData: null,
      _pendingEncoding: '',
      server: null,
      _server: null,
      parser: null,
      _httpMessage: [Circular *1],
      [Symbol(async_id_symbol)]: 2296330,
      [Symbol(kHandle)]: null,
      [Symbol(kSetNoDelay)]: false,
      [Symbol(lastWriteQueueSize)]: 0,
      [Symbol(timeout)]: null,
      [Symbol(kBuffer)]: null,
      [Symbol(kBufferCb)]: null,
      [Symbol(kBufferGen)]: null,
      [Symbol(kCapture)]: false,
      [Symbol(kBytesRead)]: 477,
      [Symbol(kBytesWritten)]: 237,
      [Symbol(RequestTimeout)]: undefined
    },
    _header: 'DELETE /internal/security/users/discover-user HTTP/1.1\r\n' +
      'Accept: application/json, text/plain, */*\r\n' +
      'kbn-xsrf: kbn-client\r\n' +
      'User-Agent: axios/0.21.1\r\n' +
      'Host: localhost:6171\r\n' +
      'Authorization: Basic ZWxhc3RpYzpjaGFuZ2VtZQ==\r\n' +
      'Connection: close\r\n' +
      '\r\n',
    _keepAliveTimeout: 0,
    _onPendingData: [Function: noopPendingOutput],
    agent: Agent {
      _events: [Object: null prototype],
      _eventsCount: 2,
      _maxListeners: undefined,
      defaultPort: 80,
      protocol: 'http:',
      options: [Object],
      requests: {},
      sockets: [Object],
      freeSockets: {},
      keepAliveMsecs: 1000,
      keepAlive: false,
      maxSockets: Infinity,
      maxFreeSockets: 256,
      scheduling: 'fifo',
      maxTotalSockets: Infinity,
      totalSocketCount: 41,
      [Symbol(kCapture)]: false
    },
    socketPath: undefined,
    method: 'DELETE',
    maxHeaderSize: undefined,
    insecureHTTPParser: undefined,
    path: '/internal/security/users/discover-user',
    _ended: true,
    res: IncomingMessage {
      _readableState: [ReadableState],
      _events: [Object: null prototype],
      _eventsCount: 3,
      _maxListeners: undefined,
      socket: [Socket],
      httpVersionMajor: 1,
      httpVersionMinor: 1,
      httpVersion: '1.1',
      complete: true,
      headers: [Object],
      rawHeaders: [Array],
      trailers: {},
      rawTrailers: [],
      aborted: false,
      upgrade: false,
      url: '',
      method: null,
      statusCode: 503,
      statusMessage: 'Service Unavailable',
      client: [Socket],
      _consuming: false,
      _dumped: false,
      req: [Circular *1],
      responseUrl: 'http://elastic:changeme@localhost:6171/internal/security/users/discover-user',
      redirects: [],
      [Symbol(kCapture)]: false,
      [Symbol(RequestTimeout)]: undefined
    },
    aborted: false,
    timeoutCb: null,
    upgradeOrConnect: false,
    parser: null,
    maxHeadersCount: null,
    reusedSocket: false,
    host: 'localhost',
    protocol: 'http:',
    _redirectable: Writable {
      _writableState: [WritableState],
      _events: [Object: null prototype],
      _eventsCount: 2,
      _maxListeners: undefined,
      _options: [Object],
      _ended: true,
      _ending: true,
      _redirectCount: 0,
      _redirects: [],
      _requestBodyLength: 0,
      _requestBodyBuffers: [],
      _onNativeResponse: [Function (anonymous)],
      _currentRequest: [Circular *1],
      _currentUrl: 'http://elastic:changeme@localhost:6171/internal/security/users/discover-user',
      [Symbol(kCapture)]: false
    },
    [Symbol(kCapture)]: false,
    [Symbol(kNeedDrain)]: false,
    [Symbol(corked)]: 0,
    [Symbol(kOutHeaders)]: [Object: null prototype] {
      accept: [Array],
      'kbn-xsrf': [Array],
      'user-agent': [Array],
      host: [Array],
      authorization: [Array]
    }
  },
  response: {
    status: 503,
    statusText: 'Service Unavailable',
    headers: {
      'retry-after': '30',
      'kbn-name': 'kibana-ci-immutable-ubuntu-16-tests-xxl-1618602980117694297',
      'kbn-license-sig': '3f2fbe2e7dffe9936f647deadcb18d812ffbb4f02c27cd5d8ed8069fef195573',
      'content-type': 'application/json; charset=utf-8',
      'cache-control': 'private, no-cache, no-store, must-revalidate',
      'content-length': '86',
      date: 'Fri, 16 Apr 2021 20:58:39 GMT',
      connection: 'close'
    },
    config: {
      url: 'http://elastic:changeme@localhost:6171/internal/security/users/discover-user',
      method: 'delete',
      headers: [Object],
      transformRequest: [Array],
      transformResponse: [Array],
      paramsSerializer: [Function: paramsSerializer],
      timeout: 0,
      adapter: [Function: httpAdapter],
      xsrfCookieName: 'XSRF-TOKEN',
      xsrfHeaderName: 'X-XSRF-TOKEN',
      maxContentLength: -1,
      maxBodyLength: -1,
      httpsAgent: null,
      validateStatus: [Function: validateStatus],
      data: undefined
    },
    request: <ref *1> ClientRequest {
      _events: [Object: null prototype],
      _eventsCount: 7,
      _maxListeners: undefined,
      outputData: [],
      outputSize: 0,
      writable: true,
      destroyed: true,
      _last: true,
      chunkedEncoding: false,
      shouldKeepAlive: false,
      _defaultKeepAlive: true,
      useChunkedEncodingByDefault: false,
      sendDate: false,
      _removedConnection: false,
      _removedContLen: false,
      _removedTE: false,
      _contentLength: 0,
      _hasBody: true,
      _trailer: '',
      finished: true,
      _headerSent: true,
      socket: [Socket],
      _header: 'DELETE /internal/security/users/discover-user HTTP/1.1\r\n' +
        'Accept: application/json, text/plain, */*\r\n' +
        'kbn-xsrf: kbn-client\r\n' +
        'User-Agent: axios/0.21.1\r\n' +
        'Host: localhost:6171\r\n' +
        'Authorization: Basic ZWxhc3RpYzpjaGFuZ2VtZQ==\r\n' +
        'Connection: close\r\n' +
        '\r\n',
      _keepAliveTimeout: 0,
      _onPendingData: [Function: noopPendingOutput],
      agent: [Agent],
      socketPath: undefined,
      method: 'DELETE',
      maxHeaderSize: undefined,
      insecureHTTPParser: undefined,
      path: '/internal/security/users/discover-user',
      _ended: true,
      res: [IncomingMessage],
      aborted: false,
      timeoutCb: null,
      upgradeOrConnect: false,
      parser: null,
      maxHeadersCount: null,
      reusedSocket: false,
      host: 'localhost',
      protocol: 'http:',
      _redirectable: [Writable],
      [Symbol(kCapture)]: false,
      [Symbol(kNeedDrain)]: false,
      [Symbol(corked)]: 0,
      [Symbol(kOutHeaders)]: [Object: null prototype]
    },
    data: {
      statusCode: 503,
      error: 'Service Unavailable',
      message: 'License is not available.'
    }
  },
  isAxiosError: true,
  toJSON: [Function: toJSON]
}

Metrics [docs]

✅ unchanged

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @FrankHassanabad

@kibanamachine kibanamachine merged commit 4ae0c1f into elastic:7.x Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants