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.8] fix 400 error on initial signals search (#70618) #70663

Merged
merged 2 commits into from
Jul 3, 2020

Conversation

yctercero
Copy link
Contributor

Backports the following commits to 7.8:

### Summary

On initial render of the SIEM pages, a 400 error was showing for POST http://localhost:5601/api/detection_engine/signals/search. This PR is a temporary fix for this bug. This initial call is being used to populate the Last alert text that shows at the top of a number of the pages. The reason the size was 0 is because we weren't interested in the signals themselves, just the timestamp of the last alert. Teamed up with @XavierM and it seems to us that the issue is the server side validation. It may be Hapi misreading the 0 as false or our updated validation not accepting size 0.
# Conflicts:
#	x-pack/plugins/security_solution/public/alerts/components/alerts_info/query.dsl.ts
…on folder instead of updating the existing file in /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/uptime/certificates·ts.Uptime app with generated data certificates page performs search against monitor id

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: Uptime app
[00:00:00]           └-> "before all" hook
[00:00:00]           └-: with generated data
[00:00:00]             └-> "before all" hook
[00:01:24]             └-: certificates
[00:01:24]               └-> "before all" hook
[00:01:24]               └-> can navigate to cert page
[00:01:24]                 └-> "before each" hook: global before each
[00:01:24]                 └-> "before each" hook: delete settings
[00:01:24]                   │ debg Deleting saved object [object Object]/%s
[00:01:25]                 └-> "before each" hook: load heartbeat data
[00:01:25]                   │ info [uptime/blank] Loading "mappings.json"
[00:01:25]                   │ info [uptime/blank] Loading "data.json"
[00:01:25]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1593725265128445569] [heartbeat-7-generated-test] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:01:25]                   │ info [uptime/blank] Created index "heartbeat-7-generated-test"
[00:01:25]                   │ debg [uptime/blank] "heartbeat-7-generated-test" settings undefined
[00:01:25]                 └-> "before each" hook
[00:01:25]                   │ debg TestSubjects.exists(uptimeSettingsToOverviewLink)
[00:01:25]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeSettingsToOverviewLink"]') with timeout=0
[00:01:25]                   │ debg TestSubjects.click(uptimeSettingsToOverviewLink)
[00:01:25]                   │ debg Find.clickByCssSelector('[data-test-subj="uptimeSettingsToOverviewLink"]') with timeout=10000
[00:01:25]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeSettingsToOverviewLink"]') with timeout=10000
[00:01:26]                   │ debg TestSubjects.exists(uptimeOverviewPage)
[00:01:26]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeOverviewPage"]') with timeout=2000
[00:01:26]                   │ debg TestSubjects.click(superDatePickerApplyTimeButton)
[00:01:26]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=10000
[00:01:26]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=10000
[00:01:26]                   │ debg TestSubjects.click(superDatePickerApplyTimeButton)
[00:01:26]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=10000
[00:01:26]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=10000
[00:01:26]                 │ debg TestSubjects.exists(uptimeCertificatesLink)
[00:01:26]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeCertificatesLink"]') with timeout=120000
[00:01:26]                 │ debg TestSubjects.click(uptimeCertificatesLink)
[00:01:26]                 │ debg Find.clickByCssSelector('[data-test-subj="uptimeCertificatesLink"]') with timeout=10000
[00:01:26]                 │ debg Find.findByCssSelector('[data-test-subj="uptimeCertificatesLink"]') with timeout=10000
[00:01:27]                 │ debg TestSubjects.exists(uptimeCertificatesPage)
[00:01:27]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeCertificatesPage"]') with timeout=120000
[00:01:27]                 └- ✓ pass  (640ms) "Uptime app with generated data certificates can navigate to cert page"
[00:01:27]               └-> "after each" hook: unload
[00:01:27]                 │ info [uptime/blank] Unloading indices from "mappings.json"
[00:01:27]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1593725265128445569] [heartbeat-7-generated-test/QZtHBX65QDOXelmFCr6OIg] deleting index
[00:01:27]                 │ info [uptime/blank] Deleted existing index "heartbeat-7-generated-test"
[00:01:27]                 │ info [uptime/blank] Unloading indices from "data.json"
[00:01:27]               └-: page
[00:01:27]                 └-> "before all" hook
[00:01:27]                 └-> displays certificates
[00:01:27]                   └-> "before each" hook: global before each
[00:01:27]                   └-> "before each" hook: delete settings
[00:01:27]                     │ debg Deleting saved object [object Object]/%s
[00:01:27]                   └-> "before each" hook: load heartbeat data
[00:01:27]                     │ info [uptime/blank] Loading "mappings.json"
[00:01:27]                     │ info [uptime/blank] Loading "data.json"
[00:01:27]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1593725265128445569] [heartbeat-7-generated-test] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:01:27]                     │ info [uptime/blank] Created index "heartbeat-7-generated-test"
[00:01:27]                     │ debg [uptime/blank] "heartbeat-7-generated-test" settings undefined
[00:01:27]                   └-> "before each" hook
[00:01:27]                     │ debg TestSubjects.exists(uptimeSettingsToOverviewLink)
[00:01:27]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeSettingsToOverviewLink"]') with timeout=0
[00:01:27]                     │ debg --- retry.tryForTime error: [data-test-subj="uptimeSettingsToOverviewLink"] is not displayed
[00:01:28]                     │ debg TestSubjects.exists(uptimeOverviewPage)
[00:01:28]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeOverviewPage"]') with timeout=0
[00:01:28]                     │ debg --- retry.tryForTime error: [data-test-subj="uptimeOverviewPage"] is not displayed
[00:01:28]                     │ debg navigating to uptime url: http://localhost:6171/app/uptime
[00:01:28]                     │ debg navigate to: http://localhost:6171/app/uptime
[00:01:29]                     │ debg browser[INFO] http://localhost:6171/app/uptime?_t=1593727855512 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:01:29]                     │
[00:01:29]                     │ debg browser[INFO] http://localhost:6171/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:29]                     │ debg ... sleep(700) start
[00:01:29]                     │ debg ... sleep(700) end
[00:01:29]                     │ debg returned from get, calling refresh
[00:01:32]                     │ debg browser[INFO] http://localhost:6171/32080/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-07-02T22:10:57Z
[00:01:32]                     │        Adding connection to http://localhost:6171/elasticsearch
[00:01:32]                     │
[00:01:32]                     │      "
[00:01:32]                     │ERROR browser[SEVERE] http://localhost:6171/32080/bundles/plugin/uptime/uptime.plugin.js 0:208450 TypeError: Failed to fetch
[00:01:32]                     │          at Fetch._callee3$ (http://localhost:6171/32080/bundles/core/core.entry.js:46:148775)
[00:01:32]                     │          at l (http://localhost:6171/32080/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:969200)
[00:01:32]                     │          at Generator._invoke (http://localhost:6171/32080/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:968953)
[00:01:32]                     │          at Generator.forEach.e.<computed> [as throw] (http://localhost:6171/32080/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:969557)
[00:01:32]                     │          at asyncGeneratorStep (http://localhost:6171/32080/bundles/core/core.entry.js:46:143272)
[00:01:32]                     │          at _throw (http://localhost:6171/32080/bundles/core/core.entry.js:46:143669)
[00:01:32]                     │ERROR browser[SEVERE] http://localhost:6171/32080/bundles/plugin/uptime/uptime.plugin.js 0:208450 TypeError: Failed to fetch
[00:01:32]                     │          at Fetch._callee3$ (http://localhost:6171/32080/bundles/core/core.entry.js:46:148775)
[00:01:32]                     │          at l (http://localhost:6171/32080/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:969200)
[00:01:32]                     │          at Generator._invoke (http://localhost:6171/32080/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:968953)
[00:01:32]                     │          at Generator.forEach.e.<computed> [as throw] (http://localhost:6171/32080/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:969557)
[00:01:32]                     │          at asyncGeneratorStep (http://localhost:6171/32080/bundles/core/core.entry.js:46:143272)
[00:01:32]                     │          at _throw (http://localhost:6171/32080/bundles/core/core.entry.js:46:143669)
[00:01:32]                     │ debg browser[INFO] http://localhost:6171/app/uptime?_t=1593727855512 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:01:32]                     │
[00:01:32]                     │ debg browser[INFO] http://localhost:6171/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:32]                     │ debg currentUrl = http://localhost:6171/app/uptime
[00:01:32]                     │          appUrl = http://localhost:6171/app/uptime
[00:01:32]                     │ debg TestSubjects.find(kibanaChrome)
[00:01:32]                     │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:32]                     │ debg browser[INFO] http://localhost:6171/32080/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-07-02T22:10:59Z
[00:01:32]                     │        Adding connection to http://localhost:6171/elasticsearch
[00:01:32]                     │
[00:01:32]                     │      "
[00:01:33]                     │ debg ... sleep(501) start
[00:01:33]                     │ debg ... sleep(501) end
[00:01:33]                     │ debg in navigateTo url = http://localhost:6171/app/uptime
[00:01:33]                     │ debg TestSubjects.exists(statusPageContainer)
[00:01:33]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:01:36]                     │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:01:36]                     │ debg isGlobalLoadingIndicatorVisible
[00:01:36]                     │ debg TestSubjects.exists(globalLoadingIndicator)
[00:01:36]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:01:38]                     │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:01:38]                     │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:38]                     │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:38]                     │ debg TestSubjects.exists(uptimeOverviewPage)
[00:01:38]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeOverviewPage"]') with timeout=2000
[00:01:38]                     │ debg TestSubjects.click(superDatePickerApplyTimeButton)
[00:01:38]                     │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=10000
[00:01:38]                     │ debg Find.findByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=10000
[00:01:39]                     │ debg TestSubjects.click(superDatePickerApplyTimeButton)
[00:01:39]                     │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=10000
[00:01:39]                     │ debg Find.findByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=10000
[00:01:39]                   └-> "before each" hook
[00:01:39]                     │ debg TestSubjects.click(uptimeCertificatesLink)
[00:01:39]                     │ debg Find.clickByCssSelector('[data-test-subj="uptimeCertificatesLink"]') with timeout=10000
[00:01:39]                     │ debg Find.findByCssSelector('[data-test-subj="uptimeCertificatesLink"]') with timeout=10000
[00:01:39]                     │ debg TestSubjects.exists(uptimeCertificatesPage)
[00:01:39]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeCertificatesPage"]') with timeout=120000
[00:01:39]                   │ debg TestSubjects.getVisibleText(uptimeCertTotal)
[00:01:39]                   │ debg TestSubjects.find(uptimeCertTotal)
[00:01:39]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeCertTotal"]') with timeout=10000
[00:01:39]                   │ debg --- retry.tryForTime error: expected false to sort of equal true
[00:01:40]                   │ debg TestSubjects.getVisibleText(uptimeCertTotal)
[00:01:40]                   │ debg TestSubjects.find(uptimeCertTotal)
[00:01:40]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeCertTotal"]') with timeout=10000
[00:01:40]                   └- ✓ pass  (650ms) "Uptime app with generated data certificates page displays certificates"
[00:01:40]                 └-> "after each" hook: unload
[00:01:40]                   │ info [uptime/blank] Unloading indices from "mappings.json"
[00:01:40]                   │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1593725265128445569] [heartbeat-7-generated-test/35uDN9YYT_OtKs6ZIasIsg] deleting index
[00:01:40]                   │ info [uptime/blank] Deleted existing index "heartbeat-7-generated-test"
[00:01:40]                   │ info [uptime/blank] Unloading indices from "data.json"
[00:01:40]                 └-> displays specific certificates
[00:01:40]                   └-> "before each" hook: global before each
[00:01:40]                   └-> "before each" hook: delete settings
[00:01:40]                     │ debg Deleting saved object [object Object]/%s
[00:01:41]                   └-> "before each" hook: load heartbeat data
[00:01:41]                     │ info [uptime/blank] Loading "mappings.json"
[00:01:41]                     │ info [uptime/blank] Loading "data.json"
[00:01:41]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1593725265128445569] [heartbeat-7-generated-test] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:01:41]                     │ info [uptime/blank] Created index "heartbeat-7-generated-test"
[00:01:41]                     │ debg [uptime/blank] "heartbeat-7-generated-test" settings undefined
[00:01:41]                   └-> "before each" hook
[00:01:41]                     │ debg TestSubjects.exists(uptimeSettingsToOverviewLink)
[00:01:41]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeSettingsToOverviewLink"]') with timeout=0
[00:01:41]                     │ debg --- retry.tryForTime error: [data-test-subj="uptimeSettingsToOverviewLink"] is not displayed
[00:01:42]                     │ debg TestSubjects.exists(uptimeOverviewPage)
[00:01:42]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeOverviewPage"]') with timeout=0
[00:01:42]                     │ debg --- retry.tryForTime error: [data-test-subj="uptimeOverviewPage"] is not displayed
[00:01:43]                     │ debg navigating to uptime url: http://localhost:6171/app/uptime
[00:01:43]                     │ debg navigate to: http://localhost:6171/app/uptime
[00:01:43]                     │ debg browser[INFO] http://localhost:6171/app/uptime?_t=1593727869837 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:01:43]                     │
[00:01:43]                     │ debg browser[INFO] http://localhost:6171/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:43]                     │ debg ... sleep(700) start
[00:01:44]                     │ debg ... sleep(700) end
[00:01:44]                     │ debg returned from get, calling refresh
[00:01:46]                     │ debg browser[INFO] http://localhost:6171/app/uptime?_t=1593727869837 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:01:46]                     │
[00:01:46]                     │ debg browser[INFO] http://localhost:6171/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:46]                     │ debg currentUrl = http://localhost:6171/app/uptime
[00:01:46]                     │          appUrl = http://localhost:6171/app/uptime
[00:01:46]                     │ debg TestSubjects.find(kibanaChrome)
[00:01:46]                     │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:48]                     │ debg browser[INFO] http://localhost:6171/32080/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-07-02T22:11:14Z
[00:01:48]                     │        Adding connection to http://localhost:6171/elasticsearch
[00:01:48]                     │
[00:01:48]                     │      "
[00:01:48]                     │ debg ... sleep(501) start
[00:01:48]                     │ debg ... sleep(501) end
[00:01:48]                     │ debg in navigateTo url = http://localhost:6171/app/uptime
[00:01:48]                     │ debg TestSubjects.exists(statusPageContainer)
[00:01:48]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:01:51]                     │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:01:51]                     │ debg isGlobalLoadingIndicatorVisible
[00:01:51]                     │ debg TestSubjects.exists(globalLoadingIndicator)
[00:01:51]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:01:53]                     │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:01:54]                     │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:54]                     │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:54]                     │ debg TestSubjects.exists(uptimeOverviewPage)
[00:01:54]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeOverviewPage"]') with timeout=2000
[00:01:54]                     │ debg TestSubjects.click(superDatePickerApplyTimeButton)
[00:01:54]                     │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=10000
[00:01:54]                     │ debg Find.findByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=10000
[00:01:54]                     │ debg TestSubjects.click(superDatePickerApplyTimeButton)
[00:01:54]                     │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=10000
[00:01:54]                     │ debg Find.findByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=10000
[00:01:54]                   └-> "before each" hook
[00:01:54]                     │ debg TestSubjects.click(uptimeCertificatesLink)
[00:01:54]                     │ debg Find.clickByCssSelector('[data-test-subj="uptimeCertificatesLink"]') with timeout=10000
[00:01:54]                     │ debg Find.findByCssSelector('[data-test-subj="uptimeCertificatesLink"]') with timeout=10000
[00:01:54]                     │ debg TestSubjects.exists(uptimeCertificatesPage)
[00:01:54]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeCertificatesPage"]') with timeout=120000
[00:01:54]                   │ debg TestSubjects.click(superDatePickerApplyTimeButton)
[00:01:54]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=10000
[00:01:54]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=10000
[00:01:55]                   │ debg TestSubjects.exists(063F078EFAEBDF16C3BF92FA661678E042EC244CE97C59E637E13C226713882EA780EBFA0D1A43790E89F2C22A97A06363394A39C0AE1DB14577AA1DD7E7EC34)
[00:01:55]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="063F078EFAEBDF16C3BF92FA661678E042EC244CE97C59E637E13C226713882EA780EBFA0D1A43790E89F2C22A97A06363394A39C0AE1DB14577AA1DD7E7EC34"]') with timeout=120000
[00:01:55]                   │ debg TestSubjects.exists(monitor-page-link-monitor-8ye7vr)
[00:01:55]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="monitor-page-link-monitor-8ye7vr"]') with timeout=120000
[00:01:55]                   └- ✓ pass  (618ms) "Uptime app with generated data certificates page displays specific certificates"
[00:01:55]                 └-> "after each" hook: unload
[00:01:55]                   │ info [uptime/blank] Unloading indices from "mappings.json"
[00:01:55]                   │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1593725265128445569] [heartbeat-7-generated-test/DVeNyufMSXyIcyLeWLgMig] deleting index
[00:01:55]                   │ info [uptime/blank] Deleted existing index "heartbeat-7-generated-test"
[00:01:55]                   │ info [uptime/blank] Unloading indices from "data.json"
[00:01:55]                 └-> performs search against monitor id
[00:01:55]                   └-> "before each" hook: global before each
[00:01:55]                   └-> "before each" hook: delete settings
[00:01:55]                     │ debg Deleting saved object [object Object]/%s
[00:01:56]                   └-> "before each" hook: load heartbeat data
[00:01:56]                     │ info [uptime/blank] Loading "mappings.json"
[00:01:56]                     │ info [uptime/blank] Loading "data.json"
[00:01:56]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1593725265128445569] [heartbeat-7-generated-test] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:01:56]                     │ info [uptime/blank] Created index "heartbeat-7-generated-test"
[00:01:56]                     │ debg [uptime/blank] "heartbeat-7-generated-test" settings undefined
[00:01:56]                   └-> "before each" hook
[00:01:56]                     │ debg TestSubjects.exists(uptimeSettingsToOverviewLink)
[00:01:56]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeSettingsToOverviewLink"]') with timeout=0
[00:01:56]                     │ debg --- retry.tryForTime error: [data-test-subj="uptimeSettingsToOverviewLink"] is not displayed
[00:01:57]                     │ debg TestSubjects.exists(uptimeOverviewPage)
[00:01:57]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeOverviewPage"]') with timeout=0
[00:01:57]                     │ debg --- retry.tryForTime error: [data-test-subj="uptimeOverviewPage"] is not displayed
[00:01:57]                     │ debg navigating to uptime url: http://localhost:6171/app/uptime
[00:01:57]                     │ debg navigate to: http://localhost:6171/app/uptime
[00:01:58]                     │ debg browser[INFO] http://localhost:6171/app/uptime?_t=1593727884616 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:01:58]                     │
[00:01:58]                     │ debg browser[INFO] http://localhost:6171/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:58]                     │ debg ... sleep(700) start
[00:01:58]                     │ debg ... sleep(700) end
[00:01:58]                     │ debg returned from get, calling refresh
[00:02:01]                     │ debg browser[INFO] http://localhost:6171/32080/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-07-02T22:11:26Z
[00:02:01]                     │        Adding connection to http://localhost:6171/elasticsearch
[00:02:01]                     │
[00:02:01]                     │      "
[00:02:01]                     │ERROR browser[SEVERE] http://localhost:6171/32080/bundles/core/core.entry.js 45:107604 TypeError: Failed to fetch
[00:02:01]                     │ debg browser[INFO] http://localhost:6171/app/uptime?_t=1593727884616 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:02:01]                     │
[00:02:01]                     │ debg browser[INFO] http://localhost:6171/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:02]                     │ debg browser[INFO] http://localhost:6171/32080/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-07-02T22:11:28Z
[00:02:02]                     │        Adding connection to http://localhost:6171/elasticsearch
[00:02:02]                     │
[00:02:02]                     │      "
[00:02:02]                     │ debg currentUrl = http://localhost:6171/app/uptime
[00:02:02]                     │          appUrl = http://localhost:6171/app/uptime
[00:02:02]                     │ debg TestSubjects.find(kibanaChrome)
[00:02:02]                     │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:02:02]                     │ debg ... sleep(501) start
[00:02:02]                     │ debg ... sleep(501) end
[00:02:02]                     │ debg in navigateTo url = http://localhost:6171/app/uptime
[00:02:02]                     │ debg TestSubjects.exists(statusPageContainer)
[00:02:02]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:02:05]                     │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:02:06]                     │ debg isGlobalLoadingIndicatorVisible
[00:02:06]                     │ debg TestSubjects.exists(globalLoadingIndicator)
[00:02:06]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:02:07]                     │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:02:08]                     │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:02:08]                     │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:02:08]                     │ debg TestSubjects.exists(uptimeOverviewPage)
[00:02:08]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeOverviewPage"]') with timeout=2000
[00:02:08]                     │ debg TestSubjects.click(superDatePickerApplyTimeButton)
[00:02:08]                     │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=10000
[00:02:08]                     │ debg Find.findByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=10000
[00:02:08]                     │ debg TestSubjects.click(superDatePickerApplyTimeButton)
[00:02:08]                     │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=10000
[00:02:08]                     │ debg Find.findByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=10000
[00:02:08]                   └-> "before each" hook
[00:02:08]                     │ debg TestSubjects.click(uptimeCertificatesLink)
[00:02:08]                     │ debg Find.clickByCssSelector('[data-test-subj="uptimeCertificatesLink"]') with timeout=10000
[00:02:08]                     │ debg Find.findByCssSelector('[data-test-subj="uptimeCertificatesLink"]') with timeout=10000
[00:02:08]                     │ debg TestSubjects.exists(uptimeCertificatesPage)
[00:02:08]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="uptimeCertificatesPage"]') with timeout=120000
[00:02:08]                   │ debg TestSubjects.click(superDatePickerApplyTimeButton)
[00:02:08]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=10000
[00:02:08]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=10000
[00:02:08]                   │ debg TestSubjects.find(uptimeCertSearch)
[00:02:08]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeCertSearch"]') with timeout=10000
[00:02:09]                   │ debg TestSubjects.getVisibleText(uptimeCertTotal)
[00:02:09]                   │ debg TestSubjects.find(uptimeCertTotal)
[00:02:09]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeCertTotal"]') with timeout=10000
[00:02:09]                   │ debg --- retry.tryForTime error: expected false to sort of equal true
[00:02:09]                   │ debg TestSubjects.getVisibleText(uptimeCertTotal)
[00:02:09]                   │ debg TestSubjects.find(uptimeCertTotal)
[00:02:09]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeCertTotal"]') with timeout=10000
[00:02:10]                   │ debg --- retry.tryForTime failed again with the same message...
[00:02:10]                   │ debg TestSubjects.getVisibleText(uptimeCertTotal)
[00:02:10]                   │ debg TestSubjects.find(uptimeCertTotal)
[00:02:10]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeCertTotal"]') with timeout=10000
[00:02:10]                   │ debg --- retry.tryForTime failed again with the same message...
[00:02:11]                   │ debg TestSubjects.getVisibleText(uptimeCertTotal)
[00:02:11]                   │ debg TestSubjects.find(uptimeCertTotal)
[00:02:11]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeCertTotal"]') with timeout=10000
[00:02:11]                   │ debg --- retry.tryForTime failed again with the same message...
[00:02:11]                   │ debg TestSubjects.getVisibleText(uptimeCertTotal)
[00:02:11]                   │ debg TestSubjects.find(uptimeCertTotal)
[00:02:11]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeCertTotal"]') with timeout=10000
[00:02:11]                   │ debg --- retry.tryForTime failed again with the same message...
[00:02:12]                   │ debg TestSubjects.getVisibleText(uptimeCertTotal)
[00:02:12]                   │ debg TestSubjects.find(uptimeCertTotal)
[00:02:12]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeCertTotal"]') with timeout=10000
[00:02:12]                   │ debg --- retry.tryForTime failed again with the same message...
[00:02:12]                   │ debg TestSubjects.getVisibleText(uptimeCertTotal)
[00:02:12]                   │ debg TestSubjects.find(uptimeCertTotal)
[00:02:12]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeCertTotal"]') with timeout=10000
[00:02:12]                   │ debg --- retry.tryForTime failed again with the same message...
[00:02:13]                   │ debg TestSubjects.getVisibleText(uptimeCertTotal)
[00:02:13]                   │ debg TestSubjects.find(uptimeCertTotal)
[00:02:13]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeCertTotal"]') with timeout=10000
[00:02:13]                   │ debg --- retry.tryForTime failed again with the same message...
[00:02:13]                   │ debg TestSubjects.getVisibleText(uptimeCertTotal)
[00:02:13]                   │ debg TestSubjects.find(uptimeCertTotal)
[00:02:13]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeCertTotal"]') with timeout=10000
[00:02:13]                   │ debg --- retry.tryForTime failed again with the same message...
[00:02:14]                   │ debg TestSubjects.getVisibleText(uptimeCertTotal)
[00:02:14]                   │ debg TestSubjects.find(uptimeCertTotal)
[00:02:14]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeCertTotal"]') with timeout=10000
[00:02:14]                   │ debg --- retry.tryForTime failed again with the same message...
[00:02:14]                   │ debg TestSubjects.getVisibleText(uptimeCertTotal)
[00:02:14]                   │ debg TestSubjects.find(uptimeCertTotal)
[00:02:14]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeCertTotal"]') with timeout=10000
[00:02:14]                   │ debg --- retry.tryForTime failed again with the same message...
[00:02:15]                   │ debg TestSubjects.getVisibleText(uptimeCertTotal)
[00:02:15]                   │ debg TestSubjects.find(uptimeCertTotal)
[00:02:15]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeCertTotal"]') with timeout=10000
[00:02:15]                   │ debg --- retry.tryForTime failed again with the same message...
[00:02:15]                   │ debg TestSubjects.getVisibleText(uptimeCertTotal)
[00:02:15]                   │ debg TestSubjects.find(uptimeCertTotal)
[00:02:15]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeCertTotal"]') with timeout=10000
[00:02:15]                   │ debg --- retry.tryForTime failed again with the same message...
[00:02:16]                   │ debg TestSubjects.getVisibleText(uptimeCertTotal)
[00:02:16]                   │ debg TestSubjects.find(uptimeCertTotal)
[00:02:16]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeCertTotal"]') with timeout=10000
[00:02:16]                   │ debg --- retry.tryForTime failed again with the same message...
[00:02:16]                   │ debg TestSubjects.getVisibleText(uptimeCertTotal)
[00:02:16]                   │ debg TestSubjects.find(uptimeCertTotal)
[00:02:16]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeCertTotal"]') with timeout=10000
[00:02:16]                   │ debg --- retry.tryForTime failed again with the same message...
[00:02:17]                   │ debg TestSubjects.getVisibleText(uptimeCertTotal)
[00:02:17]                   │ debg TestSubjects.find(uptimeCertTotal)
[00:02:17]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeCertTotal"]') with timeout=10000
[00:02:17]                   │ debg --- retry.tryForTime failed again with the same message...
[00:02:17]                   │ debg TestSubjects.getVisibleText(uptimeCertTotal)
[00:02:17]                   │ debg TestSubjects.find(uptimeCertTotal)
[00:02:17]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeCertTotal"]') with timeout=10000
[00:02:17]                   │ debg --- retry.tryForTime failed again with the same message...
[00:02:18]                   │ debg TestSubjects.getVisibleText(uptimeCertTotal)
[00:02:18]                   │ debg TestSubjects.find(uptimeCertTotal)
[00:02:18]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeCertTotal"]') with timeout=10000
[00:02:18]                   │ debg --- retry.tryForTime failed again with the same message...
[00:02:19]                   │ debg TestSubjects.getVisibleText(uptimeCertTotal)
[00:02:19]                   │ debg TestSubjects.find(uptimeCertTotal)
[00:02:19]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeCertTotal"]') with timeout=10000
[00:02:19]                   │ debg --- retry.tryForTime failed again with the same message...
[00:02:19]                   │ debg TestSubjects.getVisibleText(uptimeCertTotal)
[00:02:19]                   │ debg TestSubjects.find(uptimeCertTotal)
[00:02:19]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeCertTotal"]') with timeout=10000
[00:02:19]                   │ debg --- retry.tryForTime failed again with the same message...
[00:02:20]                   │ debg TestSubjects.getVisibleText(uptimeCertTotal)
[00:02:20]                   │ debg TestSubjects.find(uptimeCertTotal)
[00:02:20]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeCertTotal"]') with timeout=10000
[00:02:20]                   │ debg --- retry.tryForTime failed again with the same message...
[00:02:20]                   │ debg TestSubjects.getVisibleText(uptimeCertTotal)
[00:02:20]                   │ debg TestSubjects.find(uptimeCertTotal)
[00:02:20]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeCertTotal"]') with timeout=10000
[00:02:20]                   │ debg --- retry.tryForTime failed again with the same message...
[00:02:21]                   │ debg TestSubjects.getVisibleText(uptimeCertTotal)
[00:02:21]                   │ debg TestSubjects.find(uptimeCertTotal)
[00:02:21]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeCertTotal"]') with timeout=10000
[00:02:21]                   │ debg --- retry.tryForTime failed again with the same message...
[00:02:21]                   │ debg TestSubjects.getVisibleText(uptimeCertTotal)
[00:02:21]                   │ debg TestSubjects.find(uptimeCertTotal)
[00:02:21]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeCertTotal"]') with timeout=10000
[00:02:21]                   │ debg --- retry.tryForTime failed again with the same message...
[00:02:22]                   │ debg TestSubjects.getVisibleText(uptimeCertTotal)
[00:02:22]                   │ debg TestSubjects.find(uptimeCertTotal)
[00:02:22]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeCertTotal"]') with timeout=10000
[00:02:22]                   │ debg --- retry.tryForTime failed again with the same message...
[00:02:22]                   │ debg TestSubjects.getVisibleText(uptimeCertTotal)
[00:02:22]                   │ debg TestSubjects.find(uptimeCertTotal)
[00:02:22]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeCertTotal"]') with timeout=10000
[00:02:22]                   │ debg --- retry.tryForTime failed again with the same message...
[00:02:23]                   │ debg TestSubjects.getVisibleText(uptimeCertTotal)
[00:02:23]                   │ debg TestSubjects.find(uptimeCertTotal)
[00:02:23]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeCertTotal"]') with timeout=10000
[00:02:23]                   │ debg --- retry.tryForTime failed again with the same message...
[00:02:23]                   │ debg TestSubjects.getVisibleText(uptimeCertTotal)
[00:02:23]                   │ debg TestSubjects.find(uptimeCertTotal)
[00:02:23]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeCertTotal"]') with timeout=10000
[00:02:23]                   │ debg --- retry.tryForTime failed again with the same message...
[00:02:24]                   │ debg TestSubjects.getVisibleText(uptimeCertTotal)
[00:02:24]                   │ debg TestSubjects.find(uptimeCertTotal)
[00:02:24]                   │ debg Find.findByCssSelector('[data-test-subj="uptimeCertTotal"]') with timeout=10000
[00:02:24]                   │ debg --- retry.tryForTime failed again with the same message...
[00:02:24]                   │ debg --- retry.tryForTime error: retry.tryForTime timeout: Error: expected false to sort of equal true
[00:02:24]                   │          at Assertion.assert (/dev/shm/workspace/kibana/packages/kbn-expect/expect.js:100:11)
[00:02:24]                   │          at Assertion.eql (/dev/shm/workspace/kibana/packages/kbn-expect/expect.js:244:8)
[00:02:24]                   │          at retry.tryForTime (/dev/shm/workspace/kibana/x-pack/test/functional/services/uptime/certificates.ts:36:59)
[00:02:24]                   │          at process._tickCallback (internal/process/next_tick.js:68:7)
[00:02:25]                   │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/Uptime app with generated data certificates page performs search against monitor id.png"
[00:02:25]                   │ info Current URL is: http://localhost:6171/app/uptime#/certificates
[00:02:25]                   │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/Uptime app with generated data certificates page performs search against monitor id.html
[00:02:25]                   └- ✖ fail: "Uptime app with generated data certificates page performs search against monitor id"
[00:02:25]                   │

Stack Trace

Error: retry.tryForTime timeout: Error: retry.tryForTime timeout: Error: expected false to sort of equal true
    at Assertion.assert (/dev/shm/workspace/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.eql (/dev/shm/workspace/kibana/packages/kbn-expect/expect.js:244:8)
    at retry.tryForTime (test/functional/services/uptime/certificates.ts:36:59)
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at onFailure (/dev/shm/workspace/kibana/test/common/services/retry/retry_for_success.ts:28:9)
    at retryForSuccess (/dev/shm/workspace/kibana/test/common/services/retry/retry_for_success.ts:68:13)
    at onFailure (/dev/shm/workspace/kibana/test/common/services/retry/retry_for_success.ts:28:9)
    at retryForSuccess (/dev/shm/workspace/kibana/test/common/services/retry/retry_for_success.ts:68:13)

Build metrics

✅ unchanged

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

@yctercero yctercero merged commit 7e5dead into elastic:7.8 Jul 3, 2020
@yctercero yctercero deleted the backport/7.8/pr-70618 branch October 14, 2020 12:01
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