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 Solution] styling for notes' panel (#74274) #74298

Merged
merged 1 commit into from
Aug 4, 2020

Conversation

angorayc
Copy link
Contributor

@angorayc angorayc commented Aug 4, 2020

Backports the following commits to 7.x:

* styling for notes' pannel

* styling

* remove additional const

* styling
@elasticmachine
Copy link
Contributor

Pinging @elastic/siem (Team:SIEM)

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/monitoring/setup/metricbeat_migration·js.Monitoring app Setup mode metricbeat migration setup mode btn should exist

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:05:08]         └-: Monitoring app
[00:05:08]           └-> "before all" hook
[00:23:25]           └-: Setup mode metricbeat migration
[00:23:25]             └-> "before all" hook
[00:23:25]             └-: setup mode btn
[00:23:25]               └-> "before all" hook
[00:23:25]               └-> "before all" hook
[00:23:25]                 │ info [monitoring/setup/collection/es_and_kibana_mb] Loading "mappings.json"
[00:23:25]                 │ info [monitoring/setup/collection/es_and_kibana_mb] Loading "data.json.gz"
[00:23:25]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1596572484014313694] [.monitoring-beats-7-2019.04.09] creating index, cause [api], templates [.monitoring-beats], shards [1]/[0]
[00:23:25]                 │ info [monitoring/setup/collection/es_and_kibana_mb] Created index ".monitoring-beats-7-2019.04.09"
[00:23:25]                 │ debg [monitoring/setup/collection/es_and_kibana_mb] ".monitoring-beats-7-2019.04.09" settings {"index":{"auto_expand_replicas":"0-1","codec":"best_compression","format":"7","number_of_replicas":"0","number_of_shards":"1"}}
[00:23:25]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1596572484014313694] [.monitoring-es-7-2019.04.09] creating index, cause [api], templates [.monitoring-es], shards [1]/[0]
[00:23:25]                 │ info [monitoring/setup/collection/es_and_kibana_mb] Created index ".monitoring-es-7-2019.04.09"
[00:23:25]                 │ debg [monitoring/setup/collection/es_and_kibana_mb] ".monitoring-es-7-2019.04.09" settings {"index":{"auto_expand_replicas":"0-1","codec":"best_compression","format":"7","number_of_replicas":"0","number_of_shards":"1"}}
[00:23:25]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1596572484014313694] [.monitoring-es-7-mb-2019.04.09] creating index, cause [api], templates [.monitoring-es], shards [1]/[0]
[00:23:25]                 │ info [monitoring/setup/collection/es_and_kibana_mb] Created index ".monitoring-es-7-mb-2019.04.09"
[00:23:25]                 │ debg [monitoring/setup/collection/es_and_kibana_mb] ".monitoring-es-7-mb-2019.04.09" settings {"index":{"auto_expand_replicas":"0-1","codec":"best_compression","format":"7","number_of_replicas":"0","number_of_shards":"1"}}
[00:23:25]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1596572484014313694] [.monitoring-kibana-7-2019.04.09] creating index, cause [api], templates [.monitoring-kibana], shards [1]/[0]
[00:23:25]                 │ info [monitoring/setup/collection/es_and_kibana_mb] Created index ".monitoring-kibana-7-2019.04.09"
[00:23:25]                 │ debg [monitoring/setup/collection/es_and_kibana_mb] ".monitoring-kibana-7-2019.04.09" settings {"index":{"auto_expand_replicas":"0-1","codec":"best_compression","format":"7","number_of_replicas":"0","number_of_shards":"1"}}
[00:23:25]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1596572484014313694] [.monitoring-kibana-7-mb-2019.04.09] creating index, cause [api], templates [.monitoring-kibana], shards [1]/[0]
[00:23:25]                 │ info [monitoring/setup/collection/es_and_kibana_mb] Created index ".monitoring-kibana-7-mb-2019.04.09"
[00:23:25]                 │ debg [monitoring/setup/collection/es_and_kibana_mb] ".monitoring-kibana-7-mb-2019.04.09" settings {"index":{"auto_expand_replicas":"0-1","codec":"best_compression","format":"7","number_of_replicas":"0","number_of_shards":"1"}}
[00:23:25]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1596572484014313694] [.monitoring-logstash-7-2019.04.09] creating index, cause [api], templates [.monitoring-logstash], shards [1]/[0]
[00:23:25]                 │ info [monitoring/setup/collection/es_and_kibana_mb] Created index ".monitoring-logstash-7-2019.04.09"
[00:23:25]                 │ debg [monitoring/setup/collection/es_and_kibana_mb] ".monitoring-logstash-7-2019.04.09" settings {"index":{"auto_expand_replicas":"0-1","codec":"best_compression","format":"7","number_of_replicas":"0","number_of_shards":"1"}}
[00:23:25]                 │ info [monitoring/setup/collection/es_and_kibana_mb] Indexed 2 docs into ".monitoring-beats-7-2019.04.09"
[00:23:25]                 │ info [monitoring/setup/collection/es_and_kibana_mb] Indexed 58 docs into ".monitoring-es-7-2019.04.09"
[00:23:25]                 │ info [monitoring/setup/collection/es_and_kibana_mb] Indexed 59 docs into ".monitoring-es-7-mb-2019.04.09"
[00:23:25]                 │ info [monitoring/setup/collection/es_and_kibana_mb] Indexed 3 docs into ".monitoring-kibana-7-2019.04.09"
[00:23:25]                 │ info [monitoring/setup/collection/es_and_kibana_mb] Indexed 6 docs into ".monitoring-kibana-7-mb-2019.04.09"
[00:23:25]                 │ info [monitoring/setup/collection/es_and_kibana_mb] Indexed 6 docs into ".monitoring-logstash-7-2019.04.09"
[00:23:25]                 │ debg replacing kibana config doc: {}
[00:23:26]                 │ debg creating user basic_monitoring_user
[00:23:26]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xl-1596572484014313694] updated user [basic_monitoring_user]
[00:23:26]                 │ debg created user basic_monitoring_user
[00:23:26]                 │ debg navigating to monitoring url: http://localhost:6121/app/monitoring
[00:23:26]                 │ debg navigate to: http://localhost:6121/app/monitoring
[00:23:26]                 │ debg browser[INFO] http://localhost:6121/app/monitoring?_t=1596575601283 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:23:26]                 │
[00:23:26]                 │ debg browser[INFO] http://localhost:6121/bundles/app/core/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:23:26]                 │ debg ... sleep(700) start
[00:23:27]                 │ debg ... sleep(700) end
[00:23:27]                 │ debg returned from get, calling refresh
[00:23:27]                 │ debg browser[INFO] http://localhost:6121/app/monitoring?_t=1596575601283 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:23:27]                 │
[00:23:27]                 │ debg browser[INFO] http://localhost:6121/bundles/app/core/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:23:27]                 │ debg currentUrl = http://localhost:6121/app/monitoring
[00:23:27]                 │          appUrl = http://localhost:6121/app/monitoring
[00:23:27]                 │ debg TestSubjects.find(kibanaChrome)
[00:23:27]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:23:29]                 │ debg browser[INFO] http://localhost:6121/33926/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-08-04T21:13:23Z
[00:23:29]                 │        Adding connection to http://localhost:6121/elasticsearch
[00:23:29]                 │
[00:23:29]                 │      "
[00:23:30]                 │ debg ... sleep(501) start
[00:23:30]                 │ debg browser[WARNING] http://localhost:6121/33926/bundles/plugin/monitoring/monitoring.chunk.1.js 2:415730 "\"#noDataReact\" element has not been added to the DOM yet"
[00:23:30]                 │ debg ... sleep(501) end
[00:23:30]                 │ debg in navigateTo url = http://localhost:6121/app/monitoring#/no-data?_g=(filters:!(),refreshInterval:(pause:!f,value:10000),time:(from:now-1h,to:now))
[00:23:30]                 │ debg --- retry.try error: URL changed, waiting for it to settle
[00:23:31]                 │ debg ... sleep(501) start
[00:23:31]                 │ debg ... sleep(501) end
[00:23:31]                 │ debg in navigateTo url = http://localhost:6121/app/monitoring#/no-data?_g=(filters:!(),refreshInterval:(pause:!f,value:10000),time:(from:now-1h,to:now))
[00:23:31]                 │ debg TestSubjects.exists(statusPageContainer)
[00:23:31]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:23:34]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:23:34]                 │ debg pauseAutoRefresh
[00:23:34]                 │ debg openQuickSelectTimeMenu
[00:23:34]                 │ debg TestSubjects.exists(superDatePickerQuickMenu)
[00:23:34]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerQuickMenu"]') with timeout=2500
[00:23:37]                 │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerQuickMenu"] is not displayed
[00:23:37]                 │ debg opening quick select menu
[00:23:37]                 │ debg TestSubjects.click(superDatePickerToggleQuickMenuButton)
[00:23:37]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=10000
[00:23:37]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=10000
[00:23:37]                 │ debg TestSubjects.getAttribute(superDatePickerRefreshIntervalInput, value)
[00:23:37]                 │ debg TestSubjects.find(superDatePickerRefreshIntervalInput)
[00:23:37]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerRefreshIntervalInput"]') with timeout=10000
[00:23:37]                 │ debg TestSubjects.find(superDatePickerRefreshIntervalUnitsSelect)
[00:23:37]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerRefreshIntervalUnitsSelect"]') with timeout=10000
[00:23:37]                 │ debg Find.allDescendantDisplayedByCssSelector('option')
[00:23:38]                 │ debg TestSubjects.getVisibleText(superDatePickerToggleRefreshButton)
[00:23:38]                 │ debg TestSubjects.find(superDatePickerToggleRefreshButton)
[00:23:38]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerToggleRefreshButton"]') with timeout=10000
[00:23:38]                 │ debg pause auto refresh
[00:23:38]                 │ debg TestSubjects.click(superDatePickerToggleRefreshButton)
[00:23:38]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerToggleRefreshButton"]') with timeout=10000
[00:23:38]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerToggleRefreshButton"]') with timeout=10000
[00:23:38]                 │ debg closeQuickSelectTimeMenu
[00:23:38]                 │ debg TestSubjects.exists(superDatePickerQuickMenu)
[00:23:38]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerQuickMenu"]') with timeout=2500
[00:23:38]                 │ debg closing quick select menu
[00:23:38]                 │ debg TestSubjects.click(superDatePickerToggleQuickMenuButton)
[00:23:38]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=10000
[00:23:38]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=10000
[00:23:38]                 │ debg closeQuickSelectTimeMenu
[00:23:38]                 │ debg TestSubjects.exists(superDatePickerQuickMenu)
[00:23:38]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerQuickMenu"]') with timeout=2500
[00:23:38]                 │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerQuickMenu"] is not displayed
[00:23:41]                 │ debg --- retry.tryForTime failed again with the same message...
[00:23:41]                 │ debg Setting absolute range to Apr 9, 2019 @ 00:00:00.741 to Apr 9, 2019 @ 23:59:59.741
[00:23:41]                 │ debg TestSubjects.exists(superDatePickerToggleQuickMenuButton)
[00:23:41]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=20000
[00:23:41]                 │ debg TestSubjects.exists(superDatePickerShowDatesButton)
[00:23:41]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=2500
[00:23:41]                 │ debg TestSubjects.click(superDatePickerShowDatesButton)
[00:23:41]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:23:41]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:23:41]                 │ debg TestSubjects.exists(superDatePickerstartDatePopoverButton)
[00:23:41]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=2500
[00:23:42]                 │ debg TestSubjects.click(superDatePickerendDatePopoverButton)
[00:23:42]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:23:42]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:23:42]                 │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:23:42]                 │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:23:42]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:23:42]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:23:42]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:23:42]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:23:42]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:23:42]                 │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Apr 9, 2019 @ 23:59:59.741)
[00:23:42]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:23:42]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:23:42]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:23:42]                 │ debg ... sleep(500) start
[00:23:43]                 │ debg ... sleep(500) end
[00:23:43]                 │ debg TestSubjects.click(superDatePickerstartDatePopoverButton)
[00:23:43]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:23:43]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:23:43]                 │ debg Find.waitForElementStale with timeout=10000
[00:23:43]                 │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:23:43]                 │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:23:43]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:23:43]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:23:43]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:23:43]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:23:43]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:23:44]                 │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Apr 9, 2019 @ 00:00:00.741)
[00:23:44]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:23:44]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:23:44]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:23:44]                 │ debg TestSubjects.exists(superDatePickerApplyTimeButton)
[00:23:44]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=2500
[00:23:46]                 │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerApplyTimeButton"] is not displayed
[00:23:47]                 │ debg TestSubjects.click(querySubmitButton)
[00:23:47]                 │ debg Find.clickByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:23:47]                 │ debg Find.findByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:23:47]                 │ debg Find.waitForElementStale with timeout=10000
[00:23:48]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:23:48]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:23:48]               └-> should exist
[00:23:48]                 └-> "before each" hook: global before each
[00:23:48]                 │ debg TestSubjects.exists(monitoringSetupModeBtn)
[00:23:48]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="monitoringSetupModeBtn"]') with timeout=2500
[00:23:50]                 │ debg --- retry.tryForTime error: [data-test-subj="monitoringSetupModeBtn"] is not displayed
[00:23:51]                 │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/Monitoring app Setup mode metricbeat migration setup mode btn should exist.png"
[00:23:51]                 │ info Current URL is: http://localhost:6121/app/monitoring#/overview?_g=(cluster_uuid:jJ9oySUPR8G0wuV82vG5-g,refreshInterval:(pause:!t,value:10000),time:(from:%272019-04-09T00:00:00.741Z%27,to:%272019-04-09T23:59:59.741Z%27))
[00:23:51]                 │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/Monitoring app Setup mode metricbeat migration setup mode btn should exist.html
[00:23:51]                 └- ✖ fail: Monitoring app Setup mode metricbeat migration setup mode btn should exist
[00:23:51]                 │      Error: expected false to equal true
[00:23:51]                 │       at Assertion.assert (/dev/shm/workspace/kibana/packages/kbn-expect/expect.js:100:11)
[00:23:51]                 │       at Assertion.be.Assertion.equal (/dev/shm/workspace/kibana/packages/kbn-expect/expect.js:227:8)
[00:23:51]                 │       at Assertion.be (/dev/shm/workspace/kibana/packages/kbn-expect/expect.js:69:22)
[00:23:51]                 │       at Context.it (test/functional/apps/monitoring/setup/metricbeat_migration.js:31:61)
[00:23:51]                 │ 
[00:23:51]                 │ 

Stack Trace

Error: expected false to equal true
    at Assertion.assert (/dev/shm/workspace/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.be.Assertion.equal (/dev/shm/workspace/kibana/packages/kbn-expect/expect.js:227:8)
    at Assertion.be (/dev/shm/workspace/kibana/packages/kbn-expect/expect.js:69:22)
    at Context.it (test/functional/apps/monitoring/setup/metricbeat_migration.js:31:61)

Build metrics

async chunks size

id value diff baseline
securitySolution 7.3MB -320.0B 7.3MB

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

@patrykkopycinski patrykkopycinski merged commit be5c24d into elastic:7.x Aug 4, 2020
@patrykkopycinski patrykkopycinski deleted the backport/7.x/pr-74274 branch August 4, 2020 22:10
@MindyRS MindyRS added the Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. label Sep 23, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:SIEM v7.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants