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][Detection Engine] Updates the edit rules page to only have what is selected for editing (#79233) #79386

Merged
merged 2 commits into from
Oct 3, 2020

Conversation

FrankHassanabad
Copy link
Contributor

Backports the following commits to 7.x:

… only have what is selected for editing (elastic#79233)

## Summary

Before when you would edit rules you get all the rules as disabled but you cannot switch between them in edit mode as it's already a rule you created:
<img width="1063" alt="Screen Shot 2020-10-01 at 5 06 18 PM" src="https://user-images.githubusercontent.com/1151048/94872518-0bdaba00-040a-11eb-8b7d-3b3a59980e99.png">

After, now we remove those cards and only show the card of the rule type you're editing:
<img width="1074" alt="Screen Shot 2020-10-02 at 6 29 48 PM" src="https://user-images.githubusercontent.com/1151048/94978954-50835580-04dd-11eb-9e08-8e473fc216bf.png">

Changes the card's icon placement and text.

Before:
<img width="1098" alt="Screen Shot 2020-10-02 at 9 27 44 AM" src="https://user-images.githubusercontent.com/1151048/94979008-9dffc280-04dd-11eb-8bce-88cd49b063a8.png">

After:
<img width="1190" alt="Screen Shot 2020-10-02 at 6 31 01 PM" src="https://user-images.githubusercontent.com/1151048/94979005-95a78780-04dd-11eb-92ec-e81bc3ce436e.png">

Fixes the Schedule/Actions and weirdness with CSS.
Before:
<img width="588" alt="Screen Shot 2020-10-02 at 5 42 09 PM" src="https://user-images.githubusercontent.com/1151048/94979030-c5568f80-04dd-11eb-9c91-683d75dc37da.png">
<img width="516" alt="Screen Shot 2020-10-02 at 5 42 05 PM" src="https://user-images.githubusercontent.com/1151048/94979035-c8ea1680-04dd-11eb-9049-120c9d676b1a.png">

After:
<img width="1099" alt="Screen Shot 2020-10-02 at 5 42 51 PM" src="https://user-images.githubusercontent.com/1151048/94979038-d0112480-04dd-11eb-8a2a-8eb314023669.png">

<img width="1067" alt="Screen Shot 2020-10-02 at 5 42 57 PM" src="https://user-images.githubusercontent.com/1151048/94979040-d30c1500-04dd-11eb-85ab-a09e4def6adb.png">

### Checklist

Delete any items that are not applicable to this PR.

- [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
- [ ] This was checked for [keyboard-only and screenreader accessibility](https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Accessibility#Accessibility_testing_checklist)
- [ ] This renders correctly on smaller devices using a responsive layout. (You can test this [in your browser](https://www.browserstack.com/guide/responsive-testing-on-local-server)
- [ ] This was checked for [cross-browser compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
@FrankHassanabad
Copy link
Contributor Author

@elasticmachine merge upstream

@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 displays the correct table data for the kql queries for the kql query: HostDetails.Endpoint.policy.applied.id : "C2A9093E-E289-4C0A-AA44-8C32A414FA7A", table shows 2 items

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: endpoint
[00:00:00]           └-> "before all" hook
[00:00:00]           └-> "before all" hook
[00:00:00]             │ info [docker:registry] 2020/10/03 18:58:36 source.ip: 172.17.0.1:57194, url.original: /search?package=system&internal=true&experimental=true&kibana.version=7.10.0
[00:00:00]             │ info [docker:registry] 2020/10/03 18:58:36 source.ip: 172.17.0.1:57196, url.original: /search?package=endpoint&internal=true&experimental=true&kibana.version=7.10.0
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] [logs-index_pattern_placeholder] creating index, cause [api], templates [], shards [1]/[1]
[00:00:00]             │ info [docker:registry] 2020/10/03 18:58:36 source.ip: 172.17.0.1:57212, url.original: /search?package=system&internal=true&experimental=true&kibana.version=7.10.0
[00:00:00]             │ info [docker:registry] 2020/10/03 18:58:36 source.ip: 172.17.0.1:57210, url.original: /search?package=endpoint&internal=true&experimental=true&kibana.version=7.10.0
[00:00:00]             │ info [docker:registry] 2020/10/03 18:58:36 source.ip: 172.17.0.1:57216, url.original: /package/endpoint/0.16.0-dev.3
[00:00:00]             │ info [docker:registry] 2020/10/03 18:58:36 source.ip: 172.17.0.1:57220, url.original: /package/system/0.7.0
[00:00:00]             │ info [docker:registry] 2020/10/03 18:58:36 source.ip: 172.17.0.1:57226, url.original: /package/system/0.7.0/
[00:00:00]             │ info [docker:registry] 2020/10/03 18:58:36 source.ip: 172.17.0.1:57228, url.original: /package/endpoint/0.16.0-dev.3/
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] [metrics-index_pattern_placeholder] creating index, cause [api], templates [], shards [1]/[1]
[00:00:00]             │ info [docker:registry] 2020/10/03 18:58:36 source.ip: 172.17.0.1:57238, url.original: /epr/system/system-0.7.0.zip
[00:00:00]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] [.kibana_1/dewV-DKdT0iNLbU0uX5UVw] update_mapping [_doc]
[00:00:00]             │ info [docker:registry] 2020/10/03 18:58:36 source.ip: 172.17.0.1:57242, url.original: /epr/endpoint/endpoint-0.16.0-dev.3.zip
[00:00:00]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] [.kibana_1/dewV-DKdT0iNLbU0uX5UVw] update_mapping [_doc]
[00:00:00]             │ info [docker:registry] 2020/10/03 18:58:36 source.ip: 172.17.0.1:57246, url.original: /package/endpoint/0.16.0-dev.3
[00:00:00]             │ info [docker:registry] 2020/10/03 18:58:36 source.ip: 172.17.0.1:57250, url.original: /package/endpoint/0.16.0-dev.3/
[00:00:00]             │ info [docker:registry] 2020/10/03 18:58:36 source.ip: 172.17.0.1:57256, url.original: /package/system/0.7.0
[00:00:00]             │ info [docker:registry] 2020/10/03 18:58:36 source.ip: 172.17.0.1:57260, url.original: /package/system/0.7.0/
[00:00:00]             │ info [docker:registry] 2020/10/03 18:58:36 source.ip: 172.17.0.1:57266, url.original: /search?kibana.version=7.10.0
[00:00:00]             │ info [docker:registry] 2020/10/03 18:58:36 source.ip: 172.17.0.1:57270, url.original: /package/endpoint/0.16.0-dev.3
[00:00:00]             │ info [docker:registry] 2020/10/03 18:58:36 source.ip: 172.17.0.1:57274, url.original: /package/endpoint/0.16.0-dev.3/
[00:00:00]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] [.kibana_1/dewV-DKdT0iNLbU0uX5UVw] update_mapping [_doc]
[00:00:01]             │ info [docker:registry] 2020/10/03 18:58:37 source.ip: 172.17.0.1:57308, url.original: /search?kibana.version=7.10.0
[00:00:01]             │ info [docker:registry] 2020/10/03 18:58:37 source.ip: 172.17.0.1:57316, url.original: /package/endpoint/0.16.0-dev.3
[00:00:01]             │ info [docker:registry] 2020/10/03 18:58:37 source.ip: 172.17.0.1:57314, url.original: /package/system/0.7.0
[00:00:01]             │ info [docker:registry] 2020/10/03 18:58:37 source.ip: 172.17.0.1:57324, url.original: /package/endpoint/0.16.0-dev.3/
[00:00:01]             │ info [docker:registry] 2020/10/03 18:58:37 source.ip: 172.17.0.1:57322, url.original: /package/system/0.7.0/
[00:00:02]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] [.kibana_1/dewV-DKdT0iNLbU0uX5UVw] update_mapping [_doc]
[00:00:02]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] [.kibana_1/dewV-DKdT0iNLbU0uX5UVw] update_mapping [_doc]
[00:00:02]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] [.kibana_1/dewV-DKdT0iNLbU0uX5UVw] update_mapping [_doc]
[00:00:02]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] adding index template [metrics-metadata-current] for index patterns [metrics-endpoint.metadata_current_*]
[00:00:04]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] adding component template [logs-endpoint.events.registry-mappings]
[00:00:04]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] adding component template [logs-endpoint.alerts-mappings]
[00:00:04]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] adding component template [logs-endpoint.events.security-mappings]
[00:00:04]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] adding component template [logs-endpoint.events.file-mappings]
[00:00:04]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] adding component template [metrics-endpoint.metadata-mappings]
[00:00:04]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] adding component template [metrics-endpoint.metrics-mappings]
[00:00:04]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] adding component template [logs-endpoint.events.library-mappings]
[00:00:04]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] adding component template [logs-endpoint.events.network-mappings]
[00:00:04]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] adding component template [logs-endpoint.events.process-mappings]
[00:00:04]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] adding component template [metrics-endpoint.policy-mappings]
[00:00:04]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] adding index template [logs-endpoint.events.registry] for index patterns [logs-endpoint.events.registry-*]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] adding index template [logs-endpoint.alerts] for index patterns [logs-endpoint.alerts-*]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] adding index template [logs-endpoint.events.security] for index patterns [logs-endpoint.events.security-*]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] adding index template [logs-endpoint.events.file] for index patterns [logs-endpoint.events.file-*]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] adding index template [metrics-endpoint.metadata] for index patterns [metrics-endpoint.metadata-*]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] adding index template [metrics-endpoint.metrics] for index patterns [metrics-endpoint.metrics-*]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] adding index template [logs-endpoint.events.library] for index patterns [logs-endpoint.events.library-*]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] adding index template [logs-endpoint.events.network] for index patterns [logs-endpoint.events.network-*]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] adding index template [logs-endpoint.events.process] for index patterns [logs-endpoint.events.process-*]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] adding index template [metrics-endpoint.policy] for index patterns [metrics-endpoint.policy-*]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] adding index template [metrics-system.network] for index patterns [metrics-system.network-*]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] adding index template [metrics-system.filesystem] for index patterns [metrics-system.filesystem-*]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] adding index template [metrics-system.memory] for index patterns [metrics-system.memory-*]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] adding index template [metrics-system.fsstat] for index patterns [metrics-system.fsstat-*]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] adding index template [metrics-system.core] for index patterns [metrics-system.core-*]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] adding index template [metrics-system.load] for index patterns [metrics-system.load-*]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] adding index template [metrics-system.cpu] for index patterns [metrics-system.cpu-*]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] adding index template [metrics-system.diskio] for index patterns [metrics-system.diskio-*]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] adding index template [metrics-system.process] for index patterns [metrics-system.process-*]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] adding index template [logs-system.auth] for index patterns [logs-system.auth-*]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] 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-ubuntu-18-tests-xxl-1601747702389397417] 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-ubuntu-18-tests-xxl-1601747702389397417] adding index template [metrics-system.uptime] for index patterns [metrics-system.uptime-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] adding index template [logs-system.syslog] for index patterns [logs-system.syslog-*]
[00:00:06]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] [.transform-internal-005] creating index, cause [auto(bulk api)], templates [.transform-internal-005], shards [1]/[1]
[00:00:06]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] updating number_of_replicas to [0] for indices [.transform-internal-005]
[00:00:06]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] [.transform-notifications-000002] creating index, cause [auto(bulk api)], templates [.transform-notifications-000002], shards [1]/[1]
[00:00:06]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] updating number_of_replicas to [0] for indices [.transform-notifications-000002]
[00:00:06]             │ info [o.e.x.t.t.p.SchemaUtil] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] Failed to deduce mapping for [agent.id], fall back to keyword. Create the destination index with complete mappings first to avoid deducing the mappings
[00:00:06]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] [metrics-endpoint.metadata_current_default] creating index, cause [api], templates [metrics-metadata-current], shards [1]/[1]
[00:00:06]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] updating number_of_replicas to [0] for indices [metrics-endpoint.metadata_current_default]
[00:00:06]             │ info [o.e.x.t.t.TransformTask] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] [endpoint.metadata_current-default-0.16.0-dev.3] updating state for transform to [{"task_state":"started","indexer_state":"stopped","checkpoint":0,"should_stop_at_checkpoint":false}].
[00:00:06]             │ info [o.e.x.t.t.TransformPersistentTasksExecutor] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] [endpoint.metadata_current-default-0.16.0-dev.3] successfully completed and scheduled task in node operation
[00:00:06]             │ info [docker:registry] 2020/10/03 18:58:42 source.ip: 172.17.0.1:57446, url.original: /search?package=system&internal=true&experimental=true&kibana.version=7.10.0
[00:00:06]             │ info [docker:registry] 2020/10/03 18:58:42 source.ip: 172.17.0.1:57448, url.original: /package/system/0.7.0
[00:00:06]             │ info [docker:registry] 2020/10/03 18:58:42 source.ip: 172.17.0.1:57452, url.original: /package/system/0.7.0/
[00:00:06]             │ info [docker:registry] 2020/10/03 18:58:43 source.ip: 172.17.0.1:57460, url.original: /search?package=system&internal=true&experimental=true&kibana.version=7.10.0
[00:00:06]             │ info [docker:registry] 2020/10/03 18:58:43 source.ip: 172.17.0.1:57462, url.original: /package/system/0.7.0
[00:00:06]             │ info [docker:registry] 2020/10/03 18:58:43 source.ip: 172.17.0.1:57466, url.original: /package/system/0.7.0/
[00:00:06]             │ info [docker:registry] 2020/10/03 18:58:43 source.ip: 172.17.0.1:57474, url.original: /package/system/0.7.0
[00:00:06]             │ info [docker:registry] 2020/10/03 18:58:43 source.ip: 172.17.0.1:57478, url.original: /package/system/0.7.0/
[00:00:07]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] [.kibana_1/dewV-DKdT0iNLbU0uX5UVw] update_mapping [_doc]
[00:00:08]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] added role [fleet_enroll]
[00:00:08]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] added user [fleet_enroll]
[00:00:10]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] [.kibana_1/dewV-DKdT0iNLbU0uX5UVw] update_mapping [_doc]
[00:00:10]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1601747702389397417] [.kibana_1/dewV-DKdT0iNLbU0uX5UVw] update_mapping [_doc]
[00:00:11]           └-: endpoint list
[00:00:11]             └-> "before all" hook
[00:00:36]             └-: displays the correct table data for the kql queries
[00:00:36]               └-> "before all" hook
[00:00:36]               └-> "before all" hook
[00:00:36]                 │ info [endpoint/metadata/destination_index] Loading "data.json"
[00:00:36]                 │ info [endpoint/metadata/destination_index] Indexed 3 docs into "metrics-endpoint.metadata_current_default"
[00:00:36]                 │ debg navigateToActualUrl http://localhost:61211/app/security/administration/endpoints
[00:00:36]                 │ debg browser[INFO] http://localhost:61211/app/security/administration/endpoints?_t=1601751552814 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:36]                 │
[00:00:36]                 │ debg browser[INFO] http://localhost:61211/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:36]                 │ debg currentUrl = http://localhost:61211/app/security/administration/endpoints
[00:00:36]                 │          appUrl = http://localhost:61211/app/security/administration/endpoints
[00:00:36]                 │ debg TestSubjects.find(kibanaChrome)
[00:00:36]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:37]                 │ debg isGlobalLoadingIndicatorVisible
[00:00:37]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:00:37]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:00:38]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:00:38]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:00:38]                 │ info [docker:registry] 2020/10/03 18:59:14 source.ip: 172.17.0.1:58480, url.original: /search?category=security&kibana.version=7.10.0
[00:00:38]                 │ info [docker:registry] 2020/10/03 18:59:14 source.ip: 172.17.0.1:58492, url.original: /search?category=security&kibana.version=7.10.0
[00:00:38]                 │ info [docker:registry] 2020/10/03 18:59:14 source.ip: 172.17.0.1:58490, url.original: /search?package=endpoint&internal=true&experimental=true&kibana.version=7.10.0
[00:00:38]                 │ proc [kibana]   log   [18:59:14.850] [warning][metadata][plugins][securitySolution] agent with id 023fa40c-411d-4188-a941-4147bfadd095 not found
[00:00:38]                 │ proc [kibana]   log   [18:59:14.851] [warning][metadata][plugins][securitySolution] agent with id 11488bae-880b-4e7b-8d28-aac2aa9de816 not found
[00:00:38]                 │ proc [kibana]   log   [18:59:14.851] [warning][metadata][plugins][securitySolution] agent with id 92ac1ce0-e1f7-409e-8af6-f17e97b1fc71 not found
[00:00:38]                 │ proc [kibana]   log   [18:59:14.866] [warning][metadata][plugins][securitySolution] agent with id 92ac1ce0-e1f7-409e-8af6-f17e97b1fc71 not found
[00:00:38]                 │ proc [kibana]   log   [18:59:14.866] [warning][metadata][plugins][securitySolution] agent with id 023fa40c-411d-4188-a941-4147bfadd095 not found
[00:00:38]                 │ proc [kibana]   log   [18:59:14.867] [warning][metadata][plugins][securitySolution] agent with id 11488bae-880b-4e7b-8d28-aac2aa9de816 not found
[00:00:38]                 │ proc [kibana]   log   [18:59:14.957] [warning][metadata][plugins][securitySolution] agent with id 023fa40c-411d-4188-a941-4147bfadd095 not found
[00:00:38]                 │ proc [kibana]   log   [18:59:15.059] [warning][metadata][plugins][securitySolution] agent with id 023fa40c-411d-4188-a941-4147bfadd095 not found
[00:00:38]               └-> for the kql query: na, table shows an empty list
[00:00:38]                 └-> "before each" hook: global before each
[00:00:38]                 │ debg TestSubjects.setValue(adminSearchBar, na)
[00:00:38]                 │ debg TestSubjects.click(adminSearchBar)
[00:00:38]                 │ debg Find.clickByCssSelector('[data-test-subj="adminSearchBar"]') with timeout=10000
[00:00:38]                 │ debg Find.findByCssSelector('[data-test-subj="adminSearchBar"]') with timeout=10000
[00:00:39]                 │ debg TestSubjects.find(querySubmitButton)
[00:00:39]                 │ debg Find.findByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:00:39]                 │ debg Waiting up to 2000ms for table to not have data...
[00:00:39]                 │ debg TestSubjects.exists(endpointListTable)
[00:00:39]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="endpointListTable"]') with timeout=2500
[00:00:39]                 │ debg TestSubjects.find(endpointListTable)
[00:00:39]                 │ debg Find.findByCssSelector('[data-test-subj="endpointListTable"]') with timeout=10000
[00:00:39]                 │ proc [kibana]   log   [18:59:15.628] [warning][metadata][plugins][securitySolution] agent with id 023fa40c-411d-4188-a941-4147bfadd095 not found
[00:00:39]                 │ proc [kibana]   log   [18:59:15.791] [warning][metadata][plugins][securitySolution] agent with id 023fa40c-411d-4188-a941-4147bfadd095 not found
[00:00:39]                 │ debg TestSubjects.exists(endpointListTable)
[00:00:39]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="endpointListTable"]') with timeout=2500
[00:00:39]                 │ debg TestSubjects.find(endpointListTable)
[00:00:39]                 │ debg Find.findByCssSelector('[data-test-subj="endpointListTable"]') with timeout=10000
[00:00:39]                 │ debg TestSubjects.exists(endpointListTable)
[00:00:39]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="endpointListTable"]') with timeout=2500
[00:00:39]                 │ debg TestSubjects.find(endpointListTable)
[00:00:39]                 │ debg Find.findByCssSelector('[data-test-subj="endpointListTable"]') with timeout=10000
[00:00:39]                 └- ✓ pass  (928ms) "endpoint endpoint list displays the correct table data for the kql queries for the kql query: na, table shows an empty list"
[00:00:39]               └-> for the kql query: HostDetails.Endpoint.policy.applied.id : "C2A9093E-E289-4C0A-AA44-8C32A414FA7A", table shows 2 items
[00:00:39]                 └-> "before each" hook: global before each
[00:00:39]                 │ debg TestSubjects.setValue(adminSearchBar,  )
[00:00:39]                 │ debg TestSubjects.click(adminSearchBar)
[00:00:39]                 │ debg Find.clickByCssSelector('[data-test-subj="adminSearchBar"]') with timeout=10000
[00:00:39]                 │ debg Find.findByCssSelector('[data-test-subj="adminSearchBar"]') with timeout=10000
[00:00:40]                 │ debg TestSubjects.find(querySubmitButton)
[00:00:40]                 │ debg Find.findByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:00:40]                 │ debg TestSubjects.getVisibleText(endpointListTableTotal)
[00:00:40]                 │ debg TestSubjects.find(endpointListTableTotal)
[00:00:40]                 │ debg Find.findByCssSelector('[data-test-subj="endpointListTableTotal"]') with timeout=10000
[00:00:40]                 │ proc [kibana]   log   [18:59:16.538] [warning][metadata][plugins][securitySolution] agent with id 023fa40c-411d-4188-a941-4147bfadd095 not found
[00:00:40]                 │ proc [kibana]   log   [18:59:16.687] [warning][metadata][plugins][securitySolution] agent with id 023fa40c-411d-4188-a941-4147bfadd095 not found
[00:00:50]                 │ info Taking screenshot "/dev/shm/workspace/parallel/21/kibana/x-pack/test/functional/screenshots/failure/endpoint endpoint list displays the correct table data for the kql queries for the kql query_ HostDetails_Endpoint_policy_applied_id _ _C2A9093E-E289-4C0A-AA44-8C32A414FA7A_ table shows 2 items.png"
[00:00:50]                 │ proc [kibana]   log   [18:59:26.613] [warning][metadata][plugins][securitySolution] agent with id 023fa40c-411d-4188-a941-4147bfadd095 not found
[00:00:50]                 │ info Current URL is: http://localhost:61211/app/security/administration/endpoints?page_index=0&page_size=10&admin_query=(language%3Akuery%2Cquery%3A'na%20')
[00:00:50]                 │ info Saving page source to: /dev/shm/workspace/parallel/21/kibana/x-pack/test/functional/failure_debug/html/endpoint endpoint list displays the correct table data for the kql queries for the kql query_ HostDetails_Endpoint_policy_applied_id _ _C2A9093E-E289-4C0A-AA44-8C32A414FA7A_ table shows 2 items.html
[00:00:50]                 └- ✖ fail: endpoint endpoint list displays the correct table data for the kql queries for the kql query: HostDetails.Endpoint.policy.applied.id : "C2A9093E-E289-4C0A-AA44-8C32A414FA7A", table shows 2 items
[00:00:50]                 │      TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="endpointListTableTotal"])
[00:00:50]                 │ Wait timed out after 10029ms
[00:00:50]                 │       at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:00:50]                 │       at process._tickCallback (internal/process/next_tick.js:68:7)
[00:00:50]                 │ 
[00:00:50]                 │ 

Stack Trace

{ TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="endpointListTableTotal"])
Wait timed out after 10029ms
    at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at process._tickCallback (internal/process/next_tick.js:68:7) name: 'TimeoutError', remoteStacktrace: '' }

Metrics [docs]

async chunks size

id before after diff
securitySolution 10.3MB 10.3MB -2.5KB

History

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

@FrankHassanabad FrankHassanabad merged commit 4453999 into elastic:7.x Oct 3, 2020
@FrankHassanabad FrankHassanabad deleted the backport/7.x/pr-79233 branch October 3, 2020 20:06
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