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] [Canvas] Remove dependency on legacy expressions APIs (#74885) #75342

Merged
merged 1 commit into from
Aug 18, 2020

Conversation

poffdeluxe
Copy link
Contributor

Backports the following commits to 7.x:

* Remove legacy types and function registration

* Pull server interpreter functions routes into Canvas and update them to use new expressions API

* Clean up comment

* Removing boom and doing more cleanup

* Add functions test and refactor other router tests

* Adding a type and refactoring a forgotten test

* more tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

X-Pack Endpoint Functional Tests.x-pack/test/security_solution_endpoint/apps/endpoint/endpoint_list·ts.endpoint endpoint list when there is data, when the hostname is clicked on, has the same flyout info when the same hostname is selected

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: endpoint
[00:00:00]           └-> "before all" hook
[00:00:00]           └-> "before all" hook
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] [logs-index_pattern_placeholder] creating index, cause [api], templates [], shards [1]/[1]
[00:00:00]             │ info [docker:registry] 2020/08/18 19:04:49 source.ip: 172.17.0.1:36462, url.original: /search?package=system&internal=true&experimental=true&kibana.version=7.10.0
[00:00:00]             │ info [docker:registry] 2020/08/18 19:04:49 source.ip: 172.17.0.1:36460, url.original: /search?package=endpoint&internal=true&experimental=true&kibana.version=7.10.0
[00:00:00]             │ info [docker:registry] 2020/08/18 19:04:49 source.ip: 172.17.0.1:36470, url.original: /search?package=endpoint&internal=true&experimental=true&kibana.version=7.10.0
[00:00:00]             │ info [docker:registry] 2020/08/18 19:04:49 source.ip: 172.17.0.1:36468, url.original: /search?package=system&internal=true&experimental=true&kibana.version=7.10.0
[00:00:00]             │ info [docker:registry] 2020/08/18 19:04:49 source.ip: 172.17.0.1:36476, url.original: /package/endpoint/0.13.0
[00:00:00]             │ info [docker:registry] 2020/08/18 19:04:49 source.ip: 172.17.0.1:36478, url.original: /package/system/0.5.3
[00:00:00]             │ info [docker:registry] 2020/08/18 19:04:49 source.ip: 172.17.0.1:36484, url.original: /package/endpoint/0.13.0/
[00:00:00]             │ info [docker:registry] 2020/08/18 19:04:49 source.ip: 172.17.0.1:36486, url.original: /package/system/0.5.3/
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] [metrics-index_pattern_placeholder] creating index, cause [api], templates [], shards [1]/[1]
[00:00:00]             │ info [docker:registry] 2020/08/18 19:04:49 source.ip: 172.17.0.1:36492, url.original: /epr/system/system-0.5.3.tar.gz
[00:00:00]             │ info [docker:registry] 2020/08/18 19:04:49 source.ip: 172.17.0.1:36498, url.original: /epr/endpoint/endpoint-0.13.0.tar.gz
[00:00:00]             │ info [docker:registry] 2020/08/18 19:04:49 source.ip: 172.17.0.1:36502, url.original: /package/endpoint/0.13.0
[00:00:00]             │ info [docker:registry] 2020/08/18 19:04:49 source.ip: 172.17.0.1:36506, url.original: /package/endpoint/0.13.0/
[00:00:00]             │ info [docker:registry] 2020/08/18 19:04:49 source.ip: 172.17.0.1:36510, url.original: /package/system/0.5.3
[00:00:00]             │ info [docker:registry] 2020/08/18 19:04:49 source.ip: 172.17.0.1:36514, url.original: /package/system/0.5.3/
[00:00:01]             │ info [docker:registry] 2020/08/18 19:04:50 source.ip: 172.17.0.1:36534, url.original: /search?kibana.version=7.10.0
[00:00:01]             │ info [docker:registry] 2020/08/18 19:04:50 source.ip: 172.17.0.1:36536, url.original: /search?kibana.version=7.10.0
[00:00:01]             │ info [docker:registry] 2020/08/18 19:04:50 source.ip: 172.17.0.1:36550, url.original: /package/system/0.5.3
[00:00:01]             │ info [docker:registry] 2020/08/18 19:04:50 source.ip: 172.17.0.1:36548, url.original: /package/endpoint/0.13.0
[00:00:01]             │ info [docker:registry] 2020/08/18 19:04:50 source.ip: 172.17.0.1:36546, url.original: /package/endpoint/0.13.0
[00:00:01]             │ info [docker:registry] 2020/08/18 19:04:50 source.ip: 172.17.0.1:36552, url.original: /package/system/0.5.3
[00:00:01]             │ info [docker:registry] 2020/08/18 19:04:50 source.ip: 172.17.0.1:36560, url.original: /package/system/0.5.3/
[00:00:01]             │ info [docker:registry] 2020/08/18 19:04:50 source.ip: 172.17.0.1:36564, url.original: /package/endpoint/0.13.0/
[00:00:01]             │ info [docker:registry] 2020/08/18 19:04:50 source.ip: 172.17.0.1:36566, url.original: /package/endpoint/0.13.0/
[00:00:01]             │ info [docker:registry] 2020/08/18 19:04:50 source.ip: 172.17.0.1:36568, url.original: /package/system/0.5.3/
[00:00:01]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] [.kibana_1/sS-BGY3KQYifSNsoRaMCZw] update_mapping [_doc]
[00:00:02]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] [.kibana_1/sS-BGY3KQYifSNsoRaMCZw] update_mapping [_doc]
[00:00:02]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] [.kibana_1/sS-BGY3KQYifSNsoRaMCZw] update_mapping [_doc]
[00:00:02]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] [.kibana_1/sS-BGY3KQYifSNsoRaMCZw] update_mapping [_doc]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding component template [logs-endpoint.events.library-mappings]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding component template [metrics-endpoint.metadata-mappings]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding component template [logs-endpoint.alerts-mappings]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding component template [logs-endpoint.events.file-mappings]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding component template [metrics-endpoint.metrics-mappings]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding component template [logs-endpoint.events.security-mappings]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding component template [logs-endpoint.events.registry-mappings]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding component template [metrics-endpoint.policy-mappings]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding component template [logs-endpoint.events.process-mappings]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding component template [logs-endpoint.events.network-mappings]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding index template [metrics-system.cpu] for index patterns [metrics-system.cpu-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding index template [metrics-system.core] for index patterns [metrics-system.core-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding index template [logs-system.auth] for index patterns [logs-system.auth-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding index template [metrics-system.diskio] for index patterns [metrics-system.diskio-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding index template [metrics-system.filesystem] for index patterns [metrics-system.filesystem-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding index template [logs-endpoint.events.library] for index patterns [logs-endpoint.events.library-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding index template [metrics-system.fsstat] for index patterns [metrics-system.fsstat-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding index template [metrics-system.memory] for index patterns [metrics-system.memory-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding index template [metrics-system.load] for index patterns [metrics-system.load-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding index template [metrics-system.raid] for index patterns [metrics-system.raid-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding index template [metrics-system.process_summary] for index patterns [metrics-system.process_summary-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding index template [metrics-system.entropy] for index patterns [metrics-system.entropy-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding index template [metrics-system.socket] for index patterns [metrics-system.socket-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding index template [metrics-system.network_summary] for index patterns [metrics-system.network_summary-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding index template [metrics-system.network] for index patterns [metrics-system.network-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding index template [metrics-system.socket_summary] for index patterns [metrics-system.socket_summary-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding index template [metrics-system.service] for index patterns [metrics-system.service-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding index template [metrics-system.uptime] for index patterns [metrics-system.uptime-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding index template [metrics-system.process] for index patterns [metrics-system.process-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding index template [logs-system.syslog] for index patterns [logs-system.syslog-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding index template [metrics-system.users] for index patterns [metrics-system.users-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding index template [metrics-endpoint.metadata] for index patterns [metrics-endpoint.metadata-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding index template [logs-endpoint.alerts] for index patterns [logs-endpoint.alerts-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding index template [logs-endpoint.events.file] for index patterns [logs-endpoint.events.file-*]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding index template [metrics-endpoint.metrics] for index patterns [metrics-endpoint.metrics-*]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding index template [logs-endpoint.events.security] for index patterns [logs-endpoint.events.security-*]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding index template [logs-endpoint.events.registry] for index patterns [logs-endpoint.events.registry-*]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding index template [metrics-endpoint.policy] for index patterns [metrics-endpoint.policy-*]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding index template [logs-endpoint.events.process] for index patterns [logs-endpoint.events.process-*]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding index template [logs-endpoint.events.network] for index patterns [logs-endpoint.events.network-*]
[00:00:07]             │ info [docker:registry] 2020/08/18 19:04:56 source.ip: 172.17.0.1:36748, url.original: /search?package=system&internal=true&experimental=true&kibana.version=7.10.0
[00:00:07]             │ info [docker:registry] 2020/08/18 19:04:56 source.ip: 172.17.0.1:36750, url.original: /package/system/0.5.3
[00:00:07]             │ info [docker:registry] 2020/08/18 19:04:56 source.ip: 172.17.0.1:36754, url.original: /package/system/0.5.3/
[00:00:07]             │ info [docker:registry] 2020/08/18 19:04:56 source.ip: 172.17.0.1:36768, url.original: /search?package=system&internal=true&experimental=true&kibana.version=7.10.0
[00:00:07]             │ info [docker:registry] 2020/08/18 19:04:56 source.ip: 172.17.0.1:36770, url.original: /package/system/0.5.3
[00:00:07]             │ info [docker:registry] 2020/08/18 19:04:56 source.ip: 172.17.0.1:36774, url.original: /package/system/0.5.3/
[00:00:07]             │ info [docker:registry] 2020/08/18 19:04:56 source.ip: 172.17.0.1:36782, url.original: /package/system/0.5.3
[00:00:07]             │ info [docker:registry] 2020/08/18 19:04:56 source.ip: 172.17.0.1:36786, url.original: /package/system/0.5.3/
[00:00:09]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] added role [fleet_enroll]
[00:00:09]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] added user [fleet_enroll]
[00:00:11]           └-: endpoint list
[00:00:11]             └-> "before all" hook
[00:00:11]             └-: when there is data,
[00:00:11]               └-> "before all" hook
[00:00:11]               └-> "before all" hook
[00:00:11]                 │ info [endpoint/metadata/api_feature] Loading "data.json"
[00:00:11]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] [.ds-metrics-endpoint.metadata-default-000001] creating index, cause [initialize_data_stream], templates [metrics-endpoint.metadata], shards [1]/[1]
[00:00:11]                 │ info [o.e.c.m.MetadataCreateDataStreamService] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] adding data stream [metrics-endpoint.metadata-default]
[00:00:11]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] moving index [.ds-metrics-endpoint.metadata-default-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [metrics]
[00:00:11]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] moving index [.ds-metrics-endpoint.metadata-default-000001] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-indexing-complete"}] in policy [metrics]
[00:00:11]                 │ info [endpoint/metadata/api_feature] Indexed 9 docs into "metrics-endpoint.metadata-default"
[00:00:11]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-debian-tests-xxl-1597772526230682783] moving index [.ds-metrics-endpoint.metadata-default-000001] from [{"phase":"hot","action":"unfollow","name":"wait-for-indexing-complete"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-follow-shard-tasks"}] in policy [metrics]
[00:00:11]                 │ debg navigateToActualUrl http://localhost:61131/app/security/administration/endpoints
[00:00:12]                 │ debg browser[INFO] http://localhost:61131/login?next=%2Fapp%2Fsecurity%2Fadministration%2Fendpoints%3F_t%3D1597777501030 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:12]                 │
[00:00:12]                 │ debg browser[INFO] http://localhost:61131/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:12]                 │ debg currentUrl = http://localhost:61131/login?next=%2Fapp%2Fsecurity%2Fadministration%2Fendpoints%3F_t%3D1597777501030
[00:00:12]                 │          appUrl = http://localhost:61131/app/security/administration/endpoints
[00:00:12]                 │ debg TestSubjects.find(kibanaChrome)
[00:00:12]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:15]                 │ debg browser[INFO] http://localhost:61131/34177/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-08-18T19:05:03Z
[00:00:15]                 │        Adding connection to http://localhost:61131/elasticsearch
[00:00:15]                 │
[00:00:15]                 │      "
[00:00:15]                 │ debg Found login page
[00:00:15]                 │ debg TestSubjects.setValue(loginUsername, test_user)
[00:00:15]                 │ debg TestSubjects.click(loginUsername)
[00:00:15]                 │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:00:15]                 │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:00:15]                 │ debg TestSubjects.setValue(loginPassword, changeme)
[00:00:15]                 │ debg TestSubjects.click(loginPassword)
[00:00:15]                 │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:00:15]                 │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:00:15]                 │ debg TestSubjects.click(loginSubmit)
[00:00:15]                 │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:00:15]                 │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:00:15]                 │ debg Find.waitForDeletedByCssSelector('.kibanaWelcomeLogo') with timeout=10000
[00:00:15]                 │ proc [kibana]   log   [19:05:04.787] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:00:16]                 │ debg browser[INFO] http://localhost:61131/app/security/administration/endpoints?_t=1597777501030 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:16]                 │
[00:00:16]                 │ debg browser[INFO] http://localhost:61131/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:16]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:18]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide)') with timeout=60000
[00:00:18]                 │ debg browser[INFO] http://localhost:61131/34177/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-08-18T19:05:06Z
[00:00:18]                 │        Adding connection to http://localhost:61131/elasticsearch
[00:00:18]                 │
[00:00:18]                 │      "
[00:00:19]                 │ info [docker:registry] 2020/08/18 19:05:08 source.ip: 172.17.0.1:37002, url.original: /search?category=security&kibana.version=7.10.0
[00:00:19]                 │ proc [kibana]   log   [19:05:09.060] [warning][metadata][plugins][securitySolution] agent with id 92ac1ce0-e1f7-409e-8af6-f17e97b1fc71 not found
[00:00:19]                 │ proc [kibana]   log   [19:05:09.061] [warning][metadata][plugins][securitySolution] agent with id 11488bae-880b-4e7b-8d28-aac2aa9de816 not found
[00:00:19]                 │ proc [kibana]   log   [19:05:09.062] [warning][metadata][plugins][securitySolution] agent with id 023fa40c-411d-4188-a941-4147bfadd095 not found
[00:00:19]                 │ proc [kibana]   log   [19:05:09.077] [warning][metadata][plugins][securitySolution] agent with id 023fa40c-411d-4188-a941-4147bfadd095 not found
[00:00:19]                 │ proc [kibana]   log   [19:05:09.078] [warning][metadata][plugins][securitySolution] agent with id 11488bae-880b-4e7b-8d28-aac2aa9de816 not found
[00:00:19]                 │ proc [kibana]   log   [19:05:09.079] [warning][metadata][plugins][securitySolution] agent with id 92ac1ce0-e1f7-409e-8af6-f17e97b1fc71 not found
[00:00:20]                 │ info [docker:registry] 2020/08/18 19:05:09 source.ip: 172.17.0.1:37006, url.original: /search?category=security&kibana.version=7.10.0
[00:00:20]                 │ERROR browser[SEVERE] http://localhost:61131/api/detection_engine/index - Failed to load resource: the server responded with a status of 404 (Not Found)
[00:00:20]                 │ERROR browser[SEVERE] http://localhost:61131/34177/bundles/plugin/securitySolution/securitySolution.chunk.5.js 2:1628553 TypeError: Failed to fetch
[00:00:20]                 │          at Fetch._callee3$ (http://localhost:61131/34177/bundles/core/core.entry.js:34:105310)
[00:00:20]                 │          at l (http://localhost:61131/34177/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:164562)
[00:00:20]                 │          at Generator._invoke (http://localhost:61131/34177/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:164315)
[00:00:20]                 │          at Generator.forEach.e.<computed> [as throw] (http://localhost:61131/34177/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:164919)
[00:00:20]                 │          at fetch_asyncGeneratorStep (http://localhost:61131/34177/bundles/core/core.entry.js:34:99403)
[00:00:20]                 │          at _throw (http://localhost:61131/34177/bundles/core/core.entry.js:34:99811)
[00:00:20]                 │ERROR browser[SEVERE] http://localhost:61131/34177/bundles/plugin/securitySolution/securitySolution.chunk.5.js 2:1627744 TypeError: Failed to fetch
[00:00:20]                 │          at Fetch._callee3$ (http://localhost:61131/34177/bundles/core/core.entry.js:34:106060)
[00:00:20]                 │          at l (http://localhost:61131/34177/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:164562)
[00:00:20]                 │          at Generator._invoke (http://localhost:61131/34177/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:164315)
[00:00:20]                 │          at Generator.forEach.e.<computed> [as throw] (http://localhost:61131/34177/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:164919)
[00:00:20]                 │          at fetch_asyncGeneratorStep (http://localhost:61131/34177/bundles/core/core.entry.js:34:99403)
[00:00:20]                 │          at _throw (http://localhost:61131/34177/bundles/core/core.entry.js:34:99811)
[00:00:20]                 │ERROR browser[SEVERE] http://localhost:61131/34177/bundles/plugin/securitySolution/securitySolution.chunk.5.js 2:1628553 TypeError: Failed to fetch
[00:00:20]                 │          at Fetch._callee3$ (http://localhost:61131/34177/bundles/core/core.entry.js:34:105310)
[00:00:20]                 │          at l (http://localhost:61131/34177/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:164562)
[00:00:20]                 │          at Generator._invoke (http://localhost:61131/34177/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:164315)
[00:00:20]                 │          at Generator.forEach.e.<computed> [as throw] (http://localhost:61131/34177/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:164919)
[00:00:20]                 │          at fetch_asyncGeneratorStep (http://localhost:61131/34177/bundles/core/core.entry.js:34:99403)
[00:00:20]                 │          at _throw (http://localhost:61131/34177/bundles/core/core.entry.js:34:99811)
[00:00:20]                 │ debg browser[INFO] http://localhost:61131/app/security/administration/endpoints?_t=1597777508699 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:20]                 │
[00:00:20]                 │ debg browser[INFO] http://localhost:61131/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:20]                 │ debg Finished login process currentUrl = http://localhost:61131/app/security/administration/endpoints
[00:00:20]                 │ debg isGlobalLoadingIndicatorVisible
[00:00:20]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:00:20]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:00:21]                 │ debg browser[INFO] http://localhost:61131/34177/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-08-18T19:05:10Z
[00:00:21]                 │        Adding connection to http://localhost:61131/elasticsearch
[00:00:21]                 │
[00:00:21]                 │      "
[00:00:21]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:00:22]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:00:22]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:00:22]                 │ info [docker:registry] 2020/08/18 19:05:11 source.ip: 172.17.0.1:37098, url.original: /search?category=security&kibana.version=7.10.0
[00:00:22]                 │ proc [kibana]   log   [19:05:11.786] [warning][metadata][plugins][securitySolution] agent with id 11488bae-880b-4e7b-8d28-aac2aa9de816 not found
[00:00:22]                 │ proc [kibana]   log   [19:05:11.787] [warning][metadata][plugins][securitySolution] agent with id 92ac1ce0-e1f7-409e-8af6-f17e97b1fc71 not found
[00:00:22]                 │ proc [kibana]   log   [19:05:11.788] [warning][metadata][plugins][securitySolution] agent with id 023fa40c-411d-4188-a941-4147bfadd095 not found
[00:00:22]                 │ proc [kibana]   log   [19:05:11.789] [warning][metadata][plugins][securitySolution] agent with id 11488bae-880b-4e7b-8d28-aac2aa9de816 not found
[00:00:22]                 │ proc [kibana]   log   [19:05:11.790] [warning][metadata][plugins][securitySolution] agent with id 023fa40c-411d-4188-a941-4147bfadd095 not found
[00:00:22]                 │ proc [kibana]   log   [19:05:11.790] [warning][metadata][plugins][securitySolution] agent with id 92ac1ce0-e1f7-409e-8af6-f17e97b1fc71 not found
[00:00:22]                 │ info [docker:registry] 2020/08/18 19:05:11 source.ip: 172.17.0.1:37102, url.original: /search?category=security&kibana.version=7.10.0
[00:00:22]                 │ERROR browser[SEVERE] http://localhost:61131/api/detection_engine/index - Failed to load resource: the server responded with a status of 404 (Not Found)
[00:00:22]               └-> finds page title
[00:00:22]                 └-> "before each" hook: global before each
[00:00:22]                 │ debg TestSubjects.getVisibleText(pageViewHeaderLeftTitle)
[00:00:22]                 │ debg TestSubjects.find(pageViewHeaderLeftTitle)
[00:00:22]                 │ debg Find.findByCssSelector('[data-test-subj="pageViewHeaderLeftTitle"]') with timeout=10000
[00:00:22]                 └- ✓ pass  (30ms) "endpoint endpoint list when there is data, finds page title"
[00:00:22]               └-> displays table data
[00:00:22]                 └-> "before each" hook: global before each
[00:00:22]                 │ debg TestSubjects.exists(endpointListTable)
[00:00:22]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="endpointListTable"]') with timeout=2500
[00:00:22]                 │ debg TestSubjects.find(endpointListTable)
[00:00:22]                 │ debg Find.findByCssSelector('[data-test-subj="endpointListTable"]') with timeout=10000
[00:00:23]                 └- ✓ pass  (80ms) "endpoint endpoint list when there is data, displays table data"
[00:00:23]               └-> does not show the details flyout initially
[00:00:23]                 └-> "before each" hook: global before each
[00:00:23]                 │ debg TestSubjects.missingOrFail(endpointDetailsFlyout)
[00:00:23]                 │ debg Find.waitForDeletedByCssSelector('[data-test-subj="endpointDetailsFlyout"]') with timeout=2500
[00:00:23]                 └- ✓ pass  (534ms) "endpoint endpoint list when there is data, does not show the details flyout initially"
[00:00:23]               └-: when the hostname is clicked on,
[00:00:23]                 └-> "before all" hook
[00:00:23]                 └-> display the details flyout
[00:00:23]                   └-> "before each" hook: global before each
[00:00:23]                   │ debg TestSubjects.find(hostnameCellLink)
[00:00:23]                   │ debg Find.findByCssSelector('[data-test-subj="hostnameCellLink"]') with timeout=10000
[00:00:23]                   │ debg TestSubjects.exists(endpointDetailsUpperList)
[00:00:23]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="endpointDetailsUpperList"]') with timeout=120000
[00:00:23]                   │ proc [kibana]   log   [19:05:12.803] [warning][metadata][plugins][securitySolution] agent with id 11488bae-880b-4e7b-8d28-aac2aa9de816 not found
[00:00:23]                   │ proc [kibana]   log   [19:05:12.808] [warning][metadata][plugins][securitySolution] agent with id 11488bae-880b-4e7b-8d28-aac2aa9de816 not found
[00:00:23]                   │ debg TestSubjects.exists(endpointDetailsLowerList)
[00:00:23]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="endpointDetailsLowerList"]') with timeout=120000
[00:00:23]                   └- ✓ pass  (253ms) "endpoint endpoint list when there is data, when the hostname is clicked on, display the details flyout"
[00:00:23]                 └-> updates the details flyout when a new hostname is selected from the list
[00:00:23]                   └-> "before each" hook: global before each
[00:00:23]                   │ debg TestSubjects.findAll(hostnameCellLink)
[00:00:23]                   │ debg Find.allByCssSelector('[data-test-subj="hostnameCellLink"]') with timeout=10000
[00:00:23]                   │ debg TestSubjects.exists(endpointDetailsFlyoutTitle)
[00:00:23]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="endpointDetailsFlyoutTitle"]') with timeout=120000
[00:00:23]                   │ERROR browser[SEVERE] http://localhost:61131/api/endpoint/policy_response?hostId=1fb3e58f-6ab0-4406-9d2a-91911207a712 - Failed to load resource: the server responded with a status of 404 (Not Found)
[00:00:23]                   │ proc [kibana]   log   [19:05:13.078] [warning][metadata][plugins][securitySolution] agent with id 11488bae-880b-4e7b-8d28-aac2aa9de816 not found
[00:00:23]                   │ proc [kibana]   log   [19:05:13.085] [warning][metadata][plugins][securitySolution] agent with id 11488bae-880b-4e7b-8d28-aac2aa9de816 not found
[00:00:24]                   │ debg TestSubjects.getVisibleText(endpointDetailsFlyoutTitle)
[00:00:24]                   │ debg TestSubjects.find(endpointDetailsFlyoutTitle)
[00:00:24]                   │ debg Find.findByCssSelector('[data-test-subj="endpointDetailsFlyoutTitle"]') with timeout=10000
[00:00:24]                   │ debg TestSubjects.findAll(hostnameCellLink)
[00:00:24]                   │ debg Find.allByCssSelector('[data-test-subj="hostnameCellLink"]') with timeout=10000
[00:00:24]                   │ERROR browser[SEVERE] http://localhost:61131/api/endpoint/policy_response?hostId=1fb3e58f-6ab0-4406-9d2a-91911207a712 - Failed to load resource: the server responded with a status of 404 (Not Found)
[00:00:24]                   │ debg Waiting up to 2000ms for visible text to change...
[00:00:24]                   │ debg TestSubjects.getVisibleText(endpointDetailsFlyoutTitle)
[00:00:24]                   │ debg TestSubjects.find(endpointDetailsFlyoutTitle)
[00:00:24]                   │ debg Find.findByCssSelector('[data-test-subj="endpointDetailsFlyoutTitle"]') with timeout=10000
[00:00:24]                   │ proc [kibana]   log   [19:05:13.325] [warning][metadata][plugins][securitySolution] agent with id 92ac1ce0-e1f7-409e-8af6-f17e97b1fc71 not found
[00:00:24]                   │ proc [kibana]   log   [19:05:13.331] [warning][metadata][plugins][securitySolution] agent with id 92ac1ce0-e1f7-409e-8af6-f17e97b1fc71 not found
[00:00:24]                   │ debg TestSubjects.getVisibleText(endpointDetailsFlyoutTitle)
[00:00:24]                   │ debg TestSubjects.find(endpointDetailsFlyoutTitle)
[00:00:24]                   │ debg Find.findByCssSelector('[data-test-subj="endpointDetailsFlyoutTitle"]') with timeout=10000
[00:00:24]                   └- ✓ pass  (470ms) "endpoint endpoint list when there is data, when the hostname is clicked on, updates the details flyout when a new hostname is selected from the list"
[00:00:24]                 └-> has the same flyout info when the same hostname is selected
[00:00:24]                   └-> "before each" hook: global before each
[00:00:24]                   │ debg TestSubjects.findAll(hostnameCellLink)
[00:00:24]                   │ debg Find.allByCssSelector('[data-test-subj="hostnameCellLink"]') with timeout=10000
[00:00:24]                   │ debg TestSubjects.exists(endpointDetailsFlyoutTitle)
[00:00:24]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="endpointDetailsFlyoutTitle"]') with timeout=120000
[00:00:24]                   │ERROR browser[SEVERE] http://localhost:61131/api/endpoint/policy_response?hostId=2f735e3d-be14-483b-9822-bad06e9045ca - Failed to load resource: the server responded with a status of 404 (Not Found)
[00:00:24]                   │ debg TestSubjects.getVisibleText(endpointDetailsFlyoutTitle)
[00:00:24]                   │ debg TestSubjects.find(endpointDetailsFlyoutTitle)
[00:00:24]                   │ debg Find.findByCssSelector('[data-test-subj="endpointDetailsFlyoutTitle"]') with timeout=10000
[00:00:24]                   │ proc [kibana]   log   [19:05:13.559] [warning][metadata][plugins][securitySolution] agent with id 92ac1ce0-e1f7-409e-8af6-f17e97b1fc71 not found
[00:00:24]                   │ proc [kibana]   log   [19:05:13.568] [warning][metadata][plugins][securitySolution] agent with id 92ac1ce0-e1f7-409e-8af6-f17e97b1fc71 not found
[00:00:24]                   │ debg TestSubjects.findAll(hostnameCellLink)
[00:00:24]                   │ debg Find.allByCssSelector('[data-test-subj="hostnameCellLink"]') with timeout=10000
[00:00:24]                   │ERROR browser[SEVERE] http://localhost:61131/api/endpoint/policy_response?hostId=2f735e3d-be14-483b-9822-bad06e9045ca - Failed to load resource: the server responded with a status of 404 (Not Found)
[00:00:24]                   │ proc [kibana]   log   [19:05:13.760] [warning][metadata][plugins][securitySolution] agent with id 92ac1ce0-e1f7-409e-8af6-f17e97b1fc71 not found
[00:00:24]                   │ proc [kibana]   log   [19:05:13.770] [warning][metadata][plugins][securitySolution] agent with id 92ac1ce0-e1f7-409e-8af6-f17e97b1fc71 not found
[00:00:24]                   │ERROR browser[SEVERE] http://localhost:61131/api/endpoint/policy_response?hostId=2f735e3d-be14-483b-9822-bad06e9045ca - Failed to load resource: the server responded with a status of 404 (Not Found)
[00:00:25]                   │ debg TestSubjects.getVisibleText(endpointDetailsFlyoutTitle)
[00:00:25]                   │ debg TestSubjects.find(endpointDetailsFlyoutTitle)
[00:00:25]                   │ debg Find.findByCssSelector('[data-test-subj="endpointDetailsFlyoutTitle"]') with timeout=10000
[00:00:25]                   │ info Taking screenshot "/dev/shm/workspace/parallel/13/kibana/x-pack/test/functional/screenshots/failure/endpoint endpoint list when there is data_ when the hostname is clicked on_ has the same flyout info when the same hostname is selected.png"
[00:00:25]                   │ info Current URL is: http://localhost:61131/app/security/administration/endpoints?page_index=0&page_size=10&selected_endpoint=2f735e3d-be14-483b-9822-bad06e9045ca&show=
[00:00:25]                   │ info Saving page source to: /dev/shm/workspace/parallel/13/kibana/x-pack/test/functional/failure_debug/html/endpoint endpoint list when there is data_ when the hostname is clicked on_ has the same flyout info when the same hostname is selected.html
[00:00:25]                   └- ✖ fail: endpoint endpoint list when there is data, when the hostname is clicked on, has the same flyout info when the same hostname is selected
[00:00:25]                   │      Error: expected 'thurlow-9.example.com' to equal ''
[00:00:25]                   │       at Assertion.assert (/dev/shm/workspace/parallel/13/kibana/packages/kbn-expect/expect.js:100:11)
[00:00:25]                   │       at Assertion.equal (/dev/shm/workspace/parallel/13/kibana/packages/kbn-expect/expect.js:227:8)
[00:00:25]                   │       at Context.it (test/security_solution_endpoint/apps/endpoint/endpoint_list.ts:124:45)
[00:00:25]                   │       at process._tickCallback (internal/process/next_tick.js:68:7)
[00:00:25]                   │ 
[00:00:25]                   │ 

Stack Trace

Error: expected 'thurlow-9.example.com' to equal ''
    at Assertion.assert (/dev/shm/workspace/parallel/13/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.equal (/dev/shm/workspace/parallel/13/kibana/packages/kbn-expect/expect.js:227:8)
    at Context.it (test/security_solution_endpoint/apps/endpoint/endpoint_list.ts:124:45)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Build metrics

async chunks size

id value diff baseline
canvas 1.4MB -50.0B 1.4MB

page load bundle size

id value diff baseline
canvas 1.3MB +2.6KB 1.3MB

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

@poffdeluxe poffdeluxe merged commit 8e12bca into elastic:7.x Aug 18, 2020
@poffdeluxe poffdeluxe deleted the backport/7.x/pr-74885 branch August 18, 2020 20:52
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