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

[PoC] reporting csv generation from searchSource #81446

Closed
wants to merge 1 commit into from

Conversation

ppisljar
Copy link
Member

Summary

Summarize your PR. If it involves visual changes include a screenshot or gif.

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@ppisljar ppisljar requested a review from a team October 22, 2020 08:34
@ppisljar ppisljar requested a review from a team as a code owner October 22, 2020 08:34
@ppisljar ppisljar added (Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead Team:AppArch labels Oct 22, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

@ppisljar ppisljar added release_note:skip Skip the PR/issue when compiling release notes v7.12.0 v8.0.0 WIP Work in progress labels Oct 22, 2020
@ppisljar ppisljar changed the title reporting csv generation from searchSource [PoC] reporting csv generation from searchSource Oct 22, 2020
title: savedSearch.title,
taskType: 'csv',
taskConfig: {
...sharingData,
Copy link
Member

@tsullivan tsullivan Oct 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sharingData is the return value of searchSource.getSerializedFields:

  "searchSource": {
    "fields": [
      "@date",
      "name",
        ...
    ],
    "filter": [],
    "index": "bab57370-1266-11eb-aa87-cb7590d2fd4a",
    "query": {
      "language": "kuery",
      "query": ""
    },
    "version": true
  },

Would it be possible for CSV export to use just the ID of the saved search object as the params? If so, could the searchSource object come from that ID?

If someone has automated CSV export and makes changes to the saved search after scheduling the automation, their changes should be reflected in subsequent runs of the export.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think we should try to get away from dependency between csv report and existing saved search. This way we can create csv report on any search made with searchsource without requirement for backing saved search object (for example export csv from visulalization, or on discover without persisting the current view)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be really interesting to see how that plays out, and I think we should carry on in this direction!

There is a related issue that could be solved with this approach: #18439 (see option 3)

searchRequest: sharingData.searchRequest as SearchRequest,
fields: sharingData.fields as string[],
metaFields: sharingData.metaFields as string[],
conflictedTypesFields: sharingData.conflictedTypesFields as string[],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes the object defining the job parameters, which is a breaking change. The job parameters are preserved in "POST URL" strings, which users copy into Watcher for automatic report generation.

Is it possible to keep BWC with the legacy parameters? If not, then we will create a new ExportTypeDefinition in Reporting.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll create a new Export type definition

}
break;
const columns = table.columns.map((c) => {
// we are working on this utilities, its not there yet but should be in a week or so, which will get us the formatted values
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ppisljar will you be able to update this PR in the near future? This TODO should be taken care of by now

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes i will continue working on this (after new year)

@tsullivan
Copy link
Member

Hi @ppisljar, which issue does this PR address? The closest I could find that is related is #81079

@kibanamachine
Copy link
Contributor

kibanamachine commented Jan 5, 2021

💔 Build Failed

Failed CI Steps


Test Failures

Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/discover/reporting·ts.discover Discover Generate CSV button becomes available when saved

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:18:27]         └-: discover
[00:18:27]           └-> "before all" hook
[00:26:33]           └-: Discover
[00:26:33]             └-> "before all" hook
[00:26:33]             └-> "before all" hook: initialize tests
[00:26:33]               │ debg ReportingPage:initTests
[00:26:33]               │ info [reporting/ecommerce] Loading "mappings.json"
[00:26:33]               │ info [reporting/ecommerce] Loading "data.json.gz"
[00:26:33]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [ecommerce] creating index, cause [api], templates [], shards [1]/[0]
[00:26:33]               │ info [reporting/ecommerce] Created index "ecommerce"
[00:26:33]               │ debg [reporting/ecommerce] "ecommerce" settings {"index":{"number_of_replicas":"0","number_of_shards":"1"}}
[00:26:33]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_1/yFSy2Y8PSdGV8gdiv_bYjQ] deleting index
[00:26:33]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_2/vuO8ISOARveGXx5a3aPSjg] deleting index
[00:26:33]               │ info [reporting/ecommerce] Deleted existing index [".kibana_2",".kibana_1"]
[00:26:33]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0]
[00:26:33]               │ info [reporting/ecommerce] Created index ".kibana_1"
[00:26:33]               │ debg [reporting/ecommerce] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:26:35]               │ info [reporting/ecommerce] Indexed 4675 docs into "ecommerce"
[00:26:35]               │ info [reporting/ecommerce] Indexed 3 docs into ".kibana_1"
[00:26:35]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_1/TdB6voyIQwO3Cq9C1KQIWg] update_mapping [_doc]
[00:26:35]               │ debg Migrating saved objects
[00:26:35]               │ proc [kibana]   log   [14:43:32.271] [info][savedobjects-service] Creating index .kibana_2.
[00:26:35]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:26:35]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] updating number_of_replicas to [0] for indices [.kibana_2]
[00:26:35]               │ proc [kibana]   log   [14:43:32.330] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:26:35]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_2/4NvHyzdiS16t2Wvihi688g] update_mapping [_doc]
[00:26:35]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_2/4NvHyzdiS16t2Wvihi688g] update_mapping [_doc]
[00:26:35]               │ proc [kibana]   log   [14:43:32.447] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:26:35]               │ proc [kibana]   log   [14:43:32.482] [info][savedobjects-service] Finished in 212ms.
[00:26:35]               │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true}
[00:26:37]               │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true}
[00:26:38]             └-: Generate CSV button
[00:26:38]               └-> "before all" hook
[00:26:38]               └-> is not available if new
[00:26:38]                 └-> "before each" hook: global before each
[00:26:38]                 └-> "before each" hook
[00:26:38]                   │ debg navigating to discover url: http://localhost:61111/app/discover#/
[00:26:38]                   │ debg navigate to: http://localhost:61111/app/discover#/
[00:26:38]                   │ debg browser[INFO] http://localhost:61111/app/discover?_t=1609857815437#/ 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:26:38]                   │
[00:26:38]                   │ debg browser[INFO] http://localhost:61111/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:26:38]                   │ debg ... sleep(700) start
[00:26:39]                   │ debg ... sleep(700) end
[00:26:39]                   │ debg returned from get, calling refresh
[00:26:39]                   │ debg browser[INFO] http://localhost:61111/app/discover?_t=1609857815437#/ 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:26:39]                   │
[00:26:39]                   │ debg browser[INFO] http://localhost:61111/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:26:39]                   │ debg currentUrl = http://localhost:61111/app/discover#/
[00:26:39]                   │          appUrl = http://localhost:61111/app/discover#/
[00:26:39]                   │ debg TestSubjects.find(kibanaChrome)
[00:26:39]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:26:40]                   │ debg ... sleep(501) start
[00:26:41]                   │ debg ... sleep(501) end
[00:26:41]                   │ debg in navigateTo url = http://localhost:61111/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(_source),filters:!(),index:%275193f870-d861-11e9-a311-0fa548c5f953%27,interval:auto,query:(language:kuery,query:%27%27),sort:!(!(order_date,desc)))
[00:26:41]                   │ debg --- retry.try error: URL changed, waiting for it to settle
[00:26:41]                   │ debg ... sleep(501) start
[00:26:42]                   │ debg ... sleep(501) end
[00:26:42]                   │ debg in navigateTo url = http://localhost:61111/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(_source),filters:!(),index:%275193f870-d861-11e9-a311-0fa548c5f953%27,interval:auto,query:(language:kuery,query:%27%27),sort:!(!(order_date,desc)))
[00:26:42]                   │ debg TestSubjects.exists(statusPageContainer)
[00:26:42]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:26:44]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:26:45]                 │ debg openCsvReportingPanel
[00:26:45]                 │ debg openShareMenuItem title:CSV Reports
[00:26:45]                 │ debg TestSubjects.exists(shareContextMenu)
[00:26:45]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="shareContextMenu"]') with timeout=2500
[00:26:47]                 │ debg --- retry.tryForTime error: [data-test-subj="shareContextMenu"] is not displayed
[00:26:48]                 │ debg TestSubjects.click(shareTopNavButton)
[00:26:48]                 │ debg Find.clickByCssSelector('[data-test-subj="shareTopNavButton"]') with timeout=10000
[00:26:48]                 │ debg Find.findByCssSelector('[data-test-subj="shareTopNavButton"]') with timeout=10000
[00:26:48]                 │ debg Find.findByCssSelector('div.euiContextMenuPanel') with timeout=10000
[00:26:48]                 │ debg TestSubjects.click(sharePanel-CSVReports)
[00:26:48]                 │ debg Find.clickByCssSelector('[data-test-subj="sharePanel-CSVReports"]') with timeout=10000
[00:26:48]                 │ debg Find.findByCssSelector('[data-test-subj="sharePanel-CSVReports"]') with timeout=10000
[00:26:48]                 │ debg Find.waitForElementStale with timeout=10000
[00:26:48]                 │ debg TestSubjects.find(generateReportButton)
[00:26:48]                 │ debg Find.findByCssSelector('[data-test-subj="generateReportButton"]') with timeout=10000
[00:26:48]                 └- ✓ pass  (3.4s) "discover Discover Generate CSV button is not available if new"
[00:26:48]               └-> becomes available when saved
[00:26:48]                 └-> "before each" hook: global before each
[00:26:48]                 └-> "before each" hook
[00:26:48]                   │ debg navigating to discover url: http://localhost:61111/app/discover#/
[00:26:48]                   │ debg navigate to: http://localhost:61111/app/discover#/
[00:26:48]                   │ debg browser[INFO] http://localhost:61111/app/discover?_t=1609857825795#/ 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:26:48]                   │
[00:26:48]                   │ debg browser[INFO] http://localhost:61111/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:26:48]                   │ debg ... sleep(700) start
[00:26:49]                   │ debg ... sleep(700) end
[00:26:49]                   │ debg returned from get, calling refresh
[00:26:50]                   │ERROR browser[SEVERE] http://localhost:61111/39254/bundles/core/core.entry.js 12:194770 TypeError: Failed to fetch
[00:26:50]                   │          at _callee3$ (http://localhost:61111/39254/bundles/core/core.entry.js:6:43987)
[00:26:50]                   │          at l (http://localhost:61111/39254/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:321:968491)
[00:26:50]                   │          at Generator._invoke (http://localhost:61111/39254/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:321:968244)
[00:26:50]                   │          at Generator.forEach.e.<computed> [as throw] (http://localhost:61111/39254/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:321:968848)
[00:26:50]                   │          at fetch_asyncGeneratorStep (http://localhost:61111/39254/bundles/core/core.entry.js:6:39045)
[00:26:50]                   │          at _throw (http://localhost:61111/39254/bundles/core/core.entry.js:6:39453)
[00:26:50]                   │ debg browser[INFO] http://localhost:61111/app/discover?_t=1609857825795#/ 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:26:50]                   │
[00:26:50]                   │ debg browser[INFO] http://localhost:61111/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:26:50]                   │ debg currentUrl = http://localhost:61111/app/discover#/
[00:26:50]                   │          appUrl = http://localhost:61111/app/discover#/
[00:26:50]                   │ debg TestSubjects.find(kibanaChrome)
[00:26:50]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:26:50]                   │ debg ... sleep(501) start
[00:26:51]                   │ debg ... sleep(501) end
[00:26:51]                   │ debg in navigateTo url = http://localhost:61111/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(_source),filters:!(),index:%275193f870-d861-11e9-a311-0fa548c5f953%27,interval:auto,query:(language:kuery,query:%27%27),sort:!(!(order_date,desc)))
[00:26:51]                   │ debg --- retry.try error: URL changed, waiting for it to settle
[00:26:51]                   │ debg ... sleep(501) start
[00:26:52]                   │ debg ... sleep(501) end
[00:26:52]                   │ debg in navigateTo url = http://localhost:61111/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(_source),filters:!(),index:%275193f870-d861-11e9-a311-0fa548c5f953%27,interval:auto,query:(language:kuery,query:%27%27),sort:!(!(order_date,desc)))
[00:26:52]                   │ debg TestSubjects.exists(statusPageContainer)
[00:26:52]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:26:54]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:26:55]                 │ debg TestSubjects.click(discoverSaveButton)
[00:26:55]                 │ debg Find.clickByCssSelector('[data-test-subj="discoverSaveButton"]') with timeout=10000
[00:26:55]                 │ debg Find.findByCssSelector('[data-test-subj="discoverSaveButton"]') with timeout=10000
[00:26:55]                 │ debg Waiting up to 20000ms for saved search title is set to my search - expectEnabledGenerateReportButton and save button is clickable...
[00:26:55]                 │ debg TestSubjects.find(confirmSaveSavedObjectButton)
[00:26:55]                 │ debg Find.findByCssSelector('[data-test-subj="confirmSaveSavedObjectButton"]') with timeout=10000
[00:26:55]                 │ debg TestSubjects.setValue(savedObjectTitle, my search - expectEnabledGenerateReportButton)
[00:26:55]                 │ debg TestSubjects.click(savedObjectTitle)
[00:26:55]                 │ debg Find.clickByCssSelector('[data-test-subj="savedObjectTitle"]') with timeout=10000
[00:26:55]                 │ debg Find.findByCssSelector('[data-test-subj="savedObjectTitle"]') with timeout=10000
[00:26:55]                 │ debg TestSubjects.click(confirmSaveSavedObjectButton)
[00:26:55]                 │ debg Find.clickByCssSelector('[data-test-subj="confirmSaveSavedObjectButton"]') with timeout=10000
[00:26:55]                 │ debg Find.findByCssSelector('[data-test-subj="confirmSaveSavedObjectButton"]') with timeout=10000
[00:26:55]                 │ debg isGlobalLoadingIndicatorVisible
[00:26:55]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:26:55]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:26:55]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_2/4NvHyzdiS16t2Wvihi688g] update_mapping [_doc]
[00:26:56]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:26:56]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:26:56]                 │ debg Waiting up to 20000ms for saved search was persisted with name my search - expectEnabledGenerateReportButton...
[00:26:56]                 │ debg TestSubjects.getVisibleText(headerGlobalNav > breadcrumbs > ~breadcrumb & ~last)
[00:26:56]                 │ debg TestSubjects.find(headerGlobalNav > breadcrumbs > ~breadcrumb & ~last)
[00:26:56]                 │ debg Find.findByCssSelector('[data-test-subj="headerGlobalNav"] [data-test-subj="breadcrumbs"] [data-test-subj~="breadcrumb"][data-test-subj~="last"]') with timeout=10000
[00:26:57]                 │ debg openCsvReportingPanel
[00:26:57]                 │ debg openShareMenuItem title:CSV Reports
[00:26:57]                 │ debg TestSubjects.exists(shareContextMenu)
[00:26:57]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="shareContextMenu"]') with timeout=2500
[00:26:59]                 │ debg --- retry.tryForTime error: [data-test-subj="shareContextMenu"] is not displayed
[00:27:00]                 │ debg TestSubjects.click(shareTopNavButton)
[00:27:00]                 │ debg Find.clickByCssSelector('[data-test-subj="shareTopNavButton"]') with timeout=10000
[00:27:00]                 │ debg Find.findByCssSelector('[data-test-subj="shareTopNavButton"]') with timeout=10000
[00:27:00]                 │ debg Find.findByCssSelector('div.euiContextMenuPanel') with timeout=10000
[00:27:00]                 │ debg TestSubjects.click(sharePanel-CSVReports)
[00:27:00]                 │ debg Find.clickByCssSelector('[data-test-subj="sharePanel-CSVReports"]') with timeout=10000
[00:27:00]                 │ debg Find.findByCssSelector('[data-test-subj="sharePanel-CSVReports"]') with timeout=10000
[00:27:00]                 │ debg Find.waitForElementStale with timeout=10000
[00:27:00]                 │ debg TestSubjects.find(generateReportButton)
[00:27:00]                 │ debg Find.findByCssSelector('[data-test-subj="generateReportButton"]') with timeout=10000
[00:27:00]                 │ info Taking screenshot "/dev/shm/workspace/parallel/11/kibana/x-pack/test/functional/screenshots/failure/discover Discover Generate CSV button becomes available when saved.png"
[00:27:00]                 │ info Current URL is: http://localhost:61111/app/discover#/view/6e2981f0-4f64-11eb-ae9a-f192561a4d2e?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(_source),filters:!(),index:%275193f870-d861-11e9-a311-0fa548c5f953%27,interval:auto,query:(language:kuery,query:%27%27),sort:!(!(order_date,desc)))
[00:27:00]                 │ info Saving page source to: /dev/shm/workspace/parallel/11/kibana/x-pack/test/functional/failure_debug/html/discover Discover Generate CSV button becomes available when saved.html
[00:27:00]                 └- ✖ fail: discover Discover Generate CSV button becomes available when saved
[00:27:00]                 │      Error: expected 'true' to equal null
[00:27:00]                 │       at Assertion.assert (/dev/shm/workspace/parallel/11/kibana/packages/kbn-expect/expect.js:100:11)
[00:27:00]                 │       at Assertion.be.Assertion.equal (/dev/shm/workspace/parallel/11/kibana/packages/kbn-expect/expect.js:227:8)
[00:27:00]                 │       at Assertion.be (/dev/shm/workspace/parallel/11/kibana/packages/kbn-expect/expect.js:69:22)
[00:27:00]                 │       at Context.<anonymous> (test/functional/apps/discover/reporting.ts:44:81)
[00:27:00]                 │       at runMicrotasks (<anonymous>)
[00:27:00]                 │       at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:27:00]                 │       at Object.apply (/dev/shm/workspace/parallel/11/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:84:16)
[00:27:00]                 │ 
[00:27:00]                 │ 

Stack Trace

Error: expected 'true' to equal null
    at Assertion.assert (/dev/shm/workspace/parallel/11/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.be.Assertion.equal (/dev/shm/workspace/parallel/11/kibana/packages/kbn-expect/expect.js:227:8)
    at Assertion.be (/dev/shm/workspace/parallel/11/kibana/packages/kbn-expect/expect.js:69:22)
    at Context.<anonymous> (test/functional/apps/discover/reporting.ts:44:81)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at Object.apply (/dev/shm/workspace/parallel/11/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:84:16)

Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/dashboard/reporting/download_csv·ts.dashboard Reporting Download CSV Downloads a CSV export of a saved search panel

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: dashboard
[00:00:00]           └-> "before all" hook
[00:08:29]           └-: Reporting
[00:08:29]             └-> "before all" hook
[00:10:43]             └-: Download CSV
[00:10:43]               └-> "before all" hook
[00:10:43]               └-> "before all" hook: initialize tests
[00:10:43]                 │ debg ReportingPage:initTests
[00:10:43]                 │ info [reporting/ecommerce] Loading "mappings.json"
[00:10:43]                 │ info [reporting/ecommerce] Loading "data.json.gz"
[00:10:43]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [ecommerce] creating index, cause [api], templates [], shards [1]/[0]
[00:10:43]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[ecommerce][0]]])." previous.health="YELLOW" reason="shards started [[ecommerce][0]]"
[00:10:43]                 │ info [reporting/ecommerce] Created index "ecommerce"
[00:10:43]                 │ debg [reporting/ecommerce] "ecommerce" settings {"index":{"number_of_replicas":"0","number_of_shards":"1"}}
[00:10:43]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_2/urgBQ5Q5SBmIbgSye43R4Q] deleting index
[00:10:43]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_1/-sBjfiv2QUG3mI-kIpuV8Q] deleting index
[00:10:43]                 │ info [reporting/ecommerce] Deleted existing index [".kibana_2",".kibana_1"]
[00:10:43]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0]
[00:10:43]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_1][0]]"
[00:10:43]                 │ info [reporting/ecommerce] Created index ".kibana_1"
[00:10:43]                 │ debg [reporting/ecommerce] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:10:45]                 │ info [reporting/ecommerce] Indexed 4675 docs into "ecommerce"
[00:10:45]                 │ info [reporting/ecommerce] Indexed 3 docs into ".kibana_1"
[00:10:45]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_1/nxSPKvUrRummgOHFJmciGA] update_mapping [_doc]
[00:10:45]                 │ debg Migrating saved objects
[00:10:45]                 │ proc [kibana]   log   [14:29:06.686] [info][savedobjects-service] Creating index .kibana_2.
[00:10:45]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:10:45]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] updating number_of_replicas to [0] for indices [.kibana_2]
[00:10:45]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_2][0]]"
[00:10:45]                 │ proc [kibana]   log   [14:29:06.753] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:10:45]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_2/CN14PZd9R1iWw_nrYIqRuw] update_mapping [_doc]
[00:10:45]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_2/CN14PZd9R1iWw_nrYIqRuw] update_mapping [_doc]
[00:10:45]                 │ proc [kibana]   log   [14:29:06.874] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:10:45]                 │ proc [kibana]   log   [14:29:06.917] [info][savedobjects-service] Finished in 233ms.
[00:10:45]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true}
[00:10:47]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true}
[00:10:48]                 │ info [reporting/ecommerce_kibana] Loading "mappings.json"
[00:10:48]                 │ info [reporting/ecommerce_kibana] Loading "data.json.gz"
[00:10:48]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_1/nxSPKvUrRummgOHFJmciGA] deleting index
[00:10:48]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_2/CN14PZd9R1iWw_nrYIqRuw] deleting index
[00:10:48]                 │ info [reporting/ecommerce_kibana] Deleted existing index [".kibana_2",".kibana_1"]
[00:10:48]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0]
[00:10:48]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_1][0]]"
[00:10:48]                 │ info [reporting/ecommerce_kibana] Created index ".kibana_1"
[00:10:48]                 │ debg [reporting/ecommerce_kibana] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:10:48]                 │ info [reporting/ecommerce_kibana] Indexed 13 docs into ".kibana"
[00:10:48]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_1/H5vCLNB0R2aW-Js5v5amfw] update_mapping [_doc]
[00:10:48]                 │ debg Migrating saved objects
[00:10:48]                 │ proc [kibana]   log   [14:29:10.068] [info][savedobjects-service] Creating index .kibana_2.
[00:10:48]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:10:48]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] updating number_of_replicas to [0] for indices [.kibana_2]
[00:10:48]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_2][0]]"
[00:10:48]                 │ proc [kibana]   log   [14:29:10.133] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:10:48]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_2/DCV8Q_KnRuSw-GGRLm6sGg] update_mapping [_doc]
[00:10:49]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_2/DCV8Q_KnRuSw-GGRLm6sGg] update_mapping [_doc]
[00:10:49]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_2/DCV8Q_KnRuSw-GGRLm6sGg] update_mapping [_doc]
[00:10:49]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_2/DCV8Q_KnRuSw-GGRLm6sGg] update_mapping [_doc]
[00:10:49]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_2/DCV8Q_KnRuSw-GGRLm6sGg] update_mapping [_doc]
[00:10:49]                 │ proc [kibana]   log   [14:29:10.418] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:10:49]                 │ proc [kibana]   log   [14:29:10.457] [info][savedobjects-service] Finished in 391ms.
[00:10:49]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true}
[00:10:50]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true}
[00:10:52]               └-> Downloads a CSV export of a saved search panel
[00:10:52]                 └-> "before each" hook: global before each
[00:10:52]                 │ debg navigating to dashboard url: http://localhost:61231/app/dashboards#/list
[00:10:52]                 │ debg navigate to: http://localhost:61231/app/dashboards#/list
[00:10:52]                 │ debg browser[INFO] http://localhost:61231/app/dashboards?_t=1609856953238#/list 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:10:52]                 │
[00:10:52]                 │ debg browser[INFO] http://localhost:61231/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:10:52]                 │ debg ... sleep(700) start
[00:10:52]                 │ debg ... sleep(700) end
[00:10:52]                 │ debg returned from get, calling refresh
[00:10:53]                 │ debg browser[INFO] http://localhost:61231/app/dashboards?_t=1609856953238#/list 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:10:53]                 │
[00:10:53]                 │ debg browser[INFO] http://localhost:61231/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:10:53]                 │ debg currentUrl = http://localhost:61231/app/dashboards#/list
[00:10:53]                 │          appUrl = http://localhost:61231/app/dashboards#/list
[00:10:53]                 │ debg TestSubjects.find(kibanaChrome)
[00:10:53]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:10:54]                 │ debg ... sleep(501) start
[00:10:54]                 │ debg ... sleep(501) end
[00:10:54]                 │ debg in navigateTo url = http://localhost:61231/app/dashboards#/list?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))
[00:10:54]                 │ debg TestSubjects.exists(statusPageContainer)
[00:10:54]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:10:57]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:10:57]                 │ debg Load Saved Dashboard Ecom Dashboard
[00:10:57]                 │ debg gotoDashboardLandingPage
[00:10:57]                 │ debg onDashboardLandingPage
[00:10:57]                 │ debg TestSubjects.exists(dashboardLandingPage)
[00:10:57]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardLandingPage"]') with timeout=5000
[00:10:57]                 │ debg searchForItemWithName: Ecom Dashboard
[00:10:57]                 │ debg TestSubjects.find(tableListSearchBox)
[00:10:57]                 │ debg Find.findByCssSelector('[data-test-subj="tableListSearchBox"]') with timeout=10000
[00:10:58]                 │ debg isGlobalLoadingIndicatorVisible
[00:10:58]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:10:58]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:10:59]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:11:00]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:11:00]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:11:00]                 │ debg TestSubjects.click(dashboardListingTitleLink-Ecom-Dashboard)
[00:11:00]                 │ debg Find.clickByCssSelector('[data-test-subj="dashboardListingTitleLink-Ecom-Dashboard"]') with timeout=10000
[00:11:00]                 │ debg Find.findByCssSelector('[data-test-subj="dashboardListingTitleLink-Ecom-Dashboard"]') with timeout=10000
[00:11:00]                 │ debg isGlobalLoadingIndicatorVisible
[00:11:00]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:11:00]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:11:01]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:11:02]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:11:02]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:11:02]                 │ debg TestSubjects.missingOrFail(dashboardLandingPage)
[00:11:02]                 │ debg Find.waitForDeletedByCssSelector('[data-test-subj="dashboardLandingPage"]') with timeout=10000
[00:11:02]                 │ debg TestSubjects.find(embeddablePanelHeading-EcommerceData)
[00:11:02]                 │ debg Find.findByCssSelector('[data-test-subj="embeddablePanelHeading-EcommerceData"]') with timeout=10000
[00:11:02]                 │ debg toggleContextMenu
[00:11:02]                 │ debg TestSubjects.findDescendant(embeddablePanelToggleMenuIcon)
[00:11:02]                 │ debg Find.descendantDisplayedByCssSelector('[data-test-subj="embeddablePanelToggleMenuIcon"]')
[00:11:03]                 │ debg TestSubjects.exists(embeddablePanelAction-downloadCsvReport)
[00:11:03]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="embeddablePanelAction-downloadCsvReport"]') with timeout=120000
[00:11:03]                 │ debg TestSubjects.click(embeddablePanelAction-downloadCsvReport)
[00:11:03]                 │ debg Find.clickByCssSelector('[data-test-subj="embeddablePanelAction-downloadCsvReport"]') with timeout=10000
[00:11:03]                 │ debg Find.findByCssSelector('[data-test-subj="embeddablePanelAction-downloadCsvReport"]') with timeout=10000
[00:11:03]                 │ debg TestSubjects.exists(csvDownloadStarted)
[00:11:03]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="csvDownloadStarted"]') with timeout=120000
[00:11:03]                 │ proc [kibana]   log   [14:29:24.446] [error][plugins][reporting][savedobject-csv] TypeError: Cannot read property 'title' of undefined
[00:11:03]                 │ proc [kibana]     at getSearchParamsFromRequest (/dev/shm/workspace/kibana-build-xpack-23/src/plugins/data/common/search/search_source/fetch/get_search_params.js:54:32)
[00:11:03]                 │ proc [kibana]     at SearchSource.fetchSearch (/dev/shm/workspace/kibana-build-xpack-23/src/plugins/data/common/search/search_source/search_source.js:283:58)
[00:11:03]                 │ proc [kibana]     at SearchSource.fetch (/dev/shm/workspace/kibana-build-xpack-23/src/plugins/data/common/search/search_source/search_source.js:229:29)
[00:11:03]                 │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:11:03]                 │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:11:03]                 │ proc [kibana]     at generateCsv (/dev/shm/workspace/kibana-build-xpack-23/x-pack/plugins/reporting/server/export_types/csv/generate_csv/index.js:53:23)
[00:11:03]                 │ proc [kibana]     at runTask (/dev/shm/workspace/kibana-build-xpack-23/x-pack/plugins/reporting/server/export_types/csv_from_savedobject/execute_job.js:43:9)
[00:11:03]                 │ proc [kibana]     at /dev/shm/workspace/kibana-build-xpack-23/x-pack/plugins/reporting/server/routes/generate_from_savedobject_immediate.js:89:11
[00:11:03]                 │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-xpack-23/src/core/server/http/router/router.js:163:30)
[00:11:03]                 │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-xpack-23/src/core/server/http/router/router.js:124:50)
[00:11:03]                 │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-xpack-23/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:11:03]                 │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-xpack-23/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:11:03]                 │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-xpack-23/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:11:03]                 │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-xpack-23/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:11:03]                 │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-xpack-23/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:11:03]                 │ proc [kibana]   log   [14:29:24.452] [error][http] TypeError: Cannot read property 'title' of undefined
[00:11:03]                 │ proc [kibana]     at getSearchParamsFromRequest (/dev/shm/workspace/kibana-build-xpack-23/src/plugins/data/common/search/search_source/fetch/get_search_params.js:54:32)
[00:11:03]                 │ proc [kibana]     at SearchSource.fetchSearch (/dev/shm/workspace/kibana-build-xpack-23/src/plugins/data/common/search/search_source/search_source.js:283:58)
[00:11:03]                 │ proc [kibana]     at SearchSource.fetch (/dev/shm/workspace/kibana-build-xpack-23/src/plugins/data/common/search/search_source/search_source.js:229:29)
[00:11:03]                 │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:11:03]                 │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:11:03]                 │ proc [kibana]     at generateCsv (/dev/shm/workspace/kibana-build-xpack-23/x-pack/plugins/reporting/server/export_types/csv/generate_csv/index.js:53:23)
[00:11:03]                 │ proc [kibana]     at runTask (/dev/shm/workspace/kibana-build-xpack-23/x-pack/plugins/reporting/server/export_types/csv_from_savedobject/execute_job.js:43:9)
[00:11:03]                 │ proc [kibana]     at /dev/shm/workspace/kibana-build-xpack-23/x-pack/plugins/reporting/server/routes/generate_from_savedobject_immediate.js:89:11
[00:11:03]                 │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-xpack-23/src/core/server/http/router/router.js:163:30)
[00:11:03]                 │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-xpack-23/src/core/server/http/router/router.js:124:50)
[00:11:03]                 │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-xpack-23/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:11:03]                 │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-xpack-23/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:11:03]                 │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-xpack-23/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:11:03]                 │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-xpack-23/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:11:03]                 │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-xpack-23/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:11:03]                 │ proc [kibana]  error  [14:29:24.373]  Error: Internal Server Error
[00:11:03]                 │ proc [kibana]     at HapiResponseAdapter.toInternalError (/dev/shm/workspace/kibana-build-xpack-23/src/core/server/http/router/response_adapter.js:69:19)
[00:11:03]                 │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-xpack-23/src/core/server/http/router/router.js:177:34)
[00:11:03]                 │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:11:03]                 │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:11:03]                 │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-xpack-23/src/core/server/http/router/router.js:124:50)
[00:11:03]                 │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-xpack-23/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:11:03]                 │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-xpack-23/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:11:03]                 │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-xpack-23/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:11:03]                 │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-xpack-23/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:11:03]                 │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-xpack-23/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:11:03]                 │ERROR browser[SEVERE] http://localhost:61231/api/reporting/v1/generate/immediate/csv/saved-object/search:6091ead0-1c6d-11ea-a100-8589bb9d7c6b - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:11:08]                 │ info Taking screenshot "/dev/shm/workspace/parallel/23/kibana/x-pack/test/functional/screenshots/failure/dashboard Reporting Download CSV Downloads a CSV export of a saved search panel.png"
[00:11:08]                 │ info Current URL is: http://localhost:61231/app/dashboards#/view/6c263e00-1c6d-11ea-a100-8589bb9d7c6b?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:%272019-06-26T06:20:28.066Z%27,to:%272019-06-26T07:27:58.573Z%27))&_a=(description:%27%27,filters:!(),fullScreenMode:!f,options:(hidePanelTitles:!f,useMargins:!t),query:(language:kuery,query:%27%27),tags:!(),timeRestore:!t,title:%27Ecom%20Dashboard%27,viewMode:view)
[00:11:08]                 │ info Saving page source to: /dev/shm/workspace/parallel/23/kibana/x-pack/test/functional/failure_debug/html/dashboard Reporting Download CSV Downloads a CSV export of a saved search panel.html
[00:11:08]                 └- ✖ fail: dashboard Reporting Download CSV Downloads a CSV export of a saved search panel
[00:11:08]                 │ 

Stack Trace

[Error [TimeoutError]: Timeout has occurred] { stack: undefined }

Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/security/secure_roles_perm·js.security app secure roles and permissions Kibana User navigating to Discover and trying to generate CSV gets - Authorization Error

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: security app
[00:00:00]           └-> "before all" hook
[00:02:49]           └-: secure roles and permissions
[00:02:49]             └-> "before all" hook
[00:02:49]             └-> "before all" hook
[00:02:49]               │ debg users
[00:02:49]               │ info [logstash_functional] Loading "mappings.json"
[00:02:49]               │ info [logstash_functional] Loading "data.json.gz"
[00:02:49]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0]
[00:02:49]               │ info [logstash_functional] Created index "logstash-2015.09.22"
[00:02:49]               │ debg [logstash_functional] "logstash-2015.09.22" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:02:49]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0]
[00:02:50]               │ info [logstash_functional] Created index "logstash-2015.09.20"
[00:02:50]               │ debg [logstash_functional] "logstash-2015.09.20" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:02:50]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0]
[00:02:50]               │ info [logstash_functional] Created index "logstash-2015.09.21"
[00:02:50]               │ debg [logstash_functional] "logstash-2015.09.21" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:02:59]               │ info progress: 12027
[00:03:01]               │ info [logstash_functional] Indexed 4634 docs into "logstash-2015.09.22"
[00:03:01]               │ info [logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:03:01]               │ info [logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:03:01]               │ debg load kibana index with default index pattern
[00:03:01]               │ info [security/discover] Loading "mappings.json"
[00:03:01]               │ info [security/discover] Loading "data.json.gz"
[00:03:01]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_1/5k-Wp76fSDaPXyRphjA-ug] deleting index
[00:03:01]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_2/VOlimCjJQGa7fW0N8t6b8A] deleting index
[00:03:01]               │ info [security/discover] Deleted existing index [".kibana_2",".kibana_1"]
[00:03:01]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:03:01]               │ info [security/discover] Created index ".kibana"
[00:03:01]               │ debg [security/discover] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:03:01]               │ info [security/discover] Indexed 3 docs into ".kibana"
[00:03:01]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana/ntJek8_wRAeGjB_uJn_Y2Q] update_mapping [_doc]
[00:03:01]               │ debg Migrating saved objects
[00:03:01]               │ proc [kibana]   log   [14:26:06.894] [info][savedobjects-service] Creating index .kibana_2.
[00:03:01]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:03:01]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] updating number_of_replicas to [0] for indices [.kibana_2]
[00:03:02]               │ proc [kibana]   log   [14:26:06.970] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:03:02]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:03:02]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] updating number_of_replicas to [0] for indices [.kibana_1]
[00:03:02]               │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] 6205 finished with response BulkByScrollResponse[took=22.4ms,timed_out=false,sliceId=null,updated=0,created=3,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:03:02]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana/ntJek8_wRAeGjB_uJn_Y2Q] deleting index
[00:03:02]               │ proc [kibana]   log   [14:26:07.330] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:03:02]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_2/4O9JJxIDSX2C4aG4vhPFTA] update_mapping [_doc]
[00:03:02]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_2/4O9JJxIDSX2C4aG4vhPFTA] update_mapping [_doc]
[00:03:02]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_2/4O9JJxIDSX2C4aG4vhPFTA] update_mapping [_doc]
[00:03:02]               │ proc [kibana]   log   [14:26:07.527] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:03:02]               │ proc [kibana]   log   [14:26:07.572] [info][savedobjects-service] Finished in 679ms.
[00:03:02]               │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true}
[00:03:02]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] [.kibana_2/4O9JJxIDSX2C4aG4vhPFTA] update_mapping [_doc]
[00:03:04]               │ debg replacing kibana config doc: {"defaultIndex":"logstash-*"}
[00:03:05]               │ debg navigating to settings url: http://localhost:6151/app/management
[00:03:05]               │ debg navigate to: http://localhost:6151/app/management
[00:03:05]               │ debg browser[INFO] http://localhost:6151/app/management?_t=1609856769963 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:03:05]               │
[00:03:05]               │ debg browser[INFO] http://localhost:6151/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:05]               │ debg ... sleep(700) start
[00:03:05]               │ debg ... sleep(700) end
[00:03:05]               │ debg returned from get, calling refresh
[00:03:06]               │ debg browser[INFO] http://localhost:6151/app/management?_t=1609856769963 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:03:06]               │
[00:03:06]               │ debg browser[INFO] http://localhost:6151/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:06]               │ debg currentUrl = http://localhost:6151/app/management
[00:03:06]               │          appUrl = http://localhost:6151/app/management
[00:03:06]               │ debg TestSubjects.find(kibanaChrome)
[00:03:06]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:03:07]               │ debg ... sleep(501) start
[00:03:07]               │ debg ... sleep(501) end
[00:03:07]               │ debg in navigateTo url = http://localhost:6151/app/management
[00:03:07]               │ debg TestSubjects.exists(statusPageContainer)
[00:03:07]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:03:10]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:03:10]             └-> should add new role logstash_reader
[00:03:10]               └-> "before each" hook: global before each
[00:03:10]               │ debg navigating to settings url: http://localhost:6151/app/management
[00:03:10]               │ debg navigate to: http://localhost:6151/app/management
[00:03:10]               │ debg browser[INFO] http://localhost:6151/app/management?_t=1609856775788 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:03:10]               │
[00:03:10]               │ debg browser[INFO] http://localhost:6151/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:10]               │ debg ... sleep(700) start
[00:03:11]               │ debg ... sleep(700) end
[00:03:11]               │ debg returned from get, calling refresh
[00:03:12]               │ERROR browser[SEVERE] http://localhost:6151/39254/bundles/core/core.entry.js 12:194770 TypeError: Failed to fetch
[00:03:12]               │          at _callee3$ (http://localhost:6151/39254/bundles/core/core.entry.js:6:43987)
[00:03:12]               │          at l (http://localhost:6151/39254/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:321:968491)
[00:03:12]               │          at Generator._invoke (http://localhost:6151/39254/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:321:968244)
[00:03:12]               │          at Generator.forEach.e.<computed> [as throw] (http://localhost:6151/39254/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:321:968848)
[00:03:12]               │          at fetch_asyncGeneratorStep (http://localhost:6151/39254/bundles/core/core.entry.js:6:39045)
[00:03:12]               │          at _throw (http://localhost:6151/39254/bundles/core/core.entry.js:6:39453)
[00:03:12]               │ debg browser[INFO] http://localhost:6151/app/management?_t=1609856775788 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:03:12]               │
[00:03:12]               │ debg browser[INFO] http://localhost:6151/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:12]               │ debg currentUrl = http://localhost:6151/app/management
[00:03:12]               │          appUrl = http://localhost:6151/app/management
[00:03:12]               │ debg TestSubjects.find(kibanaChrome)
[00:03:12]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:03:12]               │ debg ... sleep(501) start
[00:03:13]               │ debg ... sleep(501) end
[00:03:13]               │ debg in navigateTo url = http://localhost:6151/app/management
[00:03:13]               │ debg TestSubjects.exists(statusPageContainer)
[00:03:13]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:03:16]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:03:16]               │ debg TestSubjects.click(roles)
[00:03:16]               │ debg Find.clickByCssSelector('[data-test-subj="roles"]') with timeout=10000
[00:03:16]               │ debg Find.findByCssSelector('[data-test-subj="roles"]') with timeout=10000
[00:03:16]               │ debg TestSubjects.click(createRoleButton)
[00:03:16]               │ debg Find.clickByCssSelector('[data-test-subj="createRoleButton"]') with timeout=10000
[00:03:16]               │ debg Find.findByCssSelector('[data-test-subj="createRoleButton"]') with timeout=10000
[00:03:16]               │ debg roleObj.indices[0].names = logstash-*
[00:03:16]               │ debg TestSubjects.append(roleFormNameInput, logstash_reader)
[00:03:16]               │ debg TestSubjects.find(roleFormNameInput)
[00:03:16]               │ debg Find.findByCssSelector('[data-test-subj="roleFormNameInput"]') with timeout=10000
[00:03:17]               │ debg comboBox.setCustom, comboBoxSelector: indicesInput0, value: logstash-*
[00:03:17]               │ debg TestSubjects.find(indicesInput0)
[00:03:17]               │ debg Find.findByCssSelector('[data-test-subj="indicesInput0"]') with timeout=10000
[00:03:19]               │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:03:19]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:03:19]               │ debg TestSubjects.click(addSpacePrivilegeButton)
[00:03:19]               │ debg Find.clickByCssSelector('[data-test-subj="addSpacePrivilegeButton"]') with timeout=10000
[00:03:19]               │ debg Find.findByCssSelector('[data-test-subj="addSpacePrivilegeButton"]') with timeout=10000
[00:03:19]               │ debg TestSubjects.click(spaceSelectorComboBox)
[00:03:19]               │ debg Find.clickByCssSelector('[data-test-subj="spaceSelectorComboBox"]') with timeout=10000
[00:03:19]               │ debg Find.findByCssSelector('[data-test-subj="spaceSelectorComboBox"]') with timeout=10000
[00:03:20]               │ debg Find.findByCssSelector('#spaceOption_\*') with timeout=10000
[00:03:20]               │ debg TestSubjects.click(basePrivilege_all)
[00:03:20]               │ debg Find.clickByCssSelector('[data-test-subj="basePrivilege_all"]') with timeout=10000
[00:03:20]               │ debg Find.findByCssSelector('[data-test-subj="basePrivilege_all"]') with timeout=10000
[00:03:20]               │ debg TestSubjects.click(createSpacePrivilegeButton)
[00:03:20]               │ debg Find.clickByCssSelector('[data-test-subj="createSpacePrivilegeButton"]') with timeout=10000
[00:03:20]               │ debg Find.findByCssSelector('[data-test-subj="createSpacePrivilegeButton"]') with timeout=10000
[00:03:21]               │ debg Adding privilege read to role
[00:03:21]               │ debg Find.findByCssSelector('[data-test-subj="privilegesInput0"] input') with timeout=10000
[00:03:21]               │ debg Find.byButtonText('read') with timeout=10000
[00:03:21]               │ debg ... sleep(250) start
[00:03:21]               │ debg ... sleep(250) end
[00:03:21]               │ debg Adding privilege view_index_metadata to role
[00:03:21]               │ debg Find.findByCssSelector('[data-test-subj="privilegesInput0"] input') with timeout=10000
[00:03:22]               │ debg Find.byButtonText('view_index_metadata') with timeout=10000
[00:03:22]               │ debg ... sleep(250) start
[00:03:22]               │ debg ... sleep(250) end
[00:03:22]               │ debg click save button
[00:03:22]               │ debg TestSubjects.click(roleFormSaveButton)
[00:03:22]               │ debg Find.clickByCssSelector('[data-test-subj="roleFormSaveButton"]') with timeout=10000
[00:03:22]               │ debg Find.findByCssSelector('[data-test-subj="roleFormSaveButton"]') with timeout=10000
[00:03:22]               │ debg TestSubjects.exists(roleRow)
[00:03:22]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="roleRow"]') with timeout=120000
[00:03:22]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] added role [logstash_reader]
[00:03:23]               └- ✓ pass  (12.6s) "security app secure roles and permissions should add new role logstash_reader"
[00:03:23]             └-> should add new user
[00:03:23]               └-> "before each" hook: global before each
[00:03:23]               │ debg navigating to settings url: http://localhost:6151/app/management
[00:03:23]               │ debg navigate to: http://localhost:6151/app/management
[00:03:23]               │ debg browser[INFO] http://localhost:6151/app/management?_t=1609856788376 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:03:23]               │
[00:03:23]               │ debg browser[INFO] http://localhost:6151/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:23]               │ debg ... sleep(700) start
[00:03:24]               │ debg ... sleep(700) end
[00:03:24]               │ debg returned from get, calling refresh
[00:03:24]               │ERROR browser[SEVERE] http://localhost:6151/39254/bundles/core/core.entry.js 12:194770 TypeError: Failed to fetch
[00:03:24]               │          at _callee3$ (http://localhost:6151/39254/bundles/core/core.entry.js:6:43987)
[00:03:24]               │          at l (http://localhost:6151/39254/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:321:968491)
[00:03:24]               │          at Generator._invoke (http://localhost:6151/39254/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:321:968244)
[00:03:24]               │          at Generator.forEach.e.<computed> [as throw] (http://localhost:6151/39254/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:321:968848)
[00:03:24]               │          at fetch_asyncGeneratorStep (http://localhost:6151/39254/bundles/core/core.entry.js:6:39045)
[00:03:24]               │          at _throw (http://localhost:6151/39254/bundles/core/core.entry.js:6:39453)
[00:03:24]               │ debg browser[INFO] http://localhost:6151/app/management?_t=1609856788376 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:03:24]               │
[00:03:24]               │ debg browser[INFO] http://localhost:6151/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:25]               │ debg currentUrl = http://localhost:6151/app/management
[00:03:25]               │          appUrl = http://localhost:6151/app/management
[00:03:25]               │ debg TestSubjects.find(kibanaChrome)
[00:03:25]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:03:25]               │ debg ... sleep(501) start
[00:03:25]               │ debg ... sleep(501) end
[00:03:25]               │ debg in navigateTo url = http://localhost:6151/app/management
[00:03:25]               │ debg TestSubjects.exists(statusPageContainer)
[00:03:25]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:03:28]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:03:28]               │ debg TestSubjects.click(users)
[00:03:28]               │ debg Find.clickByCssSelector('[data-test-subj="users"]') with timeout=10000
[00:03:28]               │ debg Find.findByCssSelector('[data-test-subj="users"]') with timeout=10000
[00:03:28]               │ debg After Add user new: , userObj.userName
[00:03:28]               │ debg TestSubjects.click(createUserButton)
[00:03:28]               │ debg Find.clickByCssSelector('[data-test-subj="createUserButton"]') with timeout=10000
[00:03:28]               │ debg Find.findByCssSelector('[data-test-subj="createUserButton"]') with timeout=10000
[00:03:28]               │ debg username = Rashmi
[00:03:28]               │ debg TestSubjects.setValue(userFormUserNameInput, Rashmi)
[00:03:28]               │ debg TestSubjects.click(userFormUserNameInput)
[00:03:28]               │ debg Find.clickByCssSelector('[data-test-subj="userFormUserNameInput"]') with timeout=10000
[00:03:28]               │ debg Find.findByCssSelector('[data-test-subj="userFormUserNameInput"]') with timeout=10000
[00:03:29]               │ debg TestSubjects.setValue(passwordInput, changeme)
[00:03:29]               │ debg TestSubjects.click(passwordInput)
[00:03:29]               │ debg Find.clickByCssSelector('[data-test-subj="passwordInput"]') with timeout=10000
[00:03:29]               │ debg Find.findByCssSelector('[data-test-subj="passwordInput"]') with timeout=10000
[00:03:29]               │ debg TestSubjects.setValue(passwordConfirmationInput, changeme)
[00:03:29]               │ debg TestSubjects.click(passwordConfirmationInput)
[00:03:29]               │ debg Find.clickByCssSelector('[data-test-subj="passwordConfirmationInput"]') with timeout=10000
[00:03:29]               │ debg Find.findByCssSelector('[data-test-subj="passwordConfirmationInput"]') with timeout=10000
[00:03:29]               │ debg TestSubjects.setValue(userFormFullNameInput, RashmiFirst RashmiLast)
[00:03:29]               │ debg TestSubjects.click(userFormFullNameInput)
[00:03:29]               │ debg Find.clickByCssSelector('[data-test-subj="userFormFullNameInput"]') with timeout=10000
[00:03:29]               │ debg Find.findByCssSelector('[data-test-subj="userFormFullNameInput"]') with timeout=10000
[00:03:29]               │ debg TestSubjects.setValue(userFormEmailInput, [email protected])
[00:03:29]               │ debg TestSubjects.click(userFormEmailInput)
[00:03:29]               │ debg Find.clickByCssSelector('[data-test-subj="userFormEmailInput"]') with timeout=10000
[00:03:29]               │ debg Find.findByCssSelector('[data-test-subj="userFormEmailInput"]') with timeout=10000
[00:03:29]               │ debg Add roles:  [ 'logstash_reader', 'kibana_admin' ]
[00:03:29]               │ debg TestSubjects.find(rolesDropdown)
[00:03:29]               │ debg Find.findByCssSelector('[data-test-subj="rolesDropdown"]') with timeout=10000
[00:03:30]               │ debg TestSubjects.click(roleOption-logstash_reader)
[00:03:30]               │ debg Find.clickByCssSelector('[data-test-subj="roleOption-logstash_reader"]') with timeout=10000
[00:03:30]               │ debg Find.findByCssSelector('[data-test-subj="roleOption-logstash_reader"]') with timeout=10000
[00:03:30]               │ debg TestSubjects.click(comboBoxToggleListButton)
[00:03:30]               │ debg Find.clickByCssSelector('[data-test-subj="comboBoxToggleListButton"]') with timeout=10000
[00:03:30]               │ debg Find.findByCssSelector('[data-test-subj="comboBoxToggleListButton"]') with timeout=10000
[00:03:30]               │ debg TestSubjects.find(roleOption-logstash_reader)
[00:03:30]               │ debg Find.findByCssSelector('[data-test-subj="roleOption-logstash_reader"]') with timeout=10000
[00:03:30]               │ debg TestSubjects.find(rolesDropdown)
[00:03:30]               │ debg Find.findByCssSelector('[data-test-subj="rolesDropdown"]') with timeout=10000
[00:03:30]               │ debg TestSubjects.click(roleOption-kibana_admin)
[00:03:30]               │ debg Find.clickByCssSelector('[data-test-subj="roleOption-kibana_admin"]') with timeout=10000
[00:03:30]               │ debg Find.findByCssSelector('[data-test-subj="roleOption-kibana_admin"]') with timeout=10000
[00:03:30]               │ debg TestSubjects.click(comboBoxToggleListButton)
[00:03:30]               │ debg Find.clickByCssSelector('[data-test-subj="comboBoxToggleListButton"]') with timeout=10000
[00:03:30]               │ debg Find.findByCssSelector('[data-test-subj="comboBoxToggleListButton"]') with timeout=10000
[00:03:30]               │ debg TestSubjects.find(roleOption-kibana_admin)
[00:03:30]               │ debg Find.findByCssSelector('[data-test-subj="roleOption-kibana_admin"]') with timeout=10000
[00:03:30]               │ debg After Add role: , userObj.roleName
[00:03:30]               │ debg TestSubjects.click(userFormSaveButton)
[00:03:30]               │ debg Find.clickByCssSelector('[data-test-subj="userFormSaveButton"]') with timeout=10000
[00:03:30]               │ debg Find.findByCssSelector('[data-test-subj="userFormSaveButton"]') with timeout=10000
[00:03:30]               │ debg After Add user: , userObj.userName
[00:03:30]               │ debg TestSubjects.click(tablePaginationPopoverButton)
[00:03:30]               │ debg Find.clickByCssSelector('[data-test-subj="tablePaginationPopoverButton"]') with timeout=10000
[00:03:30]               │ debg Find.findByCssSelector('[data-test-subj="tablePaginationPopoverButton"]') with timeout=10000
[00:03:30]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1609854213730914233] added user [Rashmi]
[00:03:31]               │ debg TestSubjects.click(tablePagination-100-rows)
[00:03:31]               │ debg Find.clickByCssSelector('[data-test-subj="tablePagination-100-rows"]') with timeout=10000
[00:03:31]               │ debg Find.findByCssSelector('[data-test-subj="tablePagination-100-rows"]') with timeout=10000
[00:03:31]               │ debg TestSubjects.findAll(userRow)
[00:03:31]               │ debg Find.allByCssSelector('[data-test-subj="userRow"]') with timeout=10000
[00:03:33]               │ debg actualUsers = {"OptionalUser":{"username":"OptionalUser","fullname":"","email":"","roles":[""],"reserved":false,"deprecated":false},"Rashmi":{"username":"Rashmi","fullname":"RashmiFirst RashmiLast","email":"[email protected]","roles":["logstash_reader","kibana_admin"],"reserved":false,"deprecated":false},"apm_system":{"username":"apm_system","fullname":"","email":"","roles":["apm_system"],"reserved":true,"deprecated":false},"beats_system":{"username":"beats_system","fullname":"","email":"","roles":["beats_system"],"reserved":true,"deprecated":false},"elastic":{"username":"elastic","fullname":"","email":"","roles":["superuser"],"reserved":true,"deprecated":false},"kibana":{"username":"kibana","fullname":"","email":"","roles":["kibana_system"],"reserved":true,"deprecated":true},"kibana_system":{"username":"kibana_system","fullname":"","email":"","roles":["kibana_system"],"reserved":true,"deprecated":false},"logstash_system":{"username":"logstash_system","fullname":"","email":"","roles":["logstash_system"],"reserved":true,"deprecated":false},"remote_monitoring_user":{"username":"remote_monitoring_user","fullname":"","email":"","roles":["remote_monitoring_collector","remote_monitoring_agent"],"reserved":true,"deprecated":false},"test_user":{"username":"test_user","fullname":"test user","email":"","roles":["superuser"],"reserved":false,"deprecated":false},"userEast":{"username":"userEast","fullname":"dls EAST","email":"[email protected]","roles":["kibana_admin","myroleEast"],"reserved":false,"deprecated":false}}
[00:03:33]               │ debg roles:  [ 'logstash_reader', 'kibana_admin' ]
[00:03:33]               │ debg SecurityPage.forceLogout
[00:03:33]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:03:33]               │ debg --- retry.tryForTime error: .login-form is not displayed
[00:03:33]               │ debg Redirecting to /logout to force the logout
[00:03:33]               │ debg Waiting on the login form to appear
[00:03:33]               │ debg Waiting for Login Page to appear.
[00:03:33]               │ debg Waiting up to 100000ms for login page...
[00:03:33]               │ debg browser[INFO] http://localhost:6151/logout?_t=1609856798618 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:03:33]               │
[00:03:33]               │ debg browser[INFO] http://localhost:6151/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:33]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:03:36]               │ debg browser[INFO] http://localhost:6151/login?msg=LOGGED_OUT 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:03:36]               │
[00:03:36]               │ debg browser[INFO] http://localhost:6151/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:36]               │ERROR browser[SEVERE] http://localhost:6151/internal/spaces/_active_space - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:03:36]               │ debg --- retry.tryForTime error: .login-form is not displayed
[00:03:36]               │ debg browser[INFO] http://localhost:6151/39254/bundles/core/core.entry.js 12:195717 "Detected an unhandled Promise rejection.
[00:03:36]               │      Error: Unauthorized"
[00:03:36]               │ERROR browser[SEVERE] http://localhost:6151/39254/bundles/core/core.entry.js 5:3002 
[00:03:37]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:03:37]               │ debg TestSubjects.exists(loginForm)
[00:03:37]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:03:37]               │ debg Waiting for Login Form to appear.
[00:03:37]               │ debg Waiting up to 100000ms for login form...
[00:03:37]               │ debg TestSubjects.exists(loginForm)
[00:03:37]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:03:37]               │ debg TestSubjects.setValue(loginUsername, Rashmi)
[00:03:37]               │ debg TestSubjects.click(loginUsername)
[00:03:37]               │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:03:37]               │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:03:37]               │ debg TestSubjects.setValue(loginPassword, changeme)
[00:03:37]               │ debg TestSubjects.click(loginPassword)
[00:03:37]               │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:03:37]               │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:03:37]               │ debg TestSubjects.click(loginSubmit)
[00:03:37]               │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:03:37]               │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:03:37]               │ debg Waiting for login result, expected: undefined.
[00:03:37]               │ debg Waiting up to 20000ms for logout button visible...
[00:03:37]               │ debg TestSubjects.exists(userMenuButton)
[00:03:37]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:03:37]               │ proc [kibana]   log   [14:26:42.844] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:03:40]               │ debg browser[INFO] http://localhost:6151/app/home 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:03:40]               │
[00:03:40]               │ debg browser[INFO] http://localhost:6151/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:40]               │ debg TestSubjects.exists(userMenu)
[00:03:40]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:03:42]               │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:03:43]               │ debg TestSubjects.click(userMenuButton)
[00:03:43]               │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:03:43]               │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:03:43]               │ debg TestSubjects.exists(userMenu)
[00:03:43]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=120000
[00:03:43]               │ debg TestSubjects.exists(userMenu > logoutLink)
[00:03:43]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:03:43]               └- ✓ pass  (20.1s) "security app secure roles and permissions should add new user"
[00:03:43]             └-> Kibana User does not have link to user management
[00:03:43]               └-> "before each" hook: global before each
[00:03:43]               │ debg navigating to settings url: http://localhost:6151/app/management
[00:03:43]               │ debg navigate to: http://localhost:6151/app/management
[00:03:43]               │ debg browser[INFO] http://localhost:6151/app/management?_t=1609856808464 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:03:43]               │
[00:03:43]               │ debg browser[INFO] http://localhost:6151/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:43]               │ debg ... sleep(700) start
[00:03:44]               │ debg ... sleep(700) end
[00:03:44]               │ debg returned from get, calling refresh
[00:03:44]               │ debg browser[INFO] http://localhost:6151/app/management?_t=1609856808464 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:03:44]               │
[00:03:44]               │ debg browser[INFO] http://localhost:6151/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:45]               │ debg currentUrl = http://localhost:6151/app/management
[00:03:45]               │          appUrl = http://localhost:6151/app/management
[00:03:45]               │ debg TestSubjects.find(kibanaChrome)
[00:03:45]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:03:45]               │ debg ... sleep(501) start
[00:03:46]               │ debg ... sleep(501) end
[00:03:46]               │ debg in navigateTo url = http://localhost:6151/app/management
[00:03:46]               │ debg TestSubjects.exists(statusPageContainer)
[00:03:46]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:03:48]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:03:49]               │ debg TestSubjects.missingOrFail(users)
[00:03:49]               │ debg Find.waitForDeletedByCssSelector('[data-test-subj="users"]') with timeout=2500
[00:03:49]               └- ✓ pass  (6.1s) "security app secure roles and permissions Kibana User does not have link to user management"
[00:03:49]             └-> Kibana User navigating to Discover and trying to generate CSV gets - Authorization Error 
[00:03:49]               └-> "before each" hook: global before each
[00:03:49]               │ debg navigating to discover url: http://localhost:6151/app/discover#/
[00:03:49]               │ debg navigate to: http://localhost:6151/app/discover#/
[00:03:50]               │ debg browser[INFO] http://localhost:6151/app/discover?_t=1609856814577#/ 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:03:50]               │
[00:03:50]               │ debg browser[INFO] http://localhost:6151/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:50]               │ debg ... sleep(700) start
[00:03:50]               │ debg ... sleep(700) end
[00:03:50]               │ debg returned from get, calling refresh
[00:03:50]               │ debg browser[INFO] http://localhost:6151/app/discover?_t=1609856814577#/ 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:03:50]               │
[00:03:50]               │ debg browser[INFO] http://localhost:6151/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:50]               │ debg currentUrl = http://localhost:6151/app/discover#/
[00:03:50]               │          appUrl = http://localhost:6151/app/discover#/
[00:03:50]               │ debg TestSubjects.find(kibanaChrome)
[00:03:50]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:03:52]               │ debg ... sleep(501) start
[00:03:52]               │ debg ... sleep(501) end
[00:03:52]               │ debg in navigateTo url = http://localhost:6151/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(_source),filters:!(),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!(!(%27@timestamp%27,desc)))
[00:03:52]               │ debg --- retry.try error: URL changed, waiting for it to settle
[00:03:53]               │ debg ... sleep(501) start
[00:03:53]               │ debg ... sleep(501) end
[00:03:53]               │ debg in navigateTo url = http://localhost:6151/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(_source),filters:!(),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!(!(%27@timestamp%27,desc)))
[00:03:53]               │ debg TestSubjects.exists(statusPageContainer)
[00:03:53]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:03:56]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:03:56]               │ debg TestSubjects.exists(loadSearchForm)
[00:03:56]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loadSearchForm"]') with timeout=2500
[00:03:59]               │ debg --- retry.tryForTime error: [data-test-subj="loadSearchForm"] is not displayed
[00:03:59]               │ debg Waiting up to 20000ms for saved search panel is opened...
[00:03:59]               │ debg TestSubjects.moveMouseTo(discoverOpenButton)
[00:03:59]               │ debg TestSubjects.find(discoverOpenButton)
[00:03:59]               │ debg Find.findByCssSelector('[data-test-subj="discoverOpenButton"]') with timeout=10000
[00:04:00]               │ debg TestSubjects.click(discoverOpenButton)
[00:04:00]               │ debg Find.clickByCssSelector('[data-test-subj="discoverOpenButton"]') with timeout=10000
[00:04:00]               │ debg Find.findByCssSelector('[data-test-subj="discoverOpenButton"]') with timeout=10000
[00:04:00]               │ debg isGlobalLoadingIndicatorVisible
[00:04:00]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:04:00]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:04:01]               │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:04:02]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:04:02]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:04:02]               │ debg TestSubjects.exists(loadSearchForm)
[00:04:02]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loadSearchForm"]') with timeout=2500
[00:04:02]               │ debg TestSubjects.click(savedObjectTitleA-Saved-Search)
[00:04:02]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjectTitleA-Saved-Search"]') with timeout=10000
[00:04:02]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectTitleA-Saved-Search"]') with timeout=10000
[00:04:02]               │ debg isGlobalLoadingIndicatorVisible
[00:04:02]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:04:02]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:04:03]               │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:04:04]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:04:04]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:04:04]               │ debg click Reporting button
[00:04:04]               │ debg openCsvReportingPanel
[00:04:04]               │ debg openShareMenuItem title:CSV Reports
[00:04:04]               │ debg TestSubjects.exists(shareContextMenu)
[00:04:04]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="shareContextMenu"]') with timeout=2500
[00:04:07]               │ debg --- retry.tryForTime error: [data-test-subj="shareContextMenu"] is not displayed
[00:04:07]               │ debg TestSubjects.click(shareTopNavButton)
[00:04:07]               │ debg Find.clickByCssSelector('[data-test-subj="shareTopNavButton"]') with timeout=10000
[00:04:07]               │ debg Find.findByCssSelector('[data-test-subj="shareTopNavButton"]') with timeout=10000
[00:04:07]               │ debg Find.findByCssSelector('div.euiContextMenuPanel') with timeout=10000
[00:04:07]               │ debg TestSubjects.click(sharePanel-CSVReports)
[00:04:07]               │ debg Find.clickByCssSelector('[data-test-subj="sharePanel-CSVReports"]') with timeout=10000
[00:04:07]               │ debg Find.findByCssSelector('[data-test-subj="sharePanel-CSVReports"]') with timeout=10000
[00:04:07]               │ debg Find.waitForElementStale with timeout=10000
[00:04:07]               │ debg TestSubjects.click(generateReportButton)
[00:04:07]               │ debg Find.clickByCssSelector('[data-test-subj="generateReportButton"]') with timeout=10000
[00:04:07]               │ debg Find.findByCssSelector('[data-test-subj="generateReportButton"]') with timeout=10000
[00:04:07]               │ debg TestSubjects.exists(queueReportError)
[00:04:07]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="queueReportError"]') with timeout=2500
[00:04:10]               │ debg --- retry.tryForTime error: [data-test-subj="queueReportError"] is not displayed
[00:04:10]               │ info Taking screenshot "/dev/shm/workspace/parallel/5/kibana/x-pack/test/functional/screenshots/failure/security app secure roles and permissions Kibana User navigating to Discover and trying to generate CSV gets - Authorization Error .png"
[00:04:10]               │ info Current URL is: http://localhost:6151/app/discover#/view/ab12e3c0-f231-11e6-9486-733b1ac9221a?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(_source),filters:!(),index:%27logstash-*%27,interval:auto,query:(language:lucene,query:(query_string:(analyze_wildcard:!t,query:%27*%27))),sort:!(!(%27@timestamp%27,desc)))
[00:04:11]               │ info Saving page source to: /dev/shm/workspace/parallel/5/kibana/x-pack/test/functional/failure_debug/html/security app secure roles and permissions Kibana User navigating to Discover and trying to generate CSV gets - Authorization Error .html
[00:04:11]               └- ✖ fail: security app secure roles and permissions Kibana User navigating to Discover and trying to generate CSV gets - Authorization Error 
[00:04:11]               │      Error: expected false to equal true
[00:04:11]               │       at Assertion.assert (/dev/shm/workspace/parallel/5/kibana/packages/kbn-expect/expect.js:100:11)
[00:04:11]               │       at Assertion.be.Assertion.equal (/dev/shm/workspace/parallel/5/kibana/packages/kbn-expect/expect.js:227:8)
[00:04:11]               │       at Assertion.be (/dev/shm/workspace/parallel/5/kibana/packages/kbn-expect/expect.js:69:22)
[00:04:11]               │       at Context.<anonymous> (test/functional/apps/security/secure_roles_perm.js:88:35)
[00:04:11]               │       at Object.apply (/dev/shm/workspace/parallel/5/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:84:16)
[00:04:11]               │ 
[00:04:11]               │ 

Stack Trace

Error: expected false to equal true
    at Assertion.assert (/dev/shm/workspace/parallel/5/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.be.Assertion.equal (/dev/shm/workspace/parallel/5/kibana/packages/kbn-expect/expect.js:227:8)
    at Assertion.be (/dev/shm/workspace/parallel/5/kibana/packages/kbn-expect/expect.js:69:22)
    at Context.<anonymous> (test/functional/apps/security/secure_roles_perm.js:88:35)
    at Object.apply (/dev/shm/workspace/parallel/5/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:84:16)

and 56 more failures, only showing the first 3.

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
discover 502.3KB 502.0KB -331.0B

Distributable file count

id before after diff
default 47264 48024 +760

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
data 1003.4KB 1003.6KB +191.0B
reporting 106.8KB 106.6KB -175.0B
total +16.0B

History

  • 💔 Build #83289 failed 28073eff5d0729c46ac521ca6cdb79cf59c672a7

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

@tsullivan tsullivan self-assigned this Jan 5, 2021
@tsullivan
Copy link
Member

I'm plan to pick up on this next week.

@tsullivan
Copy link
Member

Replaced with #88303

@tsullivan tsullivan closed this Feb 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
(Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead release_note:skip Skip the PR/issue when compiling release notes v7.12.0 v8.0.0 WIP Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants