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

Serve static assets from NP #60490

Merged
merged 24 commits into from
Mar 27, 2020

Conversation

mshustov
Copy link
Contributor

@mshustov mshustov commented Mar 18, 2020

Summary

Part of #50654
Changes:

  • moved src/legacy/ui/public/assets --> src/core/server/core_app/assets/
  • NP serves Kibana static assets from NP src/core/server/core_app/assets/
  • NP serves platform static assets from /public/assets folder

Checklist

For maintainers

Dev docs

Kibana platform serves plugin static assets from the my_plugin/public/assets folder. No additional configuration is required.

@mshustov mshustov added Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc Feature:New Platform release_note:plugin_api_changes Contains a Plugin API changes section for the breaking plugin API changes section. v8.0.0 v7.8.0 labels Mar 18, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-platform (Team:Platform)

@@ -217,6 +218,7 @@ export class PluginsService implements CoreService<PluginsServiceSetup, PluginsS
if (plugin.includesUiPlugin) {
this.uiPluginInternalInfo.set(plugin.name, {
publicTargetDir: Path.resolve(plugin.path, 'target/public'),
publicAssetsDir: Path.resolve(plugin.path, 'public/assets'),
Copy link
Contributor Author

@mshustov mshustov Mar 18, 2020

Choose a reason for hiding this comment

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

@@ -52,7 +52,7 @@ export default function(kibana: any) {
namespace,
});
return { success: true };
},
}) as Hapi.Lifecycle.Method,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hapi doesn't allow to define a type for request payload DefinitelyTyped/DefinitelyTyped#25605

Copy link
Contributor

Choose a reason for hiding this comment

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

I did not see hapi package upgrade in package.json. Why was these Hapi.Lifecycle.Method additions needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no idea to be honest, I suspect adding h2o2 & inert types affects hapi somehow, since they both extend hapi interfaces.

protocol: request.server.info.protocol,
pathname: `${this.httpConfig.basePath}/${request.params.kbnPath}`,
query: request.query,
mapUri: (request: Request) =>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed type errors

/**
* Path to the plugin assets directory.
*/
readonly publicAssetsDir: string;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think we want to server build artifacts from the /assets folder, so I separated them.

@mshustov mshustov mentioned this pull request Mar 18, 2020
4 tasks
@mshustov mshustov marked this pull request as ready for review March 18, 2020 17:09
@mshustov mshustov requested review from a team as code owners March 18, 2020 17:09
@mshustov mshustov requested a review from spalger March 18, 2020 17:09
Copy link
Contributor

@mikecote mikecote left a comment

Choose a reason for hiding this comment

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

Alerting changes LGTM

Copy link
Contributor

@pgayvallet pgayvallet left a comment

Choose a reason for hiding this comment

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

A few questions, overall looking good to me in current state.

@@ -49,4 +53,12 @@ export class CoreApp {
res.ok({ body: { version: '0.0.1' } })
);
}
private registerStaticDirs(coreSetup: InternalCoreSetup) {
coreSetup.http.registerStaticDir('/ui/{path*}', Path.resolve(__dirname, './assets'));
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we should expose this API directly to the plugins. Otherwise, any plugin can expose an arbitrary folder (config folder with kibana.yml, for example)

We could have an API to only allow to serve from within the plugin's base folder. That would avoid the risk of exposing files from outside their folder.

i.e

// src/core/plugins/my_plugin/server/plugin.ts
coreSetup.http.registerStaticDir('/my-plugin-data/{path*}', 'my_assets_folder');

that would serve the src/core/plugins/my_plugin/my_assets_folder (or maybe src/core/plugins/my_plugin/server/my_assets_folder, need to decide)

I know this PR doesn't yet expose this to plugins directly, but I wonder if there's really any value into allowing/requiring plugins to add the {path*}

I agree, that doesn't seems necessary imho

Previous proposal example should probably be

coreSetup.http.registerStaticDir('/my-plugin-data', 'my_assets_folder');

I think that if there is a real use case to only serving files of a certain directory depth, this should be exposed more explicitly via an option to registerStaticDir

Don't really see any obvious need for that. KISS imho.

Comment on lines +59 to +62
coreSetup.http.registerStaticDir(
'/node_modules/@kbn/ui-framework/dist/{path*}',
fromRoot('node_modules/@kbn/ui-framework/dist')
);
Copy link
Contributor

Choose a reason for hiding this comment

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

Wow. We sure were doing fun things.

src/core/server/http/http_server.ts Show resolved Hide resolved
Comment on lines +264 to +267
deps.http.registerStaticDir(
`/plugins/${pluginName}/assets/{path*}`,
pluginInfo.publicAssetsDir
);
Copy link
Contributor

Choose a reason for hiding this comment

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

Is that a temporary measure to allow plugins to move their static assets to NP plugins until #50654 lands? Didn't we want to make all assets exposition explicit? Or is this going to be permanent to allow client-only plugins to expose assets?

@@ -52,7 +52,7 @@ export default function(kibana: any) {
namespace,
});
return { success: true };
},
}) as Hapi.Lifecycle.Method,
Copy link
Contributor

Choose a reason for hiding this comment

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

I did not see hapi package upgrade in package.json. Why was these Hapi.Lifecycle.Method additions needed?

@mshustov mshustov requested a review from spalger March 20, 2020 10:12
@@ -33,7 +33,7 @@ export default function createActionTests({ getService }: FtrProviderContext) {
},
});

expect(response.statusCode).to.eql(200);
expect(response.status).to.eql(200);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

That should be in a separate PR, but I don't want to spend more time on it.

@mshustov mshustov requested a review from a team as a code owner March 24, 2020 09:40
Copy link
Contributor

@poffdeluxe poffdeluxe left a comment

Choose a reason for hiding this comment

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

Canvas changes lgtm

Copy link
Contributor

@spalger spalger left a comment

Choose a reason for hiding this comment

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

Operations: LGTM

Copy link
Member

@spong spong left a comment

Choose a reason for hiding this comment

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

SIEM changes LGTM! 👍

@@ -49,4 +53,12 @@ export class CoreApp {
res.ok({ body: { version: '0.0.1' } })
);
}
private registerStaticDirs(coreSetup: InternalCoreSetup) {
coreSetup.http.registerStaticDir('/ui/{path*}', Path.resolve(__dirname, './assets'));
Copy link
Contributor

Choose a reason for hiding this comment

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

If we don't need to expose to plugins, then as-is is good with me 👍

@mshustov mshustov merged commit ab39ceb into elastic:master Mar 27, 2020
@mshustov mshustov deleted the issue-50654-http-resources-service branch March 27, 2020 13:24
mshustov added a commit to mshustov/kibana that referenced this pull request Mar 27, 2020
* add hapi.inert plugin to NP

* update tests

* move serving static assets

* update tests

* add functional tests

* fix type errors. Hapi.Request doesn't support typings for payload

* update docs

* remove comment

* move assets to NP

* update all assets references

* address Spencer's comments

* move ui settings migration to migration examples

* document legacy plugin spec

* move platform assets test to integration_tests

* address Spencer's comment p.2

* try to fix type errors

* fix merge commit

* update tests
mshustov added a commit that referenced this pull request Mar 27, 2020
* add hapi.inert plugin to NP

* update tests

* move serving static assets

* update tests

* add functional tests

* fix type errors. Hapi.Request doesn't support typings for payload

* update docs

* remove comment

* move assets to NP

* update all assets references

* address Spencer's comments

* move ui settings migration to migration examples

* document legacy plugin spec

* move platform assets test to integration_tests

* address Spencer's comment p.2

* try to fix type errors

* fix merge commit

* update tests
@kibanamachine
Copy link
Contributor

💔 Build Failed

Failed CI Steps


Test Failures

Kibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/dashboard_mode/dashboard_view_mode·js.dashboard mode Dashboard View Mode "before all" hook: initialize tests in "Dashboard View Mode"

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:01:54]         └-: dashboard mode
[00:01:54]           └-> "before all" hook
[00:01:54]           └-: Dashboard View Mode
[00:01:54]             └-> "before all" hook
[00:01:54]             └-> "before all" hook: initialize tests
[00:01:54]               │ debg Dashboard View Mode:initTests
[00:01:54]               │ info [logstash_functional] Loading "mappings.json"
[00:01:54]               │ info [logstash_functional] Loading "data.json.gz"
[00:01:54]               │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.22"
[00:01:54]               │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.20"
[00:01:54]               │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.21"
[00:01:55]               │ info [dashboard_view_mode] Loading "mappings.json"
[00:01:55]               │ info [dashboard_view_mode] Loading "data.json.gz"
[00:01:55]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana_2/s5mR2YWAT0OSlTk8V8cOKA] deleting index
[00:01:55]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana_1/GNFS3n1RTYePqDYJide0Vg] deleting index
[00:01:55]               │ info [dashboard_view_mode] Deleted existing index [".kibana_2",".kibana_1"]
[00:01:55]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] applying create index request using v1 templates []
[00:01:55]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:01:55]               │ info [dashboard_view_mode] Created index ".kibana"
[00:01:55]               │ debg [dashboard_view_mode] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:01:55]               │ info [dashboard_view_mode] Indexed 9 docs into ".kibana"
[00:01:55]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana/E0IWAvtEQBWtI-hcF2sC3w] update_mapping [_doc]
[00:01:55]               │ debg Migrating saved objects
[00:01:55]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana/E0IWAvtEQBWtI-hcF2sC3w] update_mapping [_doc]
[00:01:56]               │ proc [kibana]   log   [14:53:10.963] [info][savedobjects-service] Creating index .kibana_2.
[00:01:56]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] applying create index request using v1 templates []
[00:01:56]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:01:56]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] updating number_of_replicas to [0] for indices [.kibana_2]
[00:01:56]               │ proc [kibana]   log   [14:53:11.077] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:01:56]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] applying create index request using v1 templates []
[00:01:56]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:01:56]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] updating number_of_replicas to [0] for indices [.kibana_1]
[00:01:56]               │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] 4531 finished with response BulkByScrollResponse[took=55.3ms,timed_out=false,sliceId=null,updated=0,created=10,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:01:57]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana/E0IWAvtEQBWtI-hcF2sC3w] deleting index
[00:01:57]               │ proc [kibana]   log   [14:53:11.486] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:01:57]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana_2/C2zP78T4RISE8eivNlr_oQ] update_mapping [_doc]
[00:01:57]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana_2/C2zP78T4RISE8eivNlr_oQ] update_mapping [_doc]
[00:01:57]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana_2/C2zP78T4RISE8eivNlr_oQ] update_mapping [_doc]
[00:01:57]               │ proc [kibana]   log   [14:53:11.696] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:01:57]               │ proc [kibana]   log   [14:53:11.765] [info][savedobjects-service] Finished in 804ms.
[00:01:57]               │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:01:57]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana_2/C2zP78T4RISE8eivNlr_oQ] update_mapping [_doc]
[00:01:57]               │ debg replacing kibana config doc: {"defaultIndex":"logstash-*"}
[00:01:57]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana_2/C2zP78T4RISE8eivNlr_oQ] update_mapping [_doc]
[00:01:58]               │ debg navigating to discover url: http://localhost:6171/app/kibana#/discover
[00:01:58]               │ debg Navigate to: http://localhost:6171/app/kibana#/discover
[00:01:59]               │ debg ... sleep(700) start
[00:01:59]               │ debg browser[INFO] http://localhost:6171/app/kibana?_t=1587048793190#/discover 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:01:59]               │
[00:01:59]               │ debg browser[INFO] http://localhost:6171/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:59]               │ debg ... sleep(700) end
[00:01:59]               │ debg returned from get, calling refresh
[00:02:00]               │ debg browser[INFO] http://localhost:6171/app/kibana?_t=1587048793190#/discover 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:02:00]               │
[00:02:00]               │ debg browser[INFO] http://localhost:6171/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:00]               │ debg currentUrl = http://localhost:6171/app/kibana#/discover
[00:02:00]               │          appUrl = http://localhost:6171/app/kibana#/discover
[00:02:00]               │ debg TestSubjects.find(kibanaChrome)
[00:02:00]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:02:08]               │ debg TestSubjects.find(kibanaChrome)
[00:02:08]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=10000
[00:02:08]               │ debg browser[INFO] http://localhost:6171/bundles/plugin/data/data.plugin.js 96:139970 "INFO: 2020-04-16T14:53:21Z
[00:02:08]               │        Adding connection to http://localhost:6171/elasticsearch
[00:02:08]               │
[00:02:08]               │      "
[00:02:08]               │ debg ... sleep(501) start
[00:02:09]               │ debg ... sleep(501) end
[00:02:09]               │ debg in navigateTo url = http://localhost:6171/app/kibana#/discover
[00:02:09]               │ debg TestSubjects.exists(statusPageContainer)
[00:02:09]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:02:11]               │ERROR browser[SEVERE] http://localhost:6171/internal/search/es - Failed to load resource: the server responded with a status of 400 (Bad Request)
[00:02:11]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:02:12]               │ debg Setting absolute range to Sep 19, 2015 @ 06:31:44.000 to Sep 23, 2015 @ 18:31:44.000
[00:02:12]               │ debg TestSubjects.exists(superDatePickerToggleQuickMenuButton)
[00:02:12]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=20000
[00:02:12]               │ debg TestSubjects.exists(superDatePickerShowDatesButton)
[00:02:12]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=2500
[00:02:12]               │ debg TestSubjects.click(superDatePickerShowDatesButton)
[00:02:12]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:02:12]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:02:12]               │ debg TestSubjects.exists(superDatePickerstartDatePopoverButton)
[00:02:12]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=2500
[00:02:12]               │ debg TestSubjects.click(superDatePickerendDatePopoverButton)
[00:02:12]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:02:12]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:02:12]               │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:02:12]               │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:02:12]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:02:12]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:02:12]               │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:02:12]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:02:12]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:02:12]               │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Sep 23, 2015 @ 18:31:44.000)
[00:02:12]               │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:02:12]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:02:12]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:02:13]               │ debg ... sleep(500) start
[00:02:13]               │ debg ... sleep(500) end
[00:02:13]               │ debg TestSubjects.click(superDatePickerstartDatePopoverButton)
[00:02:13]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:02:13]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:02:13]               │ debg Find.waitForElementStale with timeout=10000
[00:02:14]               │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:02:14]               │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:02:14]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:02:14]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:02:14]               │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:02:14]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:02:14]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:02:14]               │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Sep 19, 2015 @ 06:31:44.000)
[00:02:14]               │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:02:14]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:02:14]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:02:14]               │ debg TestSubjects.exists(superDatePickerApplyTimeButton)
[00:02:14]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=2500
[00:02:17]               │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerApplyTimeButton"] is not displayed
[00:02:17]               │ debg TestSubjects.click(querySubmitButton)
[00:02:17]               │ debg Find.clickByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:02:17]               │ debg Find.findByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:02:18]               │ debg Find.waitForElementStale with timeout=10000
[00:02:18]               │ERROR browser[SEVERE] http://localhost:6171/internal/search/es - Failed to load resource: the server responded with a status of 400 (Bad Request)
[00:02:18]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:02:18]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:02:18]               │ debg saveSearch
[00:02:18]               │ debg TestSubjects.click(discoverSaveButton)
[00:02:18]               │ debg Find.clickByCssSelector('[data-test-subj="discoverSaveButton"]') with timeout=10000
[00:02:18]               │ debg Find.findByCssSelector('[data-test-subj="discoverSaveButton"]') with timeout=10000
[00:02:18]               │ debg TestSubjects.setValue(savedObjectTitle, Saved search for dashboard)
[00:02:18]               │ debg TestSubjects.click(savedObjectTitle)
[00:02:18]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjectTitle"]') with timeout=10000
[00:02:18]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectTitle"]') with timeout=10000
[00:02:18]               │ debg TestSubjects.click(confirmSaveSavedObjectButton)
[00:02:18]               │ debg Find.clickByCssSelector('[data-test-subj="confirmSaveSavedObjectButton"]') with timeout=10000
[00:02:18]               │ debg Find.findByCssSelector('[data-test-subj="confirmSaveSavedObjectButton"]') with timeout=10000
[00:02:18]               │ debg isGlobalLoadingIndicatorVisible
[00:02:18]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:02:18]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:02:18]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:02:18]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:02:19]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana_2/C2zP78T4RISE8eivNlr_oQ] update_mapping [_doc]
[00:02:20]               │ debg TestSubjects.getVisibleText(headerGlobalNav > breadcrumbs > ~breadcrumb & ~last)
[00:02:20]               │ debg TestSubjects.find(headerGlobalNav > breadcrumbs > ~breadcrumb & ~last)
[00:02:20]               │ debg Find.findByCssSelector('[data-test-subj="headerGlobalNav"] [data-test-subj="breadcrumbs"] [data-test-subj~="breadcrumb"][data-test-subj~="last"]') with timeout=10000
[00:02:20]               │ debg --- retry.try error: expected 'Discover' to equal 'Saved search for dashboard'
[00:02:20]               │ debg TestSubjects.getVisibleText(headerGlobalNav > breadcrumbs > ~breadcrumb & ~last)
[00:02:20]               │ debg TestSubjects.find(headerGlobalNav > breadcrumbs > ~breadcrumb & ~last)
[00:02:20]               │ debg Find.findByCssSelector('[data-test-subj="headerGlobalNav"] [data-test-subj="breadcrumbs"] [data-test-subj~="breadcrumb"][data-test-subj~="last"]') with timeout=10000
[00:02:20]               │ debg navigating to dashboard url: http://localhost:6171/app/kibana#/dashboards
[00:02:20]               │ debg Navigate to: http://localhost:6171/app/kibana#/dashboards
[00:02:20]               │ debg ... sleep(700) start
[00:02:20]               │ERROR browser[SEVERE] http://localhost:6171/internal/search/es - Failed to load resource: the server responded with a status of 400 (Bad Request)
[00:02:20]               │ debg browser[INFO] http://localhost:6171/app/kibana?_t=1587048814832#/dashboards 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:02:20]               │
[00:02:20]               │ debg browser[INFO] http://localhost:6171/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:21]               │ debg ... sleep(700) end
[00:02:21]               │ debg returned from get, calling refresh
[00:02:21]               │ debg browser[INFO] http://localhost:6171/app/kibana?_t=1587048814832#/dashboards 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:02:21]               │
[00:02:21]               │ debg browser[INFO] http://localhost:6171/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:22]               │ debg currentUrl = http://localhost:6171/app/kibana#/dashboards
[00:02:22]               │          appUrl = http://localhost:6171/app/kibana#/dashboards
[00:02:22]               │ debg TestSubjects.find(kibanaChrome)
[00:02:22]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:02:26]               │ debg TestSubjects.find(kibanaChrome)
[00:02:26]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=10000
[00:02:26]               │ debg browser[INFO] http://localhost:6171/bundles/plugin/data/data.plugin.js 96:139970 "INFO: 2020-04-16T14:53:39Z
[00:02:26]               │        Adding connection to http://localhost:6171/elasticsearch
[00:02:26]               │
[00:02:26]               │      "
[00:02:26]               │ debg ... sleep(501) start
[00:02:27]               │ debg ... sleep(501) end
[00:02:27]               │ debg in navigateTo url = http://localhost:6171/app/kibana#/dashboards?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))
[00:02:27]               │ debg --- retry.try error: URL changed, waiting for it to settle
[00:02:27]               │ debg ... sleep(501) start
[00:02:28]               │ debg ... sleep(501) end
[00:02:28]               │ debg in navigateTo url = http://localhost:6171/app/kibana#/dashboards?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))
[00:02:28]               │ debg TestSubjects.exists(statusPageContainer)
[00:02:28]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:02:30]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:02:31]               │ debg TestSubjects.exists(newItemButton)
[00:02:31]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="newItemButton"]') with timeout=2500
[00:02:34]               │ debg --- retry.tryForTime error: [data-test-subj="newItemButton"] is not displayed
[00:02:34]               │ debg TestSubjects.click(createDashboardPromptButton)
[00:02:34]               │ debg Find.clickByCssSelector('[data-test-subj="createDashboardPromptButton"]') with timeout=10000
[00:02:34]               │ debg Find.findByCssSelector('[data-test-subj="createDashboardPromptButton"]') with timeout=10000
[00:02:34]               │ debg DashboardAddPanel.addVisualizations
[00:02:34]               │ debg DashboardAddPanel.addEmbeddable, name: Visualization PieChart, type: visualization
[00:02:34]               │ debg DashboardAddPanel.ensureAddPanelIsShowing
[00:02:34]               │ debg DashboardAddPanel.isAddPanelOpen
[00:02:34]               │ debg TestSubjects.exists(dashboardAddPanel)
[00:02:34]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardAddPanel"]') with timeout=2500
[00:02:37]               │ debg --- retry.tryForTime error: [data-test-subj="dashboardAddPanel"] is not displayed
[00:02:38]               │ debg DashboardAddPanel.clickOpenAddPanel
[00:02:38]               │ debg TestSubjects.click(dashboardAddPanelButton)
[00:02:38]               │ debg Find.clickByCssSelector('[data-test-subj="dashboardAddPanelButton"]') with timeout=10000
[00:02:38]               │ debg Find.findByCssSelector('[data-test-subj="dashboardAddPanelButton"]') with timeout=10000
[00:02:38]               │ debg ... sleep(500) start
[00:02:38]               │ debg ... sleep(500) end
[00:02:38]               │ debg DashboardAddPanel.isAddPanelOpen
[00:02:38]               │ debg TestSubjects.exists(dashboardAddPanel)
[00:02:38]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardAddPanel"]') with timeout=2500
[00:02:38]               │ debg DashboardAddPanel.addToFilter(visualization)
[00:02:38]               │ debg Find.waitForDeletedByCssSelector('[data-test-subj="savedObjectFinderLoadingIndicator"]') with timeout=10000
[00:02:39]               │ debg DashboardAddPanel.toggleFilter
[00:02:39]               │ debg TestSubjects.click(savedObjectFinderFilterButton)
[00:02:39]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjectFinderFilterButton"]') with timeout=10000
[00:02:39]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectFinderFilterButton"]') with timeout=10000
[00:02:39]               │ debg TestSubjects.click(savedObjectFinderFilter-visualization)
[00:02:39]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjectFinderFilter-visualization"]') with timeout=10000
[00:02:39]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectFinderFilter-visualization"]') with timeout=10000
[00:02:39]               │ debg DashboardAddPanel.toggleFilter
[00:02:39]               │ debg TestSubjects.click(savedObjectFinderFilterButton)
[00:02:39]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjectFinderFilterButton"]') with timeout=10000
[00:02:39]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectFinderFilterButton"]') with timeout=10000
[00:02:39]               │ debg Find.waitForDeletedByCssSelector('[data-test-subj="savedObjectFinderLoadingIndicator"]') with timeout=10000
[00:02:40]               │ debg TestSubjects.setValue(savedObjectFinderSearchInput, "Visualization PieChart")
[00:02:40]               │ debg TestSubjects.click(savedObjectFinderSearchInput)
[00:02:40]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjectFinderSearchInput"]') with timeout=10000
[00:02:40]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectFinderSearchInput"]') with timeout=10000
[00:02:40]               │ debg Find.waitForDeletedByCssSelector('[data-test-subj="savedObjectFinderLoadingIndicator"]') with timeout=10000
[00:02:40]               │ debg TestSubjects.click(savedObjectTitleVisualization-PieChart)
[00:02:40]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjectTitleVisualization-PieChart"]') with timeout=10000
[00:02:40]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectTitleVisualization-PieChart"]') with timeout=10000
[00:02:41]               │ debg TestSubjects.exists(addObjectToDashboardSuccess)
[00:02:41]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="addObjectToDashboardSuccess"]') with timeout=2500
[00:02:43]               │ERROR browser[SEVERE] http://localhost:6171/internal/search/es - Failed to load resource: the server responded with a status of 400 (Bad Request)
[00:02:43]               │ERROR browser[SEVERE] http://localhost:6171/internal/search/es - Failed to load resource: the server responded with a status of 400 (Bad Request)
[00:02:43]               │ debg --- retry.tryForTime error: [data-test-subj="addObjectToDashboardSuccess"] is not displayed
[00:02:44]               │ debg TestSubjects.exists(dashboardAddPanel)
[00:02:44]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardAddPanel"]') with timeout=1000
[00:02:44]               │ debg Closing flyout dashboardAddPanel
[00:02:44]               │ debg TestSubjects.find(dashboardAddPanel)
[00:02:44]               │ debg Find.findByCssSelector('[data-test-subj="dashboardAddPanel"]') with timeout=10000
[00:02:44]               │ debg Waiting up to 20000ms for flyout closed...
[00:02:44]               │ debg TestSubjects.exists(dashboardAddPanel)
[00:02:44]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardAddPanel"]') with timeout=1000
[00:02:45]               │ debg --- retry.tryForTime error: [data-test-subj="dashboardAddPanel"] is not displayed
[00:02:45]               │ debg DashboardAddPanel.addEmbeddable, name: Visualization☺ VerticalBarChart, type: visualization
[00:02:45]               │ debg DashboardAddPanel.ensureAddPanelIsShowing
[00:02:45]               │ debg DashboardAddPanel.isAddPanelOpen
[00:02:45]               │ debg TestSubjects.exists(dashboardAddPanel)
[00:02:45]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardAddPanel"]') with timeout=2500
[00:02:48]               │ debg --- retry.tryForTime error: [data-test-subj="dashboardAddPanel"] is not displayed
[00:02:48]               │ debg DashboardAddPanel.clickOpenAddPanel
[00:02:48]               │ debg TestSubjects.click(dashboardAddPanelButton)
[00:02:48]               │ debg Find.clickByCssSelector('[data-test-subj="dashboardAddPanelButton"]') with timeout=10000
[00:02:48]               │ debg Find.findByCssSelector('[data-test-subj="dashboardAddPanelButton"]') with timeout=10000
[00:02:49]               │ debg ... sleep(500) start
[00:02:49]               │ debg ... sleep(500) end
[00:02:49]               │ debg DashboardAddPanel.isAddPanelOpen
[00:02:49]               │ debg TestSubjects.exists(dashboardAddPanel)
[00:02:49]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardAddPanel"]') with timeout=2500
[00:02:49]               │ debg DashboardAddPanel.addToFilter(visualization)
[00:02:49]               │ debg Find.waitForDeletedByCssSelector('[data-test-subj="savedObjectFinderLoadingIndicator"]') with timeout=10000
[00:02:50]               │ debg DashboardAddPanel.toggleFilter
[00:02:50]               │ debg TestSubjects.click(savedObjectFinderFilterButton)
[00:02:50]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjectFinderFilterButton"]') with timeout=10000
[00:02:50]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectFinderFilterButton"]') with timeout=10000
[00:02:50]               │ debg TestSubjects.click(savedObjectFinderFilter-visualization)
[00:02:50]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjectFinderFilter-visualization"]') with timeout=10000
[00:02:50]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectFinderFilter-visualization"]') with timeout=10000
[00:02:50]               │ debg DashboardAddPanel.toggleFilter
[00:02:50]               │ debg TestSubjects.click(savedObjectFinderFilterButton)
[00:02:50]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjectFinderFilterButton"]') with timeout=10000
[00:02:50]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectFinderFilterButton"]') with timeout=10000
[00:02:50]               │ debg Find.waitForDeletedByCssSelector('[data-test-subj="savedObjectFinderLoadingIndicator"]') with timeout=10000
[00:02:50]               │ debg TestSubjects.setValue(savedObjectFinderSearchInput, "Visualization☺ VerticalBarChart")
[00:02:50]               │ debg TestSubjects.click(savedObjectFinderSearchInput)
[00:02:50]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjectFinderSearchInput"]') with timeout=10000
[00:02:50]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectFinderSearchInput"]') with timeout=10000
[00:02:51]               │ debg Find.waitForDeletedByCssSelector('[data-test-subj="savedObjectFinderLoadingIndicator"]') with timeout=10000
[00:02:51]               │ debg TestSubjects.click(savedObjectTitleVisualization☺-VerticalBarChart)
[00:02:51]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjectTitleVisualization☺-VerticalBarChart"]') with timeout=10000
[00:02:51]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectTitleVisualization☺-VerticalBarChart"]') with timeout=10000
[00:02:51]               │ debg TestSubjects.exists(addObjectToDashboardSuccess)
[00:02:51]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="addObjectToDashboardSuccess"]') with timeout=2500
[00:02:54]               │ERROR browser[SEVERE] http://localhost:6171/internal/search/es - Failed to load resource: the server responded with a status of 400 (Bad Request)
[00:02:54]               │ debg --- retry.tryForTime error: [data-test-subj="addObjectToDashboardSuccess"] is not displayed
[00:02:54]               │ debg TestSubjects.exists(dashboardAddPanel)
[00:02:54]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardAddPanel"]') with timeout=1000
[00:02:54]               │ debg Closing flyout dashboardAddPanel
[00:02:54]               │ debg TestSubjects.find(dashboardAddPanel)
[00:02:54]               │ debg Find.findByCssSelector('[data-test-subj="dashboardAddPanel"]') with timeout=10000
[00:02:55]               │ debg Waiting up to 20000ms for flyout closed...
[00:02:55]               │ debg TestSubjects.exists(dashboardAddPanel)
[00:02:55]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardAddPanel"]') with timeout=1000
[00:02:56]               │ debg --- retry.tryForTime error: [data-test-subj="dashboardAddPanel"] is not displayed
[00:02:56]               │ debg DashboardAddPanel.addEmbeddable, name: Visualization漢字 AreaChart, type: visualization
[00:02:56]               │ debg DashboardAddPanel.ensureAddPanelIsShowing
[00:02:56]               │ debg DashboardAddPanel.isAddPanelOpen
[00:02:56]               │ debg TestSubjects.exists(dashboardAddPanel)
[00:02:56]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardAddPanel"]') with timeout=2500
[00:02:59]               │ debg --- retry.tryForTime error: [data-test-subj="dashboardAddPanel"] is not displayed
[00:02:59]               │ debg DashboardAddPanel.clickOpenAddPanel
[00:02:59]               │ debg TestSubjects.click(dashboardAddPanelButton)
[00:02:59]               │ debg Find.clickByCssSelector('[data-test-subj="dashboardAddPanelButton"]') with timeout=10000
[00:02:59]               │ debg Find.findByCssSelector('[data-test-subj="dashboardAddPanelButton"]') with timeout=10000
[00:02:59]               │ debg ... sleep(500) start
[00:03:00]               │ debg ... sleep(500) end
[00:03:00]               │ debg DashboardAddPanel.isAddPanelOpen
[00:03:00]               │ debg TestSubjects.exists(dashboardAddPanel)
[00:03:00]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardAddPanel"]') with timeout=2500
[00:03:00]               │ debg DashboardAddPanel.addToFilter(visualization)
[00:03:00]               │ debg Find.waitForDeletedByCssSelector('[data-test-subj="savedObjectFinderLoadingIndicator"]') with timeout=10000
[00:03:00]               │ debg DashboardAddPanel.toggleFilter
[00:03:00]               │ debg TestSubjects.click(savedObjectFinderFilterButton)
[00:03:00]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjectFinderFilterButton"]') with timeout=10000
[00:03:00]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectFinderFilterButton"]') with timeout=10000
[00:03:00]               │ debg TestSubjects.click(savedObjectFinderFilter-visualization)
[00:03:00]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjectFinderFilter-visualization"]') with timeout=10000
[00:03:00]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectFinderFilter-visualization"]') with timeout=10000
[00:03:00]               │ debg DashboardAddPanel.toggleFilter
[00:03:00]               │ debg TestSubjects.click(savedObjectFinderFilterButton)
[00:03:00]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjectFinderFilterButton"]') with timeout=10000
[00:03:00]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectFinderFilterButton"]') with timeout=10000
[00:03:00]               │ debg Find.waitForDeletedByCssSelector('[data-test-subj="savedObjectFinderLoadingIndicator"]') with timeout=10000
[00:03:01]               │ debg TestSubjects.setValue(savedObjectFinderSearchInput, "Visualization漢字 AreaChart")
[00:03:01]               │ debg TestSubjects.click(savedObjectFinderSearchInput)
[00:03:01]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjectFinderSearchInput"]') with timeout=10000
[00:03:01]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectFinderSearchInput"]') with timeout=10000
[00:03:01]               │ debg Find.waitForDeletedByCssSelector('[data-test-subj="savedObjectFinderLoadingIndicator"]') with timeout=10000
[00:03:02]               │ debg TestSubjects.click(savedObjectTitleVisualization漢字-AreaChart)
[00:03:02]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjectTitleVisualization漢字-AreaChart"]') with timeout=10000
[00:03:02]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectTitleVisualization漢字-AreaChart"]') with timeout=10000
[00:03:02]               │ debg TestSubjects.exists(addObjectToDashboardSuccess)
[00:03:02]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="addObjectToDashboardSuccess"]') with timeout=2500
[00:03:05]               │ERROR browser[SEVERE] http://localhost:6171/internal/search/es - Failed to load resource: the server responded with a status of 400 (Bad Request)
[00:03:05]               │ debg --- retry.tryForTime error: [data-test-subj="addObjectToDashboardSuccess"] is not displayed
[00:03:05]               │ debg TestSubjects.exists(dashboardAddPanel)
[00:03:05]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardAddPanel"]') with timeout=1000
[00:03:05]               │ debg Closing flyout dashboardAddPanel
[00:03:05]               │ debg TestSubjects.find(dashboardAddPanel)
[00:03:05]               │ debg Find.findByCssSelector('[data-test-subj="dashboardAddPanel"]') with timeout=10000
[00:03:05]               │ debg Waiting up to 20000ms for flyout closed...
[00:03:05]               │ debg TestSubjects.exists(dashboardAddPanel)
[00:03:05]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardAddPanel"]') with timeout=1000
[00:03:06]               │ debg --- retry.tryForTime error: [data-test-subj="dashboardAddPanel"] is not displayed
[00:03:07]               │ debg DashboardAddPanel.addEmbeddable, name: Visualization☺漢字 DataTable, type: visualization
[00:03:07]               │ debg DashboardAddPanel.ensureAddPanelIsShowing
[00:03:07]               │ debg DashboardAddPanel.isAddPanelOpen
[00:03:07]               │ debg TestSubjects.exists(dashboardAddPanel)
[00:03:07]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardAddPanel"]') with timeout=2500
[00:03:09]               │ debg --- retry.tryForTime error: [data-test-subj="dashboardAddPanel"] is not displayed
[00:03:10]               │ debg DashboardAddPanel.clickOpenAddPanel
[00:03:10]               │ debg TestSubjects.click(dashboardAddPanelButton)
[00:03:10]               │ debg Find.clickByCssSelector('[data-test-subj="dashboardAddPanelButton"]') with timeout=10000
[00:03:10]               │ debg Find.findByCssSelector('[data-test-subj="dashboardAddPanelButton"]') with timeout=10000
[00:03:10]               │ debg ... sleep(500) start
[00:03:10]               │ debg ... sleep(500) end
[00:03:10]               │ debg DashboardAddPanel.isAddPanelOpen
[00:03:10]               │ debg TestSubjects.exists(dashboardAddPanel)
[00:03:10]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardAddPanel"]') with timeout=2500
[00:03:10]               │ debg DashboardAddPanel.addToFilter(visualization)
[00:03:10]               │ debg Find.waitForDeletedByCssSelector('[data-test-subj="savedObjectFinderLoadingIndicator"]') with timeout=10000
[00:03:11]               │ debg DashboardAddPanel.toggleFilter
[00:03:11]               │ debg TestSubjects.click(savedObjectFinderFilterButton)
[00:03:11]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjectFinderFilterButton"]') with timeout=10000
[00:03:11]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectFinderFilterButton"]') with timeout=10000
[00:03:11]               │ debg TestSubjects.click(savedObjectFinderFilter-visualization)
[00:03:11]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjectFinderFilter-visualization"]') with timeout=10000
[00:03:11]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectFinderFilter-visualization"]') with timeout=10000
[00:03:11]               │ debg DashboardAddPanel.toggleFilter
[00:03:11]               │ debg TestSubjects.click(savedObjectFinderFilterButton)
[00:03:11]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjectFinderFilterButton"]') with timeout=10000
[00:03:11]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectFinderFilterButton"]') with timeout=10000
[00:03:11]               │ debg Find.waitForDeletedByCssSelector('[data-test-subj="savedObjectFinderLoadingIndicator"]') with timeout=10000
[00:03:12]               │ debg TestSubjects.setValue(savedObjectFinderSearchInput, "Visualization☺漢字 DataTable")
[00:03:12]               │ debg TestSubjects.click(savedObjectFinderSearchInput)
[00:03:12]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjectFinderSearchInput"]') with timeout=10000
[00:03:12]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectFinderSearchInput"]') with timeout=10000
[00:03:12]               │ debg Find.waitForDeletedByCssSelector('[data-test-subj="savedObjectFinderLoadingIndicator"]') with timeout=10000
[00:03:12]               │ debg TestSubjects.click(savedObjectTitleVisualization☺漢字-DataTable)
[00:03:12]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjectTitleVisualization☺漢字-DataTable"]') with timeout=10000
[00:03:12]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectTitleVisualization☺漢字-DataTable"]') with timeout=10000
[00:03:13]               │ debg TestSubjects.exists(addObjectToDashboardSuccess)
[00:03:13]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="addObjectToDashboardSuccess"]') with timeout=2500
[00:03:15]               │ERROR browser[SEVERE] http://localhost:6171/internal/search/es - Failed to load resource: the server responded with a status of 400 (Bad Request)
[00:03:15]               │ERROR browser[SEVERE] http://localhost:6171/internal/search/es - Failed to load resource: the server responded with a status of 400 (Bad Request)
[00:03:15]               │ debg --- retry.tryForTime error: [data-test-subj="addObjectToDashboardSuccess"] is not displayed
[00:03:16]               │ debg TestSubjects.exists(dashboardAddPanel)
[00:03:16]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardAddPanel"]') with timeout=1000
[00:03:16]               │ debg Closing flyout dashboardAddPanel
[00:03:16]               │ debg TestSubjects.find(dashboardAddPanel)
[00:03:16]               │ debg Find.findByCssSelector('[data-test-subj="dashboardAddPanel"]') with timeout=10000
[00:03:16]               │ debg Waiting up to 20000ms for flyout closed...
[00:03:16]               │ debg TestSubjects.exists(dashboardAddPanel)
[00:03:16]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardAddPanel"]') with timeout=1000
[00:03:17]               │ debg --- retry.tryForTime error: [data-test-subj="dashboardAddPanel"] is not displayed
[00:03:17]               │ debg DashboardAddPanel.addEmbeddable, name: Visualization漢字 LineChart, type: visualization
[00:03:17]               │ debg DashboardAddPanel.ensureAddPanelIsShowing
[00:03:17]               │ debg DashboardAddPanel.isAddPanelOpen
[00:03:17]               │ debg TestSubjects.exists(dashboardAddPanel)
[00:03:17]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardAddPanel"]') with timeout=2500
[00:03:20]               │ debg --- retry.tryForTime error: [data-test-subj="dashboardAddPanel"] is not displayed
[00:03:20]               │ debg DashboardAddPanel.clickOpenAddPanel
[00:03:20]               │ debg TestSubjects.click(dashboardAddPanelButton)
[00:03:20]               │ debg Find.clickByCssSelector('[data-test-subj="dashboardAddPanelButton"]') with timeout=10000
[00:03:20]               │ debg Find.findByCssSelector('[data-test-subj="dashboardAddPanelButton"]') with timeout=10000
[00:03:20]               │ debg ... sleep(500) start
[00:03:21]               │ debg ... sleep(500) end
[00:03:21]               │ debg DashboardAddPanel.isAddPanelOpen
[00:03:21]               │ debg TestSubjects.exists(dashboardAddPanel)
[00:03:21]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardAddPanel"]') with timeout=2500
[00:03:21]               │ debg DashboardAddPanel.addToFilter(visualization)
[00:03:21]               │ debg Find.waitForDeletedByCssSelector('[data-test-subj="savedObjectFinderLoadingIndicator"]') with timeout=10000
[00:03:21]               │ debg DashboardAddPanel.toggleFilter
[00:03:21]               │ debg TestSubjects.click(savedObjectFinderFilterButton)
[00:03:21]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjectFinderFilterButton"]') with timeout=10000
[00:03:21]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectFinderFilterButton"]') with timeout=10000
[00:03:21]               │ debg TestSubjects.click(savedObjectFinderFilter-visualization)
[00:03:21]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjectFinderFilter-visualization"]') with timeout=10000
[00:03:21]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectFinderFilter-visualization"]') with timeout=10000
[00:03:22]               │ debg DashboardAddPanel.toggleFilter
[00:03:22]               │ debg TestSubjects.click(savedObjectFinderFilterButton)
[00:03:22]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjectFinderFilterButton"]') with timeout=10000
[00:03:22]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectFinderFilterButton"]') with timeout=10000
[00:03:22]               │ debg Find.waitForDeletedByCssSelector('[data-test-subj="savedObjectFinderLoadingIndicator"]') with timeout=10000
[00:03:22]               │ debg TestSubjects.setValue(savedObjectFinderSearchInput, "Visualization漢字 LineChart")
[00:03:22]               │ debg TestSubjects.click(savedObjectFinderSearchInput)
[00:03:22]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjectFinderSearchInput"]') with timeout=10000
[00:03:22]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectFinderSearchInput"]') with timeout=10000
[00:03:22]               │ debg Find.waitForDeletedByCssSelector('[data-test-subj="savedObjectFinderLoadingIndicator"]') with timeout=10000
[00:03:23]               │ debg TestSubjects.click(savedObjectTitleVisualization漢字-LineChart)
[00:03:23]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjectTitleVisualization漢字-LineChart"]') with timeout=10000
[00:03:23]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectTitleVisualization漢字-LineChart"]') with timeout=10000
[00:03:23]               │ debg TestSubjects.exists(addObjectToDashboardSuccess)
[00:03:23]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="addObjectToDashboardSuccess"]') with timeout=2500
[00:03:26]               │ERROR browser[SEVERE] http://localhost:6171/internal/search/es - Failed to load resource: the server responded with a status of 400 (Bad Request)
[00:03:26]               │ debg --- retry.tryForTime error: [data-test-subj="addObjectToDashboardSuccess"] is not displayed
[00:03:26]               │ debg TestSubjects.exists(dashboardAddPanel)
[00:03:26]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardAddPanel"]') with timeout=1000
[00:03:26]               │ debg Closing flyout dashboardAddPanel
[00:03:26]               │ debg TestSubjects.find(dashboardAddPanel)
[00:03:26]               │ debg Find.findByCssSelector('[data-test-subj="dashboardAddPanel"]') with timeout=10000
[00:03:26]               │ debg Waiting up to 20000ms for flyout closed...
[00:03:26]               │ debg TestSubjects.exists(dashboardAddPanel)
[00:03:26]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardAddPanel"]') with timeout=1000
[00:03:27]               │ debg --- retry.tryForTime error: [data-test-subj="dashboardAddPanel"] is not displayed
[00:03:28]               │ debg DashboardAddPanel.addEmbeddable, name: Visualization TileMap, type: visualization
[00:03:28]               │ debg DashboardAddPanel.ensureAddPanelIsShowing
[00:03:28]               │ debg DashboardAddPanel.isAddPanelOpen
[00:03:28]               │ debg TestSubjects.exists(dashboardAddPanel)
[00:03:28]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardAddPanel"]') with timeout=2500
[00:03:30]               │ debg --- retry.tryForTime error: [data-test-subj="dashboardAddPanel"] is not displayed
[00:03:31]               │ debg DashboardAddPanel.clickOpenAddPanel
[00:03:31]               │ debg TestSubjects.click(dashboardAddPanelButton)
[00:03:31]               │ debg Find.clickByCssSelector('[data-test-subj="dashboardAddPanelButton"]') with timeout=10000
[00:03:31]               │ debg Find.findByCssSelector('[data-test-subj="dashboardAddPanelButton"]') with timeout=10000
[00:03:31]               │ debg ... sleep(500) start
[00:03:32]               │ debg ... sleep(500) end
[00:03:32]               │ debg DashboardAddPanel.isAddPanelOpen
[00:03:32]               │ debg TestSubjects.exists(dashboardAddPanel)
[00:03:32]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardAddPanel"]') with timeout=2500
[00:03:32]               │ debg DashboardAddPanel.addToFilter(visualization)
[00:03:32]               │ debg Find.waitForDeletedByCssSelector('[data-test-subj="savedObjectFinderLoadingIndicator"]') with timeout=10000
[00:03:32]               │ debg DashboardAddPanel.toggleFilter
[00:03:32]               │ debg TestSubjects.click(savedObjectFinderFilterButton)
[00:03:32]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjectFinderFilterButton"]') with timeout=10000
[00:03:32]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectFinderFilterButton"]') with timeout=10000
[00:03:32]               │ debg TestSubjects.click(savedObjectFinderFilter-visualization)
[00:03:32]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjectFinderFilter-visualization"]') with timeout=10000
[00:03:32]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectFinderFilter-visualization"]') with timeout=10000
[00:03:32]               │ debg DashboardAddPanel.toggleFilter
[00:03:32]               │ debg TestSubjects.click(savedObjectFinderFilterButton)
[00:03:32]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjectFinderFilterButton"]') with timeout=10000
[00:03:32]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectFinderFilterButton"]') with timeout=10000
[00:03:32]               │ debg Find.waitForDeletedByCssSelector('[data-test-subj="savedObjectFinderLoadingIndicator"]') with timeout=10000
[00:03:33]               │ debg TestSubjects.setValue(savedObjectFinderSearchInput, "Visualization TileMap")
[00:03:33]               │ debg TestSubjects.click(savedObjectFinderSearchInput)
[00:03:33]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjectFinderSearchInput"]') with timeout=10000
[00:03:33]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectFinderSearchInput"]') with timeout=10000
[00:03:33]               │ debg Find.waitForDeletedByCssSelector('[data-test-subj="savedObjectFinderLoadingIndicator"]') with timeout=10000
[00:03:34]               │ debg TestSubjects.click(savedObjectTitleVisualization-TileMap)
[00:03:34]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjectTitleVisualization-TileMap"]') with timeout=10000
[00:03:34]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectTitleVisualization-TileMap"]') with timeout=10000
[00:03:34]               │ debg TestSubjects.exists(addObjectToDashboardSuccess)
[00:03:34]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="addObjectToDashboardSuccess"]') with timeout=2500
[00:03:36]               │ERROR browser[SEVERE] http://localhost:6171/internal/search/es - Failed to load resource: the server responded with a status of 400 (Bad Request)
[00:03:36]               │ debg --- retry.tryForTime error: [data-test-subj="addObjectToDashboardSuccess"] is not displayed
[00:03:37]               │ debg TestSubjects.exists(dashboardAddPanel)
[00:03:37]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardAddPanel"]') with timeout=1000
[00:03:37]               │ debg Closing flyout dashboardAddPanel
[00:03:37]               │ debg TestSubjects.find(dashboardAddPanel)
[00:03:37]               │ debg Find.findByCssSelector('[data-test-subj="dashboardAddPanel"]') with timeout=10000
[00:03:38]               │ warn WebElementWrapper.click: element click intercepted: Element <button class="euiButtonIcon euiButtonIcon--text euiFlyout__closeButton" type="button" aria-label="Closes this dialog" data-test-subj="euiFlyoutCloseButton">...</button> is not clickable at point (1571, 29). Other element would receive the click: <div class="euiToast euiToast--danger euiGlobalToastListItem" id="2" toastmessage="[esaggs] > Bad Request">...</div>
[00:03:38]               │        (Session info: headless chrome=81.0.4044.113)
[00:03:38]               │        (Driver info: chromedriver=80.0.3987.16 (320f6526c1632ad4f205ebce69b99a062ed78647-refs/branch-heads/3987@{#185}),platform=Linux 4.9.0-12-amd64 x86_64)
[00:03:38]               │ debg finding element 'By(css selector, [aria-label*="Close"])' again, 2 attempts left
[00:03:39]               │ warn WebElementWrapper.click: element click intercepted: Element <button class="euiButtonIcon euiButtonIcon--text euiFlyout__closeButton" type="button" aria-label="Closes this dialog" data-test-subj="euiFlyoutCloseButton">...</button> is not clickable at point (1571, 29). Other element would receive the click: <button class="euiButtonIcon euiButtonIcon--text euiFlyout__closeButton" type="button" aria-label="Closes this dialog" data-test-subj="euiFlyoutCloseButton">...</button>
[00:03:39]               │        (Session info: headless chrome=81.0.4044.113)
[00:03:39]               │        (Driver info: chromedriver=80.0.3987.16 (320f6526c1632ad4f205ebce69b99a062ed78647-refs/branch-heads/3987@{#185}),platform=Linux 4.9.0-12-amd64 x86_64)
[00:03:39]               │ debg finding element 'By(css selector, [aria-label*="Close"])' again, 1 attempts left
[00:03:40]               │ warn WebElementWrapper.click: element click intercepted: Element <button class="euiButtonIcon euiButtonIcon--text euiFlyout__closeButton" type="button" aria-label="Closes this dialog" data-test-subj="euiFlyoutCloseButton">...</button> is not clickable at point (1571, 29). Other element would receive the click: <button class="euiButtonIcon euiButtonIcon--text euiFlyout__closeButton" type="button" aria-label="Closes this dialog" data-test-subj="euiFlyoutCloseButton">...</button>
[00:03:40]               │        (Session info: headless chrome=81.0.4044.113)
[00:03:40]               │        (Driver info: chromedriver=80.0.3987.16 (320f6526c1632ad4f205ebce69b99a062ed78647-refs/branch-heads/3987@{#185}),platform=Linux 4.9.0-12-amd64 x86_64)
[00:03:40]               │ debg finding element 'By(css selector, [aria-label*="Close"])' again, 0 attempts left
[00:03:42]               │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/dashboard mode Dashboard View Mode _before all_ hook_ initialize tests.png"
[00:03:42]               │ info Current URL is: http://localhost:6171/app/kibana#/dashboard?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(description:%27%27,filters:!(),fullScreenMode:!f,options:(hidePanelTitles:!f,useMargins:!t),panels:!((embeddableConfig:(),gridData:(h:15,i:%2782b755cb-14c8-43b7-8f33-d1539d2f055d%27,w:24,x:0,y:0),id:Visualization-PieChart,panelIndex:%2782b755cb-14c8-43b7-8f33-d1539d2f055d%27,type:visualization,version:%278.0.0-SNAPSHOT%27),(embeddableConfig:(),gridData:(h:15,i:%27360ef1ed-ec82-4276-80b9-3413542ac9b4%27,w:24,x:24,y:0),id:Visualization%E2%98%BA-VerticalBarChart,panelIndex:%27360ef1ed-ec82-4276-80b9-3413542ac9b4%27,type:visualization,version:%278.0.0-SNAPSHOT%27),(embeddableConfig:(),gridData:(h:15,i:a4bd32d9-921e-4464-8d7a-a1d4a4b0f9a0,w:24,x:0,y:15),id:Visualization%E6%BC%A2%E5%AD%97-AreaChart,panelIndex:a4bd32d9-921e-4464-8d7a-a1d4a4b0f9a0,type:visualization,version:%278.0.0-SNAPSHOT%27),(embeddableConfig:(),gridData:(h:15,i:ebd65344-db2d-4795-9893-42bb04fb0f1c,w:24,x:24,y:15),id:Visualization%E2%98%BA%E6%BC%A2%E5%AD%97-DataTable,panelIndex:ebd65344-db2d-4795-9893-42bb04fb0f1c,type:visualization,version:%278.0.0-SNAPSHOT%27),(embeddableConfig:(),gridData:(h:15,i:%273a51293c-d1cc-4c6e-afea-6b812d4b6c14%27,w:24,x:0,y:30),id:Visualization%E6%BC%A2%E5%AD%97-LineChart,panelIndex:%273a51293c-d1cc-4c6e-afea-6b812d4b6c14%27,type:visualization,version:%278.0.0-SNAPSHOT%27),(embeddableConfig:(),gridData:(h:15,i:c7a29f35-9b89-427f-a139-7f40020377be,w:24,x:24,y:30),id:Visualization-TileMap,panelIndex:c7a29f35-9b89-427f-a139-7f40020377be,type:visualization,version:%278.0.0-SNAPSHOT%27)),query:(language:kuery,query:%27%27),timeRestore:!f,title:%27%27,viewMode:edit)
[00:03:42]               │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/dashboard mode Dashboard View Mode _before all_ hook_ initialize tests.html
[00:03:42]               └- ✖ fail: "dashboard mode Dashboard View Mode "before all" hook: initialize tests in "Dashboard View Mode""
[00:03:42]               │

Stack Trace

{ ElementClickInterceptedError: element click intercepted: Element <button class="euiButtonIcon euiButtonIcon--text euiFlyout__closeButton" type="button" aria-label="Closes this dialog" data-test-subj="euiFlyoutCloseButton">...</button> is not clickable at point (1571, 29). Other element would receive the click: <button class="euiButtonIcon euiButtonIcon--text euiFlyout__closeButton" type="button" aria-label="Closes this dialog" data-test-subj="euiFlyoutCloseButton">...</button>
  (Session info: headless chrome=81.0.4044.113)
  (Driver info: chromedriver=80.0.3987.16 (320f6526c1632ad4f205ebce69b99a062ed78647-refs/branch-heads/3987@{#185}),platform=Linux 4.9.0-12-amd64 x86_64)
    at Object.checkLegacyResponse (/dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/error.js:585:15)
    at parseHttpResponse (/dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/http.js:554:13)
    at Executor.execute (/dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/http.js:489:26)
    at process._tickCallback (internal/process/next_tick.js:68:7) name: 'ElementClickInterceptedError', remoteStacktrace: '' }

Kibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/machine_learning/feature_controls/ml_security·ts.machine learning feature controls security machine_learning_user and global all shows ML navlink

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 1 times on tracked branches: https://dryrun

[00:00:00]       │
[00:00:00]         └-: machine learning
[00:00:00]           └-> "before all" hook
[00:00:00]           └-> "before all" hook
[00:00:00]             │ debg creating role ml_source
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] added role [ml_source]
[00:00:00]             │ debg creating role ml_dest
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] added role [ml_dest]
[00:00:00]             │ debg creating role ml_dest_readonly
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] added role [ml_dest_readonly]
[00:00:00]             │ debg creating role ml_ui_extras
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] added role [ml_ui_extras]
[00:00:00]             │ debg creating user ml_poweruser
[00:00:00]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] added user [ml_poweruser]
[00:00:00]             │ debg created user ml_poweruser
[00:00:00]             │ debg creating user ml_viewer
[00:00:00]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] added user [ml_viewer]
[00:00:00]             │ debg created user ml_viewer
[00:00:00]           └-: feature controls
[00:00:00]             └-> "before all" hook
[00:00:00]             └-: security
[00:00:00]               └-> "before all" hook
[00:00:00]               └-> "before all" hook
[00:00:00]                 │ info [empty_kibana] Loading "mappings.json"
[00:00:00]                 │ info [empty_kibana] Loading "data.json.gz"
[00:00:00]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana_1/Wg8ZXvQRQb6yx_KRtTFV2Q] deleting index
[00:00:00]                 │ info [empty_kibana] Deleted existing index [".kibana_1"]
[00:00:00]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] applying create index request using v1 templates []
[00:00:00]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:00:00]                 │ info [empty_kibana] Created index ".kibana"
[00:00:00]                 │ debg [empty_kibana] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:00:00]                 │ info [empty_kibana] Indexed 2 docs into ".kibana"
[00:00:01]                 │ proc [kibana]   log   [14:53:47.329] [warning][actions][plugins][telemetry] Error executing actions telemetry task: [query_shard_exception] failed to create query: [nested] failed to find nested object under path [references], with { index_uuid="KV9Cfs5XRnCoGWqwhlUZsQ" & index=".kibana" } :: {"path":"/.kibana/_search","query":{"rest_total_hits_as_int":true},"body":"{\"query\":{\"bool\":{\"filter\":{\"bool\":{\"must\":{\"nested\":{\"path\":\"references\",\"query\":{\"bool\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"references.type\":\"action\"}}]}}}}}}}}}},\"aggs\":{\"refs\":{\"nested\":{\"path\":\"references\"},\"aggs\":{\"actionRefIds\":{\"scripted_metric\":{\"init_script\":\"state.connectorIds = new HashMap(); state.total = 0;\",\"map_script\":\"\\n        String connectorId = doc['references.id'].value;\\n        String actionRef = doc['references.name'].value;\\n        if (state.connectorIds[connectorId] === null) {\\n          state.connectorIds[connectorId] = actionRef;\\n          state.total++;\\n        }\\n      \",\"combine_script\":\"return state\",\"reduce_script\":\"\\n          Map connectorIds = [:];\\n          long total = 0;\\n          for (state in states) {\\n            if (state !== null) {\\n              total += state.total;\\n              for (String k : state.connectorIds.keySet()) {\\n                connectorIds.put(k, connectorIds.containsKey(k) ? connectorIds.get(k) + state.connectorIds.get(k) : state.connectorIds.get(k));\\n              }\\n            }\\n          }\\n          Map result = new HashMap();\\n          result.total = total;\\n          result.connectorIds = connectorIds;\\n          return result;\\n      \"}}}}}}","statusCode":400,"response":"{\"error\":{\"root_cause\":[{\"type\":\"query_shard_exception\",\"reason\":\"failed to create query: [nested] failed to find nested object under path [references]\",\"index_uuid\":\"KV9Cfs5XRnCoGWqwhlUZsQ\",\"index\":\".kibana\"}],\"type\":\"search_phase_execution_exception\",\"reason\":\"all shards failed\",\"phase\":\"query\",\"grouped\":true,\"failed_shards\":[{\"shard\":0,\"index\":\".kibana\",\"node\":\"LUJ7VrAvSzCrdxk_2314zw\",\"reason\":{\"type\":\"query_shard_exception\",\"reason\":\"failed to create query: [nested] failed to find nested object under path [references]\",\"index_uuid\":\"KV9Cfs5XRnCoGWqwhlUZsQ\",\"index\":\".kibana\",\"caused_by\":{\"type\":\"illegal_state_exception\",\"reason\":\"[nested] failed to find nested object under path [references]\"}}}]},\"status\":400}"}
[00:00:01]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana/KV9Cfs5XRnCoGWqwhlUZsQ] update_mapping [_doc]
[00:00:01]                 │ debg Migrating saved objects
[00:00:01]                 │ proc [kibana]   log   [14:53:47.561] [warning][alerting][plugins][telemetry] Error executing alerting telemetry task: TypeError: Cannot read property 'value' of undefined
[00:00:01]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana/KV9Cfs5XRnCoGWqwhlUZsQ] update_mapping [_doc]
[00:00:01]                 │ proc [kibana]   log   [14:53:48.301] [info][savedobjects-service] Creating index .kibana_2.
[00:00:01]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] applying create index request using v1 templates []
[00:00:02]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:00:02]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] updating number_of_replicas to [0] for indices [.kibana_2]
[00:00:02]                 │ proc [kibana]   log   [14:53:48.397] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:00:02]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] applying create index request using v1 templates []
[00:00:02]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:00:02]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] updating number_of_replicas to [0] for indices [.kibana_1]
[00:00:02]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] applying create index request using v1 templates []
[00:00:02]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.tasks] creating index, cause [auto(task api)], templates [], shards [1]/[1], mappings [_doc]
[00:00:02]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] updating number_of_replicas to [0] for indices [.tasks]
[00:00:02]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] 1045 finished with response BulkByScrollResponse[took=46ms,timed_out=false,sliceId=null,updated=0,created=4,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:00:02]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana/KV9Cfs5XRnCoGWqwhlUZsQ] deleting index
[00:00:02]                 │ proc [kibana]   log   [14:53:48.842] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:00:02]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana_2/TxgIGfWjTO6gFLmXYQs5Ag] update_mapping [_doc]
[00:00:02]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana_2/TxgIGfWjTO6gFLmXYQs5Ag] update_mapping [_doc]
[00:00:02]                 │ proc [kibana]   log   [14:53:49.028] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:00:02]                 │ proc [kibana]   log   [14:53:49.086] [info][savedobjects-service] Finished in 788ms.
[00:00:02]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:00:02]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana_2/TxgIGfWjTO6gFLmXYQs5Ag] update_mapping [_doc]
[00:00:03]                 │ debg creating role global_all_role
[00:00:03]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] added role [global_all_role]
[00:00:03]                 │ debg SecurityPage.forceLogout
[00:00:03]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:00:03]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:00:03]                 │ debg Redirecting to /logout to force the logout
[00:00:04]                 │ debg Waiting on the login form to appear
[00:00:04]                 │ debg Waiting up to 100000ms for login form...
[00:00:04]                 │ debg browser[INFO] http://localhost:6131/logout?_t=1587048830149 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:04]                 │
[00:00:04]                 │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:04]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:00:07]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:00:09]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:00:15]                 │ debg browser[INFO] http://localhost:6131/bundles/plugin/data/data.plugin.js 96:139970 "INFO: 2020-04-16T14:53:57Z
[00:00:15]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:00:15]                 │
[00:00:15]                 │      "
[00:00:15]                 │ debg browser[INFO] http://localhost:6131/login?next=%2F 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:15]                 │
[00:00:15]                 │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:15]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:00:15]                 │ debg browser[INFO] http://localhost:6131/bundles/plugin/data/data.plugin.js 96:139970 "INFO: 2020-04-16T14:54:01Z
[00:00:15]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:00:15]                 │
[00:00:15]                 │      "
[00:00:16]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:00:59]               └-: machine_learning_user and global all
[00:00:59]                 └-> "before all" hook
[00:00:59]                 └-> "before all" hook
[00:00:59]                   │ debg creating user machine_learning_user
[00:00:59]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] added user [machine_learning_user]
[00:00:59]                   │ debg created user machine_learning_user
[00:00:59]                   │ debg navigating to login url: http://localhost:6131/login
[00:00:59]                   │ debg Navigate to: http://localhost:6131/login
[00:00:59]                   │ proc [kibana]   log   [14:54:46.300] [info][authentication][plugins][security] Authentication attempt failed: [security_exception] unable to authenticate user [global_all] for REST request [/_security/_authenticate], with { header={ WWW-Authenticate={ 0="ApiKey" & 1="Basic realm=\"security\" charset=\"UTF-8\"" } } }
[00:01:00]                   │ debg ... sleep(700) start
[00:01:00]                   │ERROR browser[SEVERE] http://localhost:6131/login?_t=1587048886291 - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:01:00]                   │ debg ... sleep(700) end
[00:01:00]                   │ debg returned from get, calling refresh
[00:01:00]                   │ debg browser[INFO] http://localhost:6131/login?_t=1587048886291 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:01:00]                   │
[00:01:00]                   │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:00]                   │ debg currentUrl = http://localhost:6131/login
[00:01:00]                   │          appUrl = http://localhost:6131/login
[00:01:00]                   │ debg TestSubjects.find(kibanaChrome)
[00:01:00]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:04]                   │ debg browser[INFO] http://localhost:6131/bundles/plugin/data/data.plugin.js 96:139970 "INFO: 2020-04-16T14:54:50Z
[00:01:04]                   │        Adding connection to http://localhost:6131/elasticsearch
[00:01:04]                   │
[00:01:04]                   │      "
[00:01:04]                   │ debg ... sleep(501) start
[00:01:05]                   │ debg ... sleep(501) end
[00:01:05]                   │ debg in navigateTo url = http://localhost:6131/login
[00:01:05]                   │ debg TestSubjects.exists(statusPageContainer)
[00:01:05]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:01:07]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:01:08]                   │ debg TestSubjects.setValue(loginUsername, machine_learning_user)
[00:01:08]                   │ debg TestSubjects.click(loginUsername)
[00:01:08]                   │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:01:08]                   │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:01:08]                   │ debg TestSubjects.setValue(loginPassword, machine_learning_user-password)
[00:01:08]                   │ debg TestSubjects.click(loginPassword)
[00:01:08]                   │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:01:08]                   │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:01:08]                   │ debg TestSubjects.click(loginSubmit)
[00:01:08]                   │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:01:08]                   │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:01:08]                   │ debg Waiting up to 20000ms for logout button visible...
[00:01:08]                   │ debg TestSubjects.exists(userMenuButton)
[00:01:08]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:01:12]                   │ debg browser[INFO] http://localhost:6131/app/kibana 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:01:12]                   │
[00:01:12]                   │ debg browser[INFO] http://localhost:6131/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:12]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenuButton"] is not displayed
[00:01:12]                   │ debg browser[INFO] http://localhost:6131/bundles/plugin/data/data.plugin.js 96:139970 "INFO: 2020-04-16T14:54:59Z
[00:01:12]                   │        Adding connection to http://localhost:6131/elasticsearch
[00:01:12]                   │
[00:01:12]                   │      "
[00:01:13]                   │ debg TestSubjects.exists(userMenuButton)
[00:01:13]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:01:14]                   │ debg TestSubjects.exists(userMenu)
[00:01:14]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:01:16]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:01:17]                   │ debg TestSubjects.click(userMenuButton)
[00:01:17]                   │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:01:17]                   │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:01:17]                   │ debg Waiting up to 20000ms for user menu opened...
[00:01:17]                   │ debg TestSubjects.exists(userMenu)
[00:01:17]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:01:17]                   │ debg TestSubjects.exists(userMenu > logoutLink)
[00:01:17]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:01:17]                 └-> shows ML navlink
[00:01:17]                   └-> "before each" hook: global before each
[00:01:17]                   │ debg TestSubjects.find(navDrawer)
[00:01:17]                   │ debg Find.findByCssSelector('[data-test-subj="navDrawer"]') with timeout=10000
[00:01:17]                   │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/machine learning feature controls security machine_learning_user and global all shows ML navlink.png"
[00:01:17]                   │ info Current URL is: http://localhost:6131/app/kibana#/home
[00:01:17]                   │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/machine learning feature controls security machine_learning_user and global all shows ML navlink.html
[00:01:17]                   └- ✖ fail: "machine learning feature controls security machine_learning_user and global all shows ML navlink"
[00:01:17]                   │

Stack Trace

Error: expected [ 'Discover',
  'Visualize',
  'Dashboard',
  'Timelion',
  'Canvas',
  'Maps',
  'Metrics',
  'Logs',
  'APM',
  'Uptime',
  'Graph',
  'SIEM',
  'Dev Tools',
  'Management',
  'Endpoint' ] to contain 'Machine Learning'
    at Assertion.assert (/dev/shm/workspace/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.contain (/dev/shm/workspace/kibana/packages/kbn-expect/expect.js:447:10)
    at Context.it (test/functional/apps/machine_learning/feature_controls/ml_security.ts:105:29)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Kibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/machine_learning/feature_controls/ml_security·ts.machine learning feature controls security machine_learning_user and global all shows ML navlink

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: machine learning
[00:00:00]           └-> "before all" hook
[00:00:00]           └-> "before all" hook
[00:00:00]             │ debg creating role ml_source
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] added role [ml_source]
[00:00:00]             │ debg creating role ml_dest
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] added role [ml_dest]
[00:00:00]             │ debg creating role ml_dest_readonly
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] added role [ml_dest_readonly]
[00:00:00]             │ debg creating role ml_ui_extras
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] added role [ml_ui_extras]
[00:00:00]             │ debg creating user ml_poweruser
[00:00:00]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] added user [ml_poweruser]
[00:00:00]             │ debg created user ml_poweruser
[00:00:00]             │ debg creating user ml_viewer
[00:00:00]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] added user [ml_viewer]
[00:00:00]             │ debg created user ml_viewer
[00:00:00]           └-: feature controls
[00:00:00]             └-> "before all" hook
[00:00:00]             └-: security
[00:00:00]               └-> "before all" hook
[00:00:00]               └-> "before all" hook
[00:00:00]                 │ info [empty_kibana] Loading "mappings.json"
[00:00:01]                 │ info [empty_kibana] Loading "data.json.gz"
[00:00:01]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana_1/FlZMP8fzS5Kw8DSQfFNgYg] deleting index
[00:00:01]                 │ info [empty_kibana] Deleted existing index [".kibana_1"]
[00:00:01]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] applying create index request using v1 templates []
[00:00:01]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:00:01]                 │ info [empty_kibana] Created index ".kibana"
[00:00:01]                 │ debg [empty_kibana] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:00:01]                 │ info [empty_kibana] Indexed 2 docs into ".kibana"
[00:00:01]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana/D719Fz3DTxORU0nEgfqlfA] update_mapping [_doc]
[00:00:01]                 │ debg Migrating saved objects
[00:00:01]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana/D719Fz3DTxORU0nEgfqlfA] update_mapping [_doc]
[00:00:01]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana/D719Fz3DTxORU0nEgfqlfA] update_mapping [_doc]
[00:00:02]                 │ proc [kibana]   log   [14:49:36.373] [info][savedobjects-service] Creating index .kibana_2.
[00:00:02]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] applying create index request using v1 templates []
[00:00:02]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:00:02]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] updating number_of_replicas to [0] for indices [.kibana_2]
[00:00:02]                 │ proc [kibana]   log   [14:49:36.538] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:00:02]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] applying create index request using v1 templates []
[00:00:02]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:00:02]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] updating number_of_replicas to [0] for indices [.kibana_1]
[00:00:02]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] applying create index request using v1 templates []
[00:00:02]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.tasks] creating index, cause [auto(task api)], templates [], shards [1]/[1], mappings [_doc]
[00:00:02]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] updating number_of_replicas to [0] for indices [.tasks]
[00:00:02]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] 1096 finished with response BulkByScrollResponse[took=47ms,timed_out=false,sliceId=null,updated=0,created=4,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:00:03]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana/D719Fz3DTxORU0nEgfqlfA] deleting index
[00:00:03]                 │ proc [kibana]   log   [14:49:37.048] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:00:03]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana_2/wZtnGdDjQoWyl0WQrqw9Cg] update_mapping [_doc]
[00:00:03]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana_2/wZtnGdDjQoWyl0WQrqw9Cg] update_mapping [_doc]
[00:00:03]                 │ proc [kibana]   log   [14:49:37.230] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:00:03]                 │ proc [kibana]   log   [14:49:37.304] [info][savedobjects-service] Finished in 935ms.
[00:00:03]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:00:03]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] [.kibana_2/wZtnGdDjQoWyl0WQrqw9Cg] update_mapping [_doc]
[00:00:04]                 │ debg creating role global_all_role
[00:00:04]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] added role [global_all_role]
[00:00:04]                 │ debg SecurityPage.forceLogout
[00:00:04]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:00:04]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:00:05]                 │ debg Redirecting to /logout to force the logout
[00:00:05]                 │ debg Waiting on the login form to appear
[00:00:05]                 │ debg Waiting up to 100000ms for login form...
[00:00:05]                 │ debg browser[INFO] http://localhost:6131/logout?_t=1587048579277 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:05]                 │
[00:00:05]                 │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:05]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:00:08]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:00:11]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:00:16]                 │ debg browser[INFO] http://localhost:6131/bundles/plugin/data/data.plugin.js 96:139970 "INFO: 2020-04-16T14:49:47Z
[00:00:16]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:00:16]                 │
[00:00:16]                 │      "
[00:00:16]                 │ debg browser[INFO] http://localhost:6131/login?next=%2F 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:16]                 │
[00:00:16]                 │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:16]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:00:18]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:00:18]                 │ debg browser[INFO] http://localhost:6131/bundles/plugin/data/data.plugin.js 96:139970 "INFO: 2020-04-16T14:49:52Z
[00:00:18]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:00:18]                 │
[00:00:18]                 │      "
[00:01:09]               └-: machine_learning_user and global all
[00:01:09]                 └-> "before all" hook
[00:01:09]                 └-> "before all" hook
[00:01:09]                   │ debg creating user machine_learning_user
[00:01:09]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xl-1587046603246586457] added user [machine_learning_user]
[00:01:09]                   │ debg created user machine_learning_user
[00:01:09]                   │ debg navigating to login url: http://localhost:6131/login
[00:01:09]                   │ debg Navigate to: http://localhost:6131/login
[00:01:09]                   │ proc [kibana]   log   [14:50:43.603] [info][authentication][plugins][security] Authentication attempt failed: [security_exception] unable to authenticate user [global_all] for REST request [/_security/_authenticate], with { header={ WWW-Authenticate={ 0="ApiKey" & 1="Basic realm=\"security\" charset=\"UTF-8\"" } } }
[00:01:09]                   │ debg ... sleep(700) start
[00:01:09]                   │ERROR browser[SEVERE] http://localhost:6131/login?_t=1587048643590 - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:01:10]                   │ debg ... sleep(700) end
[00:01:10]                   │ debg returned from get, calling refresh
[00:01:10]                   │ debg browser[INFO] http://localhost:6131/login?_t=1587048643590 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:01:10]                   │
[00:01:10]                   │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:10]                   │ debg currentUrl = http://localhost:6131/login
[00:01:10]                   │          appUrl = http://localhost:6131/login
[00:01:10]                   │ debg TestSubjects.find(kibanaChrome)
[00:01:10]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:14]                   │ debg browser[INFO] http://localhost:6131/bundles/plugin/data/data.plugin.js 96:139970 "INFO: 2020-04-16T14:50:48Z
[00:01:14]                   │        Adding connection to http://localhost:6131/elasticsearch
[00:01:14]                   │
[00:01:14]                   │      "
[00:01:14]                   │ debg ... sleep(501) start
[00:01:15]                   │ debg ... sleep(501) end
[00:01:15]                   │ debg in navigateTo url = http://localhost:6131/login
[00:01:15]                   │ debg TestSubjects.exists(statusPageContainer)
[00:01:15]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:01:17]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:01:18]                   │ debg TestSubjects.setValue(loginUsername, machine_learning_user)
[00:01:18]                   │ debg TestSubjects.click(loginUsername)
[00:01:18]                   │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:01:18]                   │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:01:18]                   │ debg TestSubjects.setValue(loginPassword, machine_learning_user-password)
[00:01:18]                   │ debg TestSubjects.click(loginPassword)
[00:01:18]                   │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:01:18]                   │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:01:18]                   │ debg TestSubjects.click(loginSubmit)
[00:01:18]                   │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:01:18]                   │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:01:18]                   │ debg Waiting up to 20000ms for logout button visible...
[00:01:18]                   │ debg TestSubjects.exists(userMenuButton)
[00:01:18]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:01:21]                   │ debg browser[INFO] http://localhost:6131/app/kibana 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:01:21]                   │
[00:01:21]                   │ debg browser[INFO] http://localhost:6131/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:21]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenuButton"] is not displayed
[00:01:22]                   │ debg TestSubjects.exists(userMenuButton)
[00:01:22]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:01:25]                   │ debg browser[INFO] http://localhost:6131/bundles/plugin/data/data.plugin.js 96:139970 "INFO: 2020-04-16T14:50:58Z
[00:01:25]                   │        Adding connection to http://localhost:6131/elasticsearch
[00:01:25]                   │
[00:01:25]                   │      "
[00:01:25]                   │ debg TestSubjects.exists(userMenu)
[00:01:25]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:01:28]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:01:28]                   │ debg TestSubjects.click(userMenuButton)
[00:01:28]                   │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:01:28]                   │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:01:28]                   │ debg Waiting up to 20000ms for user menu opened...
[00:01:28]                   │ debg TestSubjects.exists(userMenu)
[00:01:28]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:01:28]                   │ debg TestSubjects.exists(userMenu > logoutLink)
[00:01:28]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:01:28]                 └-> shows ML navlink
[00:01:28]                   └-> "before each" hook: global before each
[00:01:28]                   │ debg TestSubjects.find(navDrawer)
[00:01:28]                   │ debg Find.findByCssSelector('[data-test-subj="navDrawer"]') with timeout=10000
[00:01:28]                   │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/machine learning feature controls security machine_learning_user and global all shows ML navlink.png"
[00:01:29]                   │ info Current URL is: http://localhost:6131/app/kibana#/home
[00:01:29]                   │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/machine learning feature controls security machine_learning_user and global all shows ML navlink.html
[00:01:29]                   └- ✖ fail: "machine learning feature controls security machine_learning_user and global all shows ML navlink"
[00:01:29]                   │

Stack Trace

Error: expected [ 'Discover',
  'Visualize',
  'Dashboard',
  'Timelion',
  'Canvas',
  'Maps',
  'Metrics',
  'Logs',
  'APM',
  'Uptime',
  'Graph',
  'SIEM',
  'Dev Tools',
  'Management',
  'Endpoint' ] to contain 'Machine Learning'
    at Assertion.assert (/dev/shm/workspace/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.contain (/dev/shm/workspace/kibana/packages/kbn-expect/expect.js:447:10)
    at Context.it (test/functional/apps/machine_learning/feature_controls/ml_security.ts:105:29)
    at process._tickCallback (internal/process/next_tick.js:68:7)

and 4 more failures, only showing the first 3.

History

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:New Platform release_note:plugin_api_changes Contains a Plugin API changes section for the breaking plugin API changes section. Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v7.8.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants