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

Add userSetup plugin skeleton. #101610

Merged
merged 5 commits into from
Jul 6, 2021

Conversation

azasypkin
Copy link
Member

@azasypkin azasypkin commented Jun 8, 2021

Summary

Simple plugin skeleton for the userSetup plugin that will eventually support Kibana interactive setup mode.

NOTE: Plugin is disabled by default and can be enabled with --userSetup.enabled=true. Default app is available at /app/userSetup. Once this plugin becomes a preboot plugin it will be enabled by default.

@azasypkin azasypkin added Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! release_note:skip Skip the PR/issue when compiling release notes v7.15.0 labels Jun 8, 2021
@azasypkin azasypkin changed the title Add setup plugin skeleton. Add userSetup plugin skeleton. Jun 17, 2021
@azasypkin azasypkin added backport:skip This commit does not require backporting v8.0.0 and removed v7.15.0 labels Jul 1, 2021
@azasypkin azasypkin force-pushed the issue-xxx-setup-plugin branch 3 times, most recently from e5d728c to be4f439 Compare July 1, 2021 12:43
@azasypkin azasypkin marked this pull request as ready for review July 1, 2021 15:06
@azasypkin azasypkin requested a review from a team as a code owner July 1, 2021 15:06
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-security (Team:Security)

Copy link
Contributor

@tylersmalley tylersmalley left a comment

Choose a reason for hiding this comment

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

Approving limits change.

@azasypkin
Copy link
Member Author

@elasticmachine merge upstream

Copy link
Contributor

@thomheymann thomheymann left a comment

Choose a reason for hiding this comment

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

LGTM! Verified locally and getting styled server not ready page.

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/discover/reporting·ts.discover Discover CSV Export Generate CSV: new search generates a report with no data

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:16:36]         └-: discover
[00:16:36]           └-> "before all" hook in "discover"
[00:24:07]           └-: Discover CSV Export
[00:24:07]             └-> "before all" hook in "Discover CSV Export"
[00:24:07]             └-> "before all" hook: initialize tests in "Discover CSV Export"
[00:24:07]               │ debg ReportingPage:initTests
[00:24:07]               │ info [x-pack/test/functional/es_archives/reporting/ecommerce] Loading "mappings.json"
[00:24:07]               │ info [x-pack/test/functional/es_archives/reporting/ecommerce] Loading "data.json.gz"
[00:24:07]               │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [ecommerce] creating index, cause [api], templates [], shards [1]/[0]
[00:24:07]               │ info [x-pack/test/functional/es_archives/reporting/ecommerce] Created index "ecommerce"
[00:24:07]               │ debg [x-pack/test/functional/es_archives/reporting/ecommerce] "ecommerce" settings {"index":{"number_of_replicas":"0","number_of_shards":"1"}}
[00:24:09]               │ info [x-pack/test/functional/es_archives/reporting/ecommerce] Indexed 4675 docs into "ecommerce"
[00:24:09]               │ debg resolved import for x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce.json to /dev/shm/workspace/parallel/19/kibana/x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce.json
[00:24:09]               │ info importing 12 saved objects { space: undefined }
[00:24:09]               │ succ import success
[00:25:07]             └-: Generate CSV: new search
[00:25:07]               └-> "before all" hook for "generates a report from a new search with data: default"
[00:25:07]               └-> generates a report from a new search with data: default
[00:25:07]                 └-> "before each" hook: global before each for "generates a report from a new search with data: default"
[00:25:07]                 └-> "before each" hook for "generates a report from a new search with data: default"
[00:25:07]                   │ debg resolved import for x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce.json to /dev/shm/workspace/parallel/19/kibana/x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce.json
[00:25:07]                   │ info importing 12 saved objects { space: undefined }
[00:25:08]                   │ succ import success
[00:25:08]                   │ debg navigating to discover url: http://localhost:61191/app/discover#/
[00:25:08]                   │ debg navigate to: http://localhost:61191/app/discover#/
[00:25:09]                   │ debg browser[INFO] http://localhost:61191/app/discover?_t=1625570186502#/ 281 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:25:09]                   │
[00:25:09]                   │ debg browser[INFO] http://localhost:61191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:25:09]                   │ debg ... sleep(700) start
[00:25:09]                   │ debg ... sleep(700) end
[00:25:09]                   │ debg returned from get, calling refresh
[00:25:10]                   │ERROR browser[SEVERE] http://localhost:61191/44197/bundles/core/core.entry.js 12:156199 TypeError: Failed to fetch
[00:25:10]                   │          at fetch_Fetch.fetchResponse (http://localhost:61191/44197/bundles/core/core.entry.js:6:26194)
[00:25:10]                   │          at async http://localhost:61191/44197/bundles/core/core.entry.js:6:24091
[00:25:10]                   │          at async http://localhost:61191/44197/bundles/core/core.entry.js:6:23997
[00:25:10]                   │ debg browser[INFO] http://localhost:61191/app/discover?_t=1625570186502#/ 281 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:25:10]                   │
[00:25:10]                   │ debg browser[INFO] http://localhost:61191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:25:11]                   │ debg currentUrl = http://localhost:61191/app/discover#/
[00:25:11]                   │          appUrl = http://localhost:61191/app/discover#/
[00:25:11]                   │ debg TestSubjects.find(kibanaChrome)
[00:25:11]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:25:11]                   │ debg ... sleep(501) start
[00:25:11]                   │ debg ... sleep(501) end
[00:25:12]                   │ debg in navigateTo url = http://localhost:61191/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:%275193f870-d861-11e9-a311-0fa548c5f953%27,interval:auto,query:(language:kuery,query:%27%27),sort:!(!(order_date,desc)))
[00:25:12]                   │ debg --- retry.tryForTime error: URL changed, waiting for it to settle
[00:25:12]                   │ debg ... sleep(501) start
[00:25:13]                   │ debg ... sleep(501) end
[00:25:13]                   │ debg in navigateTo url = http://localhost:61191/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:%275193f870-d861-11e9-a311-0fa548c5f953%27,interval:auto,query:(language:kuery,query:%27%27),sort:!(!(order_date,desc)))
[00:25:13]                 │ debg TestSubjects.click(discoverNewButton)
[00:25:13]                 │ debg Find.clickByCssSelector('[data-test-subj="discoverNewButton"]') with timeout=10000
[00:25:13]                 │ debg Find.findByCssSelector('[data-test-subj="discoverNewButton"]') with timeout=10000
[00:25:13]                 │ debg isGlobalLoadingIndicatorVisible
[00:25:13]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:25:13]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:25:14]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:25:15]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:25:15]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:25:15]                 │ debg Reporting:setTimepickerInDataRange
[00:25:15]                 │ debg Setting absolute range to Apr 27, 2019 @ 23:56:51.374 to Aug 23, 2019 @ 16:18:51.821
[00:25:15]                 │ debg TestSubjects.exists(superDatePickerToggleQuickMenuButton)
[00:25:15]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=20000
[00:25:15]                 │ debg TestSubjects.exists(superDatePickerShowDatesButton)
[00:25:15]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=2500
[00:25:15]                 │ debg TestSubjects.click(superDatePickerShowDatesButton)
[00:25:15]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:25:15]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:25:15]                 │ debg TestSubjects.exists(superDatePickerstartDatePopoverButton)
[00:25:15]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=2500
[00:25:15]                 │ debg TestSubjects.click(superDatePickerendDatePopoverButton)
[00:25:15]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:25:15]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:25:15]                 │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:25:15]                 │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:25:15]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:25:15]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:25:15]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:25:15]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:25:15]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:25:15]                 │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Aug 23, 2019 @ 16:18:51.821)
[00:25:15]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:25:15]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:25:15]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:25:16]                 │ debg TestSubjects.click(superDatePickerstartDatePopoverButton)
[00:25:16]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:25:16]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:25:16]                 │ debg Find.waitForElementStale with timeout=10000
[00:25:16]                 │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:25:16]                 │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:25:16]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:25:16]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:25:16]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:25:16]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:25:16]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:25:16]                 │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Apr 27, 2019 @ 23:56:51.374)
[00:25:16]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:25:16]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:25:16]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:25:17]                 │ debg TestSubjects.exists(superDatePickerApplyTimeButton)
[00:25:17]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=2500
[00:25:19]                 │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerApplyTimeButton"] is not displayed
[00:25:20]                 │ debg TestSubjects.click(querySubmitButton)
[00:25:20]                 │ debg Find.clickByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:25:20]                 │ debg Find.findByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:25:20]                 │ debg Find.waitForElementStale with timeout=10000
[00:25:20]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:25:20]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:25:20]                 │ debg TestSubjects.click(discoverSaveButton)
[00:25:20]                 │ debg Find.clickByCssSelector('[data-test-subj="discoverSaveButton"]') with timeout=10000
[00:25:20]                 │ debg Find.findByCssSelector('[data-test-subj="discoverSaveButton"]') with timeout=10000
[00:25:20]                 │ debg Waiting up to 20000ms for saved search title is set to my search - with data - expectReportCanBeCreated and save button is clickable...
[00:25:20]                 │ debg TestSubjects.find(confirmSaveSavedObjectButton)
[00:25:20]                 │ debg Find.findByCssSelector('[data-test-subj="confirmSaveSavedObjectButton"]') with timeout=10000
[00:25:20]                 │ debg TestSubjects.setValue(savedObjectTitle, my search - with data - expectReportCanBeCreated)
[00:25:20]                 │ debg TestSubjects.click(savedObjectTitle)
[00:25:20]                 │ debg Find.clickByCssSelector('[data-test-subj="savedObjectTitle"]') with timeout=10000
[00:25:20]                 │ debg Find.findByCssSelector('[data-test-subj="savedObjectTitle"]') with timeout=10000
[00:25:20]                 │ debg TestSubjects.click(confirmSaveSavedObjectButton)
[00:25:20]                 │ debg Find.clickByCssSelector('[data-test-subj="confirmSaveSavedObjectButton"]') with timeout=10000
[00:25:20]                 │ debg Find.findByCssSelector('[data-test-subj="confirmSaveSavedObjectButton"]') with timeout=10000
[00:25:21]                 │ debg isGlobalLoadingIndicatorVisible
[00:25:21]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:25:21]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:25:21]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:25:21]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:25:23]                 │ debg Waiting up to 20000ms for saved search was persisted with name my search - with data - expectReportCanBeCreated...
[00:25:23]                 │ debg TestSubjects.getVisibleText(headerGlobalNav > breadcrumbs > ~breadcrumb & ~last)
[00:25:23]                 │ debg TestSubjects.find(headerGlobalNav > breadcrumbs > ~breadcrumb & ~last)
[00:25:23]                 │ debg Find.findByCssSelector('[data-test-subj="headerGlobalNav"] [data-test-subj="breadcrumbs"] [data-test-subj~="breadcrumb"][data-test-subj~="last"]') with timeout=10000
[00:25:24]                 │ debg TestSubjects.getVisibleText(headerGlobalNav > breadcrumbs > ~breadcrumb & ~last)
[00:25:24]                 │ debg TestSubjects.find(headerGlobalNav > breadcrumbs > ~breadcrumb & ~last)
[00:25:24]                 │ debg Find.findByCssSelector('[data-test-subj="headerGlobalNav"] [data-test-subj="breadcrumbs"] [data-test-subj~="breadcrumb"][data-test-subj~="last"]') with timeout=10000
[00:25:24]                 │ debg openCsvReportingPanel
[00:25:24]                 │ debg openShareMenuItem title:CSV Reports
[00:25:24]                 │ debg TestSubjects.exists(shareContextMenu)
[00:25:24]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="shareContextMenu"]') with timeout=2500
[00:25:27]                 │ debg --- retry.tryForTime error: [data-test-subj="shareContextMenu"] is not displayed
[00:25:27]                 │ debg TestSubjects.click(shareTopNavButton)
[00:25:27]                 │ debg Find.clickByCssSelector('[data-test-subj="shareTopNavButton"]') with timeout=10000
[00:25:27]                 │ debg Find.findByCssSelector('[data-test-subj="shareTopNavButton"]') with timeout=10000
[00:25:27]                 │ debg Find.findByCssSelector('div.euiContextMenuPanel') with timeout=10000
[00:25:27]                 │ debg TestSubjects.click(sharePanel-CSVReports)
[00:25:27]                 │ debg Find.clickByCssSelector('[data-test-subj="sharePanel-CSVReports"]') with timeout=10000
[00:25:27]                 │ debg Find.findByCssSelector('[data-test-subj="sharePanel-CSVReports"]') with timeout=10000
[00:25:27]                 │ debg Find.waitForElementStale with timeout=10000
[00:25:28]                 │ debg TestSubjects.click(generateReportButton)
[00:25:28]                 │ debg Find.clickByCssSelector('[data-test-subj="generateReportButton"]') with timeout=10000
[00:25:28]                 │ debg Find.findByCssSelector('[data-test-subj="generateReportButton"]') with timeout=10000
[00:25:28]                 │ debg getReportURL
[00:25:28]                 │ debg TestSubjects.getAttribute(downloadCompletedReportButton, href, tryTimeout=120000, findTimeout=60000)
[00:25:28]                 │ debg TestSubjects.find(downloadCompletedReportButton)
[00:25:28]                 │ debg Find.findByCssSelector('[data-test-subj="downloadCompletedReportButton"]') with timeout=60000
[00:25:28]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.reporting-2021-07-04] creating index, cause [api], templates [], shards [1]/[1]
[00:25:28]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.reporting-2021-07-04]
[00:25:28]                 │ info [o.e.x.i.IndexLifecycleTransition] [node-01] moving index [.reporting-2021-07-04] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [kibana-reporting]
[00:25:28]                 │ proc [kibana]   log   [11:16:45.893] [info][createJob][plugins][reporting] Scheduled csv_searchsource reporting task. Task ID: task:a64c8c00-de4b-11eb-9246-01eb24460ba0. Report ID: kqryj2b116mj3e6d0bcqvxry
[00:25:28]                 │ info [o.e.x.i.IndexLifecycleTransition] [node-01] moving index [.reporting-2021-07-04] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"complete","name":"complete"}] in policy [kibana-reporting]
[00:25:30]                 │ proc [kibana]   log   [11:16:47.828] [warning][csv_searchsource][csv_searchsource][execute-job][kqryj2b116mj3e6d0bcqvxry][plugins][reporting][runTask] Max Size Reached after 1 rows.
[00:25:30]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.reporting-2021-07-04/0IG-QFLJTnyTI70pceq5pA] update_mapping [_doc]
[00:25:30]                 │ proc [kibana]   log   [11:16:47.868] [info][plugins][reporting][runTask] Saved csv_searchsource job /.reporting-2021-07-04/_doc/kqryj2b116mj3e6d0bcqvxry
[00:25:31]                 │ debg getReportURL got url: http://localhost:61191/api/reporting/jobs/download/kqryj2b116mj3e6d0bcqvxry
[00:25:31]                 │ debg getResponse for http://localhost:61191/api/reporting/jobs/download/kqryj2b116mj3e6d0bcqvxry
[00:25:31]                 └- ✓ pass  (18.5s) "discover Discover CSV Export Generate CSV: new search generates a report from a new search with data: default"
[00:25:31]               └-> generates a report from a new search with data: discover:searchFieldsFromSource
[00:25:31]                 └-> "before each" hook: global before each for "generates a report from a new search with data: discover:searchFieldsFromSource"
[00:25:31]                 └-> "before each" hook for "generates a report from a new search with data: discover:searchFieldsFromSource"
[00:25:31]                   │ debg resolved import for x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce.json to /dev/shm/workspace/parallel/19/kibana/x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce.json
[00:25:31]                   │ info importing 12 saved objects { space: undefined }
[00:25:31]                   │ succ import success
[00:25:31]                   │ debg navigating to discover url: http://localhost:61191/app/discover#/
[00:25:31]                   │ debg navigate to: http://localhost:61191/app/discover#/
[00:25:32]                   │ debg browser[INFO] http://localhost:61191/app/discover?_t=1625570209612#/ 281 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:25:32]                   │
[00:25:32]                   │ debg browser[INFO] http://localhost:61191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:25:32]                   │ debg ... sleep(700) start
[00:25:32]                   │ debg ... sleep(700) end
[00:25:32]                   │ debg returned from get, calling refresh
[00:25:33]                   │ERROR browser[SEVERE] http://localhost:61191/44197/bundles/core/core.entry.js 12:156199 TypeError: Failed to fetch
[00:25:33]                   │          at fetch_Fetch.fetchResponse (http://localhost:61191/44197/bundles/core/core.entry.js:6:26194)
[00:25:33]                   │          at async http://localhost:61191/44197/bundles/core/core.entry.js:6:24091
[00:25:33]                   │          at async http://localhost:61191/44197/bundles/core/core.entry.js:6:23997
[00:25:33]                   │ debg browser[INFO] http://localhost:61191/app/discover?_t=1625570209612#/ 281 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:25:33]                   │
[00:25:33]                   │ debg browser[INFO] http://localhost:61191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:25:34]                   │ debg currentUrl = http://localhost:61191/app/discover#/
[00:25:34]                   │          appUrl = http://localhost:61191/app/discover#/
[00:25:34]                   │ debg TestSubjects.find(kibanaChrome)
[00:25:34]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:25:34]                   │ debg ... sleep(501) start
[00:25:35]                   │ debg ... sleep(501) end
[00:25:35]                   │ debg in navigateTo url = http://localhost:61191/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:%275193f870-d861-11e9-a311-0fa548c5f953%27,interval:auto,query:(language:kuery,query:%27%27),sort:!(!(order_date,desc)))
[00:25:35]                   │ debg --- retry.tryForTime error: URL changed, waiting for it to settle
[00:25:35]                   │ debg ... sleep(501) start
[00:25:36]                   │ debg ... sleep(501) end
[00:25:36]                   │ debg in navigateTo url = http://localhost:61191/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:%275193f870-d861-11e9-a311-0fa548c5f953%27,interval:auto,query:(language:kuery,query:%27%27),sort:!(!(order_date,desc)))
[00:25:36]                 │ debg applying update to kibana config: {"discover:searchFieldsFromSource":true}
[00:25:37]                 │ debg TestSubjects.click(discoverNewButton)
[00:25:37]                 │ debg Find.clickByCssSelector('[data-test-subj="discoverNewButton"]') with timeout=10000
[00:25:37]                 │ debg Find.findByCssSelector('[data-test-subj="discoverNewButton"]') with timeout=10000
[00:25:37]                 │ debg isGlobalLoadingIndicatorVisible
[00:25:37]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:25:37]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:25:38]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:25:39]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:25:39]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:25:39]                 │ debg Reporting:setTimepickerInDataRange
[00:25:39]                 │ debg Setting absolute range to Apr 27, 2019 @ 23:56:51.374 to Aug 23, 2019 @ 16:18:51.821
[00:25:39]                 │ debg TestSubjects.exists(superDatePickerToggleQuickMenuButton)
[00:25:39]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=20000
[00:25:39]                 │ debg TestSubjects.exists(superDatePickerShowDatesButton)
[00:25:39]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=2500
[00:25:39]                 │ debg TestSubjects.click(superDatePickerShowDatesButton)
[00:25:39]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:25:39]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:25:39]                 │ debg TestSubjects.exists(superDatePickerstartDatePopoverButton)
[00:25:39]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=2500
[00:25:39]                 │ debg TestSubjects.click(superDatePickerendDatePopoverButton)
[00:25:39]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:25:39]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:25:39]                 │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:25:39]                 │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:25:39]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:25:39]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:25:39]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:25:39]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:25:39]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:25:39]                 │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Aug 23, 2019 @ 16:18:51.821)
[00:25:39]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:25:39]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:25:39]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:25:40]                 │ debg TestSubjects.click(superDatePickerstartDatePopoverButton)
[00:25:40]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:25:40]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:25:40]                 │ debg Find.waitForElementStale with timeout=10000
[00:25:40]                 │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:25:40]                 │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:25:40]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:25:40]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:25:40]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:25:40]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:25:40]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:25:40]                 │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Apr 27, 2019 @ 23:56:51.374)
[00:25:40]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:25:40]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:25:40]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:25:41]                 │ debg TestSubjects.exists(superDatePickerApplyTimeButton)
[00:25:41]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=2500
[00:25:43]                 │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerApplyTimeButton"] is not displayed
[00:25:44]                 │ debg TestSubjects.click(querySubmitButton)
[00:25:44]                 │ debg Find.clickByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:25:44]                 │ debg Find.findByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:25:44]                 │ debg Find.waitForElementStale with timeout=10000
[00:25:44]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:25:44]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:25:44]                 │ debg TestSubjects.click(discoverSaveButton)
[00:25:44]                 │ debg Find.clickByCssSelector('[data-test-subj="discoverSaveButton"]') with timeout=10000
[00:25:44]                 │ debg Find.findByCssSelector('[data-test-subj="discoverSaveButton"]') with timeout=10000
[00:25:44]                 │ debg Waiting up to 20000ms for saved search title is set to my search - with fieldsFromSource data - expectReportCanBeCreated and save button is clickable...
[00:25:44]                 │ debg TestSubjects.find(confirmSaveSavedObjectButton)
[00:25:44]                 │ debg Find.findByCssSelector('[data-test-subj="confirmSaveSavedObjectButton"]') with timeout=10000
[00:25:44]                 │ debg TestSubjects.setValue(savedObjectTitle, my search - with fieldsFromSource data - expectReportCanBeCreated)
[00:25:44]                 │ debg TestSubjects.click(savedObjectTitle)
[00:25:44]                 │ debg Find.clickByCssSelector('[data-test-subj="savedObjectTitle"]') with timeout=10000
[00:25:44]                 │ debg Find.findByCssSelector('[data-test-subj="savedObjectTitle"]') with timeout=10000
[00:25:45]                 │ debg TestSubjects.click(confirmSaveSavedObjectButton)
[00:25:45]                 │ debg Find.clickByCssSelector('[data-test-subj="confirmSaveSavedObjectButton"]') with timeout=10000
[00:25:45]                 │ debg Find.findByCssSelector('[data-test-subj="confirmSaveSavedObjectButton"]') with timeout=10000
[00:25:45]                 │ debg isGlobalLoadingIndicatorVisible
[00:25:45]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:25:45]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:25:45]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:25:45]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:25:47]                 │ debg Waiting up to 20000ms for saved search was persisted with name my search - with fieldsFromSource data - expectReportCanBeCreated...
[00:25:47]                 │ debg TestSubjects.getVisibleText(headerGlobalNav > breadcrumbs > ~breadcrumb & ~last)
[00:25:47]                 │ debg TestSubjects.find(headerGlobalNav > breadcrumbs > ~breadcrumb & ~last)
[00:25:47]                 │ debg Find.findByCssSelector('[data-test-subj="headerGlobalNav"] [data-test-subj="breadcrumbs"] [data-test-subj~="breadcrumb"][data-test-subj~="last"]') with timeout=10000
[00:25:48]                 │ debg TestSubjects.getVisibleText(headerGlobalNav > breadcrumbs > ~breadcrumb & ~last)
[00:25:48]                 │ debg TestSubjects.find(headerGlobalNav > breadcrumbs > ~breadcrumb & ~last)
[00:25:48]                 │ debg Find.findByCssSelector('[data-test-subj="headerGlobalNav"] [data-test-subj="breadcrumbs"] [data-test-subj~="breadcrumb"][data-test-subj~="last"]') with timeout=10000
[00:25:48]                 │ debg openCsvReportingPanel
[00:25:48]                 │ debg openShareMenuItem title:CSV Reports
[00:25:48]                 │ debg TestSubjects.exists(shareContextMenu)
[00:25:48]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="shareContextMenu"]') with timeout=2500
[00:25:51]                 │ debg --- retry.tryForTime error: [data-test-subj="shareContextMenu"] is not displayed
[00:25:51]                 │ debg TestSubjects.click(shareTopNavButton)
[00:25:51]                 │ debg Find.clickByCssSelector('[data-test-subj="shareTopNavButton"]') with timeout=10000
[00:25:51]                 │ debg Find.findByCssSelector('[data-test-subj="shareTopNavButton"]') with timeout=10000
[00:25:51]                 │ debg Find.findByCssSelector('div.euiContextMenuPanel') with timeout=10000
[00:25:51]                 │ debg TestSubjects.click(sharePanel-CSVReports)
[00:25:51]                 │ debg Find.clickByCssSelector('[data-test-subj="sharePanel-CSVReports"]') with timeout=10000
[00:25:51]                 │ debg Find.findByCssSelector('[data-test-subj="sharePanel-CSVReports"]') with timeout=10000
[00:25:51]                 │ debg Find.waitForElementStale with timeout=10000
[00:25:51]                 │ debg TestSubjects.click(generateReportButton)
[00:25:51]                 │ debg Find.clickByCssSelector('[data-test-subj="generateReportButton"]') with timeout=10000
[00:25:51]                 │ debg Find.findByCssSelector('[data-test-subj="generateReportButton"]') with timeout=10000
[00:25:52]                 │ debg getReportURL
[00:25:52]                 │ debg TestSubjects.getAttribute(downloadCompletedReportButton, href, tryTimeout=120000, findTimeout=60000)
[00:25:52]                 │ debg TestSubjects.find(downloadCompletedReportButton)
[00:25:52]                 │ debg Find.findByCssSelector('[data-test-subj="downloadCompletedReportButton"]') with timeout=60000
[00:25:52]                 │ proc [kibana]   log   [11:17:09.764] [info][createJob][plugins][reporting] Scheduled csv_searchsource reporting task. Task ID: task:b4872000-de4b-11eb-9246-01eb24460ba0. Report ID: kqryjkry16mj3e6d0bbpfkf8
[00:25:54]                 │ proc [kibana]   log   [11:17:11.928] [warning][csv_searchsource][csv_searchsource][execute-job][kqryjkry16mj3e6d0bbpfkf8][plugins][reporting][runTask] Max Size Reached after 1 rows.
[00:25:54]                 │ proc [kibana]   log   [11:17:11.957] [info][plugins][reporting][runTask] Saved csv_searchsource job /.reporting-2021-07-04/_doc/kqryjkry16mj3e6d0bbpfkf8
[00:25:54]                 │ debg getReportURL got url: http://localhost:61191/api/reporting/jobs/download/kqryjkry16mj3e6d0bbpfkf8
[00:25:54]                 │ debg getResponse for http://localhost:61191/api/reporting/jobs/download/kqryjkry16mj3e6d0bbpfkf8
[00:25:54]                 │ debg applying update to kibana config: {"discover:searchFieldsFromSource":false}
[00:25:55]                 └- ✓ pass  (19.1s) "discover Discover CSV Export Generate CSV: new search generates a report from a new search with data: discover:searchFieldsFromSource"
[00:25:55]               └-> generates a report with no data
[00:25:55]                 └-> "before each" hook: global before each for "generates a report with no data"
[00:25:55]                 └-> "before each" hook for "generates a report with no data"
[00:25:55]                   │ debg resolved import for x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce.json to /dev/shm/workspace/parallel/19/kibana/x-pack/test/functional/fixtures/kbn_archiver/reporting/ecommerce.json
[00:25:55]                   │ info importing 12 saved objects { space: undefined }
[00:25:56]                   │ succ import success
[00:25:56]                   │ debg navigating to discover url: http://localhost:61191/app/discover#/
[00:25:56]                   │ debg navigate to: http://localhost:61191/app/discover#/
[00:25:56]                   │ debg browser[INFO] http://localhost:61191/app/discover?_t=1625570233731#/ 281 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:25:56]                   │
[00:25:56]                   │ debg browser[INFO] http://localhost:61191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:25:56]                   │ debg ... sleep(700) start
[00:25:57]                   │ debg ... sleep(700) end
[00:25:57]                   │ debg returned from get, calling refresh
[00:25:57]                   │ debg browser[INFO] http://localhost:61191/app/discover?_t=1625570233731#/ 281 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:25:57]                   │
[00:25:57]                   │ debg browser[INFO] http://localhost:61191/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:25:58]                   │ debg currentUrl = http://localhost:61191/app/discover#/
[00:25:58]                   │          appUrl = http://localhost:61191/app/discover#/
[00:25:58]                   │ debg TestSubjects.find(kibanaChrome)
[00:25:58]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:25:58]                   │ debg ... sleep(501) start
[00:25:58]                   │ debg ... sleep(501) end
[00:25:58]                   │ debg in navigateTo url = http://localhost:61191/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:%275193f870-d861-11e9-a311-0fa548c5f953%27,interval:auto,query:(language:kuery,query:%27%27),sort:!(!(order_date,desc)))
[00:25:58]                   │ debg --- retry.tryForTime error: URL changed, waiting for it to settle
[00:25:59]                   │ debg ... sleep(501) start
[00:25:59]                   │ debg ... sleep(501) end
[00:25:59]                   │ debg in navigateTo url = http://localhost:61191/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:%275193f870-d861-11e9-a311-0fa548c5f953%27,interval:auto,query:(language:kuery,query:%27%27),sort:!(!(order_date,desc)))
[00:25:59]                 │ debg Reporting:setTimepickerInNoDataRange
[00:25:59]                 │ debg Setting absolute range to Sep 19, 1999 @ 06:31:44.000 to Sep 23, 1999 @ 18:31:44.000
[00:25:59]                 │ debg TestSubjects.exists(superDatePickerToggleQuickMenuButton)
[00:25:59]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=20000
[00:25:59]                 │ debg TestSubjects.exists(superDatePickerShowDatesButton)
[00:25:59]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=2500
[00:26:00]                 │ debg TestSubjects.click(superDatePickerShowDatesButton)
[00:26:00]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:26:00]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:26:00]                 │ debg TestSubjects.exists(superDatePickerstartDatePopoverButton)
[00:26:00]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=2500
[00:26:00]                 │ debg TestSubjects.click(superDatePickerendDatePopoverButton)
[00:26:00]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:26:00]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:26:00]                 │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:26:00]                 │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:26:00]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:26:00]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:26:00]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:26:00]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:26:00]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:26:00]                 │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Sep 23, 1999 @ 18:31:44.000)
[00:26:00]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:26:00]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:26:00]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:26:01]                 │ debg TestSubjects.click(superDatePickerstartDatePopoverButton)
[00:26:01]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:26:01]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:26:01]                 │ debg Find.waitForElementStale with timeout=10000
[00:26:01]                 │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:26:01]                 │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:26:01]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:26:01]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:26:01]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:26:01]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:26:01]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:26:01]                 │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Sep 19, 1999 @ 06:31:44.000)
[00:26:01]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:26:01]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:26:01]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:26:01]                 │ debg TestSubjects.exists(superDatePickerApplyTimeButton)
[00:26:01]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=2500
[00:26:04]                 │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerApplyTimeButton"] is not displayed
[00:26:05]                 │ debg TestSubjects.click(querySubmitButton)
[00:26:05]                 │ debg Find.clickByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:26:05]                 │ debg Find.findByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:26:05]                 │ debg Find.waitForElementStale with timeout=10000
[00:26:05]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:26:05]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:26:05]                 │ debg TestSubjects.click(discoverSaveButton)
[00:26:05]                 │ debg Find.clickByCssSelector('[data-test-subj="discoverSaveButton"]') with timeout=10000
[00:26:05]                 │ debg Find.findByCssSelector('[data-test-subj="discoverSaveButton"]') with timeout=10000
[00:26:05]                 │ debg Waiting up to 20000ms for saved search title is set to my search - no data - expectReportCanBeCreated and save button is clickable...
[00:26:05]                 │ debg TestSubjects.find(confirmSaveSavedObjectButton)
[00:26:05]                 │ debg Find.findByCssSelector('[data-test-subj="confirmSaveSavedObjectButton"]') with timeout=10000
[00:26:05]                 │ debg TestSubjects.setValue(savedObjectTitle, my search - no data - expectReportCanBeCreated)
[00:26:05]                 │ debg TestSubjects.click(savedObjectTitle)
[00:26:05]                 │ debg Find.clickByCssSelector('[data-test-subj="savedObjectTitle"]') with timeout=10000
[00:26:05]                 │ debg Find.findByCssSelector('[data-test-subj="savedObjectTitle"]') with timeout=10000
[00:26:05]                 │ debg TestSubjects.click(confirmSaveSavedObjectButton)
[00:26:05]                 │ debg Find.clickByCssSelector('[data-test-subj="confirmSaveSavedObjectButton"]') with timeout=10000
[00:26:05]                 │ debg Find.findByCssSelector('[data-test-subj="confirmSaveSavedObjectButton"]') with timeout=10000
[00:26:05]                 │ debg isGlobalLoadingIndicatorVisible
[00:26:05]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:26:05]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:26:05]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:26:05]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:26:09]                 │ debg Waiting up to 20000ms for saved search was persisted with name my search - no data - expectReportCanBeCreated...
[00:26:09]                 │ debg TestSubjects.getVisibleText(headerGlobalNav > breadcrumbs > ~breadcrumb & ~last)
[00:26:09]                 │ debg TestSubjects.find(headerGlobalNav > breadcrumbs > ~breadcrumb & ~last)
[00:26:09]                 │ debg Find.findByCssSelector('[data-test-subj="headerGlobalNav"] [data-test-subj="breadcrumbs"] [data-test-subj~="breadcrumb"][data-test-subj~="last"]') with timeout=10000
[00:26:09]                 │ debg openCsvReportingPanel
[00:26:09]                 │ debg openShareMenuItem title:CSV Reports
[00:26:09]                 │ debg TestSubjects.exists(shareContextMenu)
[00:26:09]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="shareContextMenu"]') with timeout=2500
[00:26:11]                 │ debg --- retry.tryForTime error: [data-test-subj="shareContextMenu"] is not displayed
[00:26:12]                 │ debg TestSubjects.click(shareTopNavButton)
[00:26:12]                 │ debg Find.clickByCssSelector('[data-test-subj="shareTopNavButton"]') with timeout=10000
[00:26:12]                 │ debg Find.findByCssSelector('[data-test-subj="shareTopNavButton"]') with timeout=10000
[00:26:12]                 │ debg Find.findByCssSelector('div.euiContextMenuPanel') with timeout=10000
[00:26:12]                 │ debg TestSubjects.click(sharePanel-CSVReports)
[00:26:12]                 │ debg Find.clickByCssSelector('[data-test-subj="sharePanel-CSVReports"]') with timeout=10000
[00:26:12]                 │ debg Find.findByCssSelector('[data-test-subj="sharePanel-CSVReports"]') with timeout=10000
[00:26:12]                 │ debg Find.waitForElementStale with timeout=10000
[00:26:12]                 │ debg TestSubjects.click(generateReportButton)
[00:26:12]                 │ debg Find.clickByCssSelector('[data-test-subj="generateReportButton"]') with timeout=10000
[00:26:12]                 │ debg Find.findByCssSelector('[data-test-subj="generateReportButton"]') with timeout=10000
[00:26:12]                 │ debg getReportURL
[00:26:12]                 │ debg TestSubjects.getAttribute(downloadCompletedReportButton, href, tryTimeout=120000, findTimeout=60000)
[00:26:12]                 │ debg TestSubjects.find(downloadCompletedReportButton)
[00:26:12]                 │ debg Find.findByCssSelector('[data-test-subj="downloadCompletedReportButton"]') with timeout=60000
[00:26:13]                 │ proc [kibana]   log   [11:17:30.656] [info][createJob][plugins][reporting] Scheduled csv_searchsource reporting task. Task ID: task:c0fad6b0-de4b-11eb-9246-01eb24460ba0. Report ID: kqryk0wc16mj3e6d0b9ya4jb
[00:26:15]                 │ proc [kibana]   log   [11:17:32.840] [warning][csv_searchsource][csv_searchsource][execute-job][kqryk0wc16mj3e6d0b9ya4jb][plugins][reporting][runTask] Max Size Reached after 1 rows.
[00:26:15]                 │ proc [kibana]   log   [11:17:32.867] [info][plugins][reporting][runTask] Saved csv_searchsource job /.reporting-2021-07-04/_doc/kqryk0wc16mj3e6d0b9ya4jb
[00:26:18]                 │ debg getReportURL got url: http://localhost:61191/api/reporting/jobs/download/kqryk0wc16mj3e6d0b9ya4jb
[00:26:18]                 │ debg getResponse for http://localhost:61191/api/reporting/jobs/download/kqryk0wc16mj3e6d0b9ya4jb
[00:26:18]                 │ info Taking screenshot "/dev/shm/workspace/parallel/19/kibana/x-pack/test/functional/screenshots/failure/discover Discover CSV Export Generate CSV_ new search generates a report with no data.png"
[00:26:18]                 │ info Current URL is: http://localhost:61191/app/discover#/view/bcc5b880-de4b-11eb-9246-01eb24460ba0?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:%271999-09-19T06:31:44.000Z%27,to:%272021-07-06T11:17:18.083Z%27))&_a=(columns:!(),filters:!(),index:%275193f870-d861-11e9-a311-0fa548c5f953%27,interval:auto,query:(language:kuery,query:%27%27),sort:!(!(order_date,desc)))
[00:26:18]                 │ info Saving page source to: /dev/shm/workspace/parallel/19/kibana/x-pack/test/functional/failure_debug/html/discover Discover CSV Export Generate CSV_ new search generates a report with no data.html
[00:26:18]                 └- ✖ fail: discover Discover CSV Export Generate CSV: new search generates a report with no data
[00:26:18]                 │      Error: expect(received).toMatchInlineSnapshot(snapshot)
[00:26:18]                 │ 
[00:26:18]                 │ Snapshot name: `discover Discover CSV Export Generate CSV: new search generates a report with no data 1`
[00:26:18]                 │ 
[00:26:18]                 │ - Snapshot  - 1
[00:26:18]                 │ + Received  + 8
[00:26:18]                 │ 
[00:26:18]                 │ -
[00:26:18]                 │ + "_id","_index","_score","_type",category,"category.keyword",currency,"customer_first_name","customer_first_name.keyword","customer_full_name","customer_full_name.keyword","customer_gender","customer_id","customer_last_name","customer_last_name.keyword","customer_phone","day_of_week","day_of_week_i",email,"geoip.city_name","geoip.continent_name","geoip.country_iso_code","geoip.location","geoip.region_name",manufacturer,"manufacturer.keyword","order_date","order_id","products._id","products._id.keyword","products.base_price","products.base_unit_price","products.category","products.category.keyword","products.created_on","products.discount_amount","products.discount_percentage","products.manufacturer","products.manufacturer.keyword","products.min_price","products.price","products.product_id","products.product_name","products.product_name.keyword","products.quantity","products.sku","products.tax_amount","products.taxful_price","products.taxless_price","products.unit_discount_amount",sku,"taxful_total_price","taxless_total_price","total_quantity","total_unique_products",type,user
[00:26:18]                 │ + 3AMtOW0BH63Xcmy432DJ,ecommerce,"-","-","Men's Shoes, Men's Clothing, Women's Accessories, Men's Accessories","Men's Shoes, Men's Clothing, Women's Accessories, Men's Accessories",EUR,"Sultan Al","Sultan Al","Sultan Al Boone","Sultan Al Boone",MALE,19,Boone,Boone,"(empty)",Saturday,5,"sultan al@boone-family.zzz","Abu Dhabi",Asia,AE,"{
[00:26:18]                 │ +   ""coordinates"": [
[00:26:18]                 │ +     54.4,
[00:26:18]                 │ +     24.5
[00:26:18]                 │ +   ],
[00:26:18]                 │ +   ""type"": ""Point""
[00:26:18]                 │ + }","Abu Dhabi","Angeldale, Oceanavigations, Microlutions","Angeldale, Oceanavigations, Microlutions","Jul 12, 2019 @ 00:00:00.000",716724,"sold_product_716724_23975, sold_product_716724_6338, sold_product_716724_14116, sold_product_716724_15290","sold_product_716724_23975, sold_product_716724_6338, sold_product_716724_14116, sold_product_716724_15290","80, 60, 21.984, 11.992","80, 60, 21.984, 11.992","Men's Shoes, Men's Clothing, Women's Accessories, Men's Accessories","Men's Shoes, Men's Clothing, Women's Accessories, Men's Accessories","Dec 31, 2016 @ 00:00:00.000, Dec 31, 2016 @ 00:00:00.000, Dec 31, 2016 @ 00:00:00.000, Dec 31, 2016 @ 00:00:00.000","0, 0, 0, 0","0, 0, 0, 0","Angeldale, Oceanavigations, Microlutions, Oceanavigations","Angeldale, Oceanavigations, Microlutions, Oceanavigations","42.375, 33, 10.344, 6.109","80, 60, 21.984, 11.992","23,975, 6,338, 14,116, 15,290","Winter boots - cognac, Trenchcoat - black, Watch - black, Hat - light grey multicolor","Winter boots - cognac, Trenchcoat - black, Watch - black, Hat - light grey multicolor","1, 1, 1, 1","ZO0687606876, ZO0290502905, ZO0126701267, ZO0308503085","0, 0, 0, 0","80, 60, 21.984, 11.992","80, 60, 21.984, 11.992","0, 0, 0, 0","ZO0687606876, ZO0290502905, ZO0126701267, ZO0308503085",174,174,4,4,order,sultan
[00:26:18]                 │   ↵
[00:26:18]                 │       at Context.<anonymous> (test/functional/apps/discover/reporting.ts:127:34)
[00:26:18]                 │       at Object.apply (/dev/shm/workspace/parallel/19/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:26:18]                 │ 
[00:26:18]                 │ 

Stack Trace

Error: expect(received).toMatchInlineSnapshot(snapshot)

Snapshot name: `discover Discover CSV Export Generate CSV: new search generates a report with no data 1`

- Snapshot  - 1
+ Received  + 8

-
+ "_id","_index","_score","_type",category,"category.keyword",currency,"customer_first_name","customer_first_name.keyword","customer_full_name","customer_full_name.keyword","customer_gender","customer_id","customer_last_name","customer_last_name.keyword","customer_phone","day_of_week","day_of_week_i",email,"geoip.city_name","geoip.continent_name","geoip.country_iso_code","geoip.location","geoip.region_name",manufacturer,"manufacturer.keyword","order_date","order_id","products._id","products._id.keyword","products.base_price","products.base_unit_price","products.category","products.category.keyword","products.created_on","products.discount_amount","products.discount_percentage","products.manufacturer","products.manufacturer.keyword","products.min_price","products.price","products.product_id","products.product_name","products.product_name.keyword","products.quantity","products.sku","products.tax_amount","products.taxful_price","products.taxless_price","products.unit_discount_amount",sku,"taxful_total_price","taxless_total_price","total_quantity","total_unique_products",type,user
+ 3AMtOW0BH63Xcmy432DJ,ecommerce,"-","-","Men's Shoes, Men's Clothing, Women's Accessories, Men's Accessories","Men's Shoes, Men's Clothing, Women's Accessories, Men's Accessories",EUR,"Sultan Al","Sultan Al","Sultan Al Boone","Sultan Al Boone",MALE,19,Boone,Boone,"(empty)",Saturday,5,"sultan al@boone-family.zzz","Abu Dhabi",Asia,AE,"{
+   ""coordinates"": [
+     54.4,
+     24.5
+   ],
+   ""type"": ""Point""
+ }","Abu Dhabi","Angeldale, Oceanavigations, Microlutions","Angeldale, Oceanavigations, Microlutions","Jul 12, 2019 @ 00:00:00.000",716724,"sold_product_716724_23975, sold_product_716724_6338, sold_product_716724_14116, sold_product_716724_15290","sold_product_716724_23975, sold_product_716724_6338, sold_product_716724_14116, sold_product_716724_15290","80, 60, 21.984, 11.992","80, 60, 21.984, 11.992","Men's Shoes, Men's Clothing, Women's Accessories, Men's Accessories","Men's Shoes, Men's Clothing, Women's Accessories, Men's Accessories","Dec 31, 2016 @ 00:00:00.000, Dec 31, 2016 @ 00:00:00.000, Dec 31, 2016 @ 00:00:00.000, Dec 31, 2016 @ 00:00:00.000","0, 0, 0, 0","0, 0, 0, 0","Angeldale, Oceanavigations, Microlutions, Oceanavigations","Angeldale, Oceanavigations, Microlutions, Oceanavigations","42.375, 33, 10.344, 6.109","80, 60, 21.984, 11.992","23,975, 6,338, 14,116, 15,290","Winter boots - cognac, Trenchcoat - black, Watch - black, Hat - light grey multicolor","Winter boots - cognac, Trenchcoat - black, Watch - black, Hat - light grey multicolor","1, 1, 1, 1","ZO0687606876, ZO0290502905, ZO0126701267, ZO0308503085","0, 0, 0, 0","80, 60, 21.984, 11.992","80, 60, 21.984, 11.992","0, 0, 0, 0","ZO0687606876, ZO0290502905, ZO0126701267, ZO0308503085",174,174,4,4,order,sultan
  ↵
    at Context.<anonymous> (test/functional/apps/discover/reporting.ts:127:34)
    at Object.apply (/dev/shm/workspace/parallel/19/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
userSetup - 5 +5

Page load bundle

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

id before after diff
userSetup - 3.4KB +3.4KB

History

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

cc @azasypkin

@azasypkin azasypkin merged commit 2d48f7f into elastic:master Jul 6, 2021
@azasypkin azasypkin deleted the issue-xxx-setup-plugin branch July 6, 2021 12:41
@jportner
Copy link
Contributor

jportner commented Jul 6, 2021

I missed the chance to mention before this got merged, but you can add it to your next PR.

We should add the user_setup plugin to our ESLint overrides:

kibana/.eslintrc.js

Lines 1563 to 1573 in ca42cf9

/**
* Platform Security Team overrides
*/
{
files: [
'src/plugins/security_oss/**/*.{js,mjs,ts,tsx}',
'src/plugins/spaces_oss/**/*.{js,mjs,ts,tsx}',
'x-pack/plugins/encrypted_saved_objects/**/*.{js,mjs,ts,tsx}',
'x-pack/plugins/security/**/*.{js,mjs,ts,tsx}',
'x-pack/plugins/spaces/**/*.{js,mjs,ts,tsx}',
],

@azasypkin
Copy link
Member Author

I missed the chance to mention before this got merged, but you can add it to your next PR.

Good catch, thanks.

@azasypkin
Copy link
Member Author

We should add the user_setup plugin to our ESLint overrides:

Done!

'src/plugins/interactive_setup/**/*.{js,mjs,ts,tsx}',

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants