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

Unskip dashboard security tests #71053

Closed

Conversation

timroes
Copy link
Contributor

@timroes timroes commented Jul 8, 2020

Summary

Unskips #44631 to check if it runs better now.

@timroes
Copy link
Contributor Author

timroes commented Jul 8, 2020

@elasticmachine merge upstream

@wylieconlon
Copy link
Contributor

Screenshot from the failure:

dashboard feature controls dashboard security global dashboard all privileges_ no embeddable application privileges shows dashboard navlink

Like several of the failures I'm seeing with this test, it's failing to logout after running some tasks.

@kibanamachine
Copy link
Contributor

💔 Build Failed

Failed CI Steps


Test Failures

Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/dashboard/feature_controls/dashboard_security·ts.dashboard feature controls dashboard security global dashboard all privileges, no embeddable application privileges shows dashboard navlink

Link to Jenkins

Standard Out

[00:00:00]       │
[00:00:00]         └-: dashboard
[00:00:00]           └-> "before all" hook
[00:00:00]           └-: feature controls
[00:00:00]             └-> "before all" hook
[00:00:00]             └-: dashboard security
[00:00:00]               └-> "before all" hook
[00:00:00]               └-> "before all" hook
[00:00:00]                 │ info [dashboard/feature_controls/security] Loading "mappings.json"
[00:00:00]                 │ info [dashboard/feature_controls/security] Loading "data.json"
[00:00:00]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [ilm-history-2-000001] creating index, cause [api], templates [ilm-history], shards [1]/[0]
[00:00:00]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [.kibana_1/qEY4ySkVR8G8MiExRmTmfQ] deleting index
[00:00:00]                 │ info [dashboard/feature_controls/security] Deleted existing index [".kibana_1"]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[ilm-history-2-000001][0]]])." previous.health="YELLOW" reason="shards started [[ilm-history-2-000001][0]]"
[00:00:00]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [.kibana] creating index, cause [api], templates [], shards [1]/[0]
[00:00:00]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] moving index [ilm-history-2-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [ilm-history-ilm-policy]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]])." previous.health="YELLOW" reason="shards started [[.kibana][0]]"
[00:00:00]                 │ info [dashboard/feature_controls/security] Created index ".kibana"
[00:00:00]                 │ debg [dashboard/feature_controls/security] ".kibana" settings {"index":{"number_of_shards":"1","auto_expand_replicas":"0-1","number_of_replicas":"0"}}
[00:00:00]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] moving index [ilm-history-2-000001] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-indexing-complete"}] in policy [ilm-history-ilm-policy]
[00:00:00]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] moving index [ilm-history-2-000001] from [{"phase":"hot","action":"unfollow","name":"wait-for-indexing-complete"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-follow-shard-tasks"}] in policy [ilm-history-ilm-policy]
[00:00:00]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [.kibana/bQd37RsFQCGLxo4KHLMFRw] update_mapping [_doc]
[00:00:00]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [.kibana/bQd37RsFQCGLxo4KHLMFRw] update_mapping [_doc]
[00:00:00]                 │ info [dashboard/feature_controls/security] Indexed 7 docs into ".kibana"
[00:00:00]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [.kibana/bQd37RsFQCGLxo4KHLMFRw] update_mapping [_doc]
[00:00:00]                 │ debg Migrating saved objects
[00:00:00]                 │ proc [kibana]   log   [20:56:26.783] [info][savedobjects-service] Creating index .kibana_2.
[00:00:00]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] updating number_of_replicas to [0] for indices [.kibana_2]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_2][0]]"
[00:00:00]                 │ proc [kibana]   log   [20:56:26.877] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:00:00]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] updating number_of_replicas to [0] for indices [.kibana_1]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_1][0]]"
[00:00:01]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [.tasks] creating index, cause [auto(task api)], templates [], shards [1]/[1]
[00:00:01]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] updating number_of_replicas to [0] for indices [.tasks]
[00:00:01]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.tasks][0]]])." previous.health="YELLOW" reason="shards started [[.tasks][0]]"
[00:00:01]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] 1019 finished with response BulkByScrollResponse[took=59.6ms,timed_out=false,sliceId=null,updated=0,created=7,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:00:01]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [.kibana/bQd37RsFQCGLxo4KHLMFRw] deleting index
[00:00:01]                 │ proc [kibana]   log   [20:56:27.323] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:00:01]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [.kibana_2/nYIRZb0lSsu0ltgNCiAKEA] update_mapping [_doc]
[00:00:01]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [.kibana_2/nYIRZb0lSsu0ltgNCiAKEA] update_mapping [_doc]
[00:00:01]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [.kibana_2/nYIRZb0lSsu0ltgNCiAKEA] update_mapping [_doc]
[00:00:01]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [.kibana_2/nYIRZb0lSsu0ltgNCiAKEA] update_mapping [_doc]
[00:00:01]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [.kibana_2/nYIRZb0lSsu0ltgNCiAKEA] update_mapping [_doc]
[00:00:01]                 │ proc [kibana]   log   [20:56:27.651] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:00:01]                 │ proc [kibana]   log   [20:56:27.738] [info][savedobjects-service] Finished in 958ms.
[00:00:01]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:00:01]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [.kibana_2/nYIRZb0lSsu0ltgNCiAKEA] update_mapping [_doc]
[00:00:03]                 │ info [logstash_functional] Loading "mappings.json"
[00:00:03]                 │ info [logstash_functional] Loading "data.json.gz"
[00:00:03]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0]
[00:00:03]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.22][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.22][0]]"
[00:00:03]                 │ info [logstash_functional] Created index "logstash-2015.09.22"
[00:00:03]                 │ debg [logstash_functional] "logstash-2015.09.22" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:03]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0]
[00:00:04]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.20][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.20][0]]"
[00:00:04]                 │ info [logstash_functional] Created index "logstash-2015.09.20"
[00:00:04]                 │ debg [logstash_functional] "logstash-2015.09.20" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:04]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0]
[00:00:04]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.21][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.21][0]]"
[00:00:04]                 │ info [logstash_functional] Created index "logstash-2015.09.21"
[00:00:04]                 │ debg [logstash_functional] "logstash-2015.09.21" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:13]                 │ info progress: 10522
[00:00:16]                 │ info [logstash_functional] Indexed 4634 docs into "logstash-2015.09.22"
[00:00:16]                 │ info [logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:00:16]                 │ info [logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:00:16]                 │ debg SecurityPage.forceLogout
[00:00:16]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:00:16]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:00:17]                 │ debg Redirecting to /logout to force the logout
[00:00:17]                 │ debg Waiting on the login form to appear
[00:00:17]                 │ debg Waiting for Login Page to appear.
[00:00:17]                 │ debg Waiting up to 100000ms for login page...
[00:00:17]                 │ debg browser[INFO] http://localhost:6171/logout?_t=1594241803502 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:17]                 │
[00:00:17]                 │ debg browser[INFO] http://localhost:6171/bundles/app/core/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:17]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:00:20]                 │ debg browser[INFO] http://localhost:6171/34430/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-07-08T20:56:45Z
[00:00:20]                 │        Adding connection to http://localhost:6171/elasticsearch
[00:00:20]                 │
[00:00:20]                 │      "
[00:00:20]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:00:20]                 │ debg browser[INFO] http://localhost:6171/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:20]                 │
[00:00:20]                 │ debg browser[INFO] http://localhost:6171/bundles/app/core/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:22]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:00:22]                 │ debg browser[INFO] http://localhost:6171/34430/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-07-08T20:56:48Z
[00:00:22]                 │        Adding connection to http://localhost:6171/elasticsearch
[00:00:22]                 │
[00:00:22]                 │      "
[00:00:23]               └-: global dashboard all privileges, no embeddable application privileges
[00:00:23]                 └-> "before all" hook
[00:00:23]                 └-> "before all" hook
[00:00:23]                   │ debg creating role global_dashboard_all_role
[00:00:23]                   │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] added role [global_dashboard_all_role]
[00:00:23]                   │ debg creating user global_dashboard_all_user
[00:00:23]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] added user [global_dashboard_all_user]
[00:00:23]                   │ debg created user global_dashboard_all_user
[00:00:23]                   │ debg navigating to login url: http://localhost:6171/login
[00:00:23]                   │ debg navigate to: http://localhost:6171/login
[00:00:23]                   │ debg browser[INFO] http://localhost:6171/login?_t=1594241809197 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:23]                   │
[00:00:23]                   │ debg browser[INFO] http://localhost:6171/bundles/app/core/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:23]                   │ debg ... sleep(700) start
[00:00:24]                   │ debg ... sleep(700) end
[00:00:24]                   │ debg returned from get, calling refresh
[00:00:25]                   │ debg browser[INFO] http://localhost:6171/34430/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-07-08T20:56:50Z
[00:00:25]                   │        Adding connection to http://localhost:6171/elasticsearch
[00:00:25]                   │
[00:00:25]                   │      "
[00:00:25]                   │ERROR browser[SEVERE] http://localhost:6171/34430/bundles/core/core.entry.js 83:261771 TypeError: Failed to fetch
[00:00:25]                   │ debg browser[INFO] http://localhost:6171/login?_t=1594241809197 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:25]                   │
[00:00:25]                   │ debg browser[INFO] http://localhost:6171/bundles/app/core/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:25]                   │ debg browser[INFO] http://localhost:6171/34430/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-07-08T20:56:51Z
[00:00:25]                   │        Adding connection to http://localhost:6171/elasticsearch
[00:00:25]                   │
[00:00:25]                   │      "
[00:00:25]                   │ debg currentUrl = http://localhost:6171/login
[00:00:25]                   │          appUrl = http://localhost:6171/login
[00:00:25]                   │ debg TestSubjects.find(kibanaChrome)
[00:00:25]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:25]                   │ debg ... sleep(501) start
[00:00:26]                   │ debg ... sleep(501) end
[00:00:26]                   │ debg in navigateTo url = http://localhost:6171/login
[00:00:26]                   │ debg TestSubjects.exists(statusPageContainer)
[00:00:26]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:00:29]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:00:29]                   │ debg Waiting for Login Form to appear.
[00:00:29]                   │ debg Waiting up to 100000ms for login form...
[00:00:29]                   │ debg TestSubjects.exists(loginForm)
[00:00:29]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:00:29]                   │ debg TestSubjects.setValue(loginUsername, global_dashboard_all_user)
[00:00:29]                   │ debg TestSubjects.click(loginUsername)
[00:00:29]                   │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:00:29]                   │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:00:29]                   │ debg TestSubjects.setValue(loginPassword, global_dashboard_all_user-password)
[00:00:29]                   │ debg TestSubjects.click(loginPassword)
[00:00:29]                   │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:00:29]                   │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:00:30]                   │ debg TestSubjects.click(loginSubmit)
[00:00:30]                   │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:00:30]                   │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:00:30]                   │ debg Waiting for login result, expected: undefined.
[00:00:30]                   │ debg Waiting up to 20000ms for logout button visible...
[00:00:30]                   │ debg TestSubjects.exists(userMenuButton)
[00:00:30]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:00:32]                   │ debg browser[INFO] http://localhost:6171/app/home 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:32]                   │
[00:00:32]                   │ debg browser[INFO] http://localhost:6171/bundles/app/core/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:32]                   │ debg browser[INFO] http://localhost:6171/34430/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-07-08T20:56:57Z
[00:00:32]                   │        Adding connection to http://localhost:6171/elasticsearch
[00:00:32]                   │
[00:00:32]                   │      "
[00:00:32]                   │ debg TestSubjects.exists(userMenu)
[00:00:32]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:00:35]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:00:35]                   │ debg TestSubjects.click(userMenuButton)
[00:00:35]                   │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:00:35]                   │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:00:36]                   │ debg Waiting up to 20000ms for user menu opened...
[00:00:36]                   │ debg TestSubjects.exists(userMenu)
[00:00:36]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:00:36]                   │ debg TestSubjects.exists(userMenu > logoutLink)
[00:00:36]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:00:36]                 └-> shows dashboard navlink
[00:00:36]                   └-> "before each" hook: global before each
[00:00:36]                   │ debg isGlobalLoadingIndicatorVisible
[00:00:36]                   │ debg TestSubjects.exists(globalLoadingIndicator)
[00:00:36]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:00:37]                   │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:00:38]                   │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:00:38]                   │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:00:38]                   │ debg TestSubjects.exists(collapsibleNav)
[00:00:38]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:00:40]                   │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:00:41]                   │ debg TestSubjects.click(toggleNavButton)
[00:00:41]                   │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:00:41]                   │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:00:41]                   │ debg TestSubjects.find(collapsibleNav)
[00:00:41]                   │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:00:41]                   │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:00:41]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:00:41]                   │ debg Find.clickByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:00:41]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:00:41]                   │ info Taking screenshot "/dev/shm/workspace/parallel/7/kibana/x-pack/test/functional/screenshots/failure/dashboard feature controls dashboard security global dashboard all privileges_ no embeddable application privileges shows dashboard navlink.png"
[00:00:41]                   │ info Current URL is: http://localhost:6171/app/home#/
[00:00:41]                   │ info Saving page source to: /dev/shm/workspace/parallel/7/kibana/x-pack/test/functional/failure_debug/html/dashboard feature controls dashboard security global dashboard all privileges_ no embeddable application privileges shows dashboard navlink.html
[00:00:41]                   └- ✖ fail: "dashboard feature controls dashboard security global dashboard all privileges, no embeddable application privileges shows dashboard navlink"
[00:00:41]                   │

Stack Trace

{ Error: expected [ 'Dashboard', 'Overview', 'Stack Management' ] to sort of equal [ 'Dashboard', 'Stack Management' ]
    at Assertion.assert (/dev/shm/workspace/parallel/7/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.eql (/dev/shm/workspace/parallel/7/kibana/packages/kbn-expect/expect.js:244:8)
    at Context.it (test/functional/apps/dashboard/feature_controls/dashboard_security.ts:86:54)
    at process._tickCallback (internal/process/next_tick.js:68:7)
  actual: '[\n  "Dashboard"\n  "Overview"\n  "Stack Management"\n]',
  expected: '[\n  "Dashboard"\n  "Stack Management"\n]',
  showDiff: true }

Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/dashboard/feature_controls/dashboard_security·ts.dashboard feature controls dashboard security global dashboard all privileges, no embeddable application privileges shows dashboard navlink

Link to Jenkins

Standard Out

[00:00:00]       │
[00:00:00]         └-: dashboard
[00:00:00]           └-> "before all" hook
[00:00:00]           └-: feature controls
[00:00:00]             └-> "before all" hook
[00:00:00]             └-: dashboard security
[00:00:00]               └-> "before all" hook
[00:00:00]               └-> "before all" hook
[00:00:00]                 │ info [dashboard/feature_controls/security] Loading "mappings.json"
[00:00:00]                 │ info [dashboard/feature_controls/security] Loading "data.json"
[00:00:00]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [.kibana_1/q2mlbGfORXOuXamfJJKvnw] deleting index
[00:00:00]                 │ info [dashboard/feature_controls/security] Deleted existing index [".kibana_1"]
[00:00:00]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [.kibana] creating index, cause [api], templates [], shards [1]/[0]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]])." previous.health="YELLOW" reason="shards started [[.kibana][0]]"
[00:00:00]                 │ info [dashboard/feature_controls/security] Created index ".kibana"
[00:00:00]                 │ debg [dashboard/feature_controls/security] ".kibana" settings {"index":{"number_of_shards":"1","auto_expand_replicas":"0-1","number_of_replicas":"0"}}
[00:00:00]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [.kibana/9-7QmzWWSk2ABz59D2Gz7w] update_mapping [_doc]
[00:00:00]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [.kibana/9-7QmzWWSk2ABz59D2Gz7w] update_mapping [_doc]
[00:00:00]                 │ info [dashboard/feature_controls/security] Indexed 7 docs into ".kibana"
[00:00:00]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [.kibana/9-7QmzWWSk2ABz59D2Gz7w] update_mapping [_doc]
[00:00:00]                 │ debg Migrating saved objects
[00:00:01]                 │ proc [kibana]   log   [20:52:41.295] [info][savedobjects-service] Creating index .kibana_2.
[00:00:01]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:00:01]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] updating number_of_replicas to [0] for indices [.kibana_2]
[00:00:01]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_2][0]]"
[00:00:01]                 │ proc [kibana]   log   [20:52:41.464] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:00:01]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:00:01]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] updating number_of_replicas to [0] for indices [.kibana_1]
[00:00:01]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_1][0]]"
[00:00:01]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [.tasks] creating index, cause [auto(task api)], templates [], shards [1]/[1]
[00:00:01]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] updating number_of_replicas to [0] for indices [.tasks]
[00:00:01]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.tasks][0]]])." previous.health="YELLOW" reason="shards started [[.tasks][0]]"
[00:00:01]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] 1041 finished with response BulkByScrollResponse[took=134.8ms,timed_out=false,sliceId=null,updated=0,created=7,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:00:01]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [.kibana/9-7QmzWWSk2ABz59D2Gz7w] deleting index
[00:00:02]                 │ proc [kibana]   log   [20:52:42.353] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:00:02]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [.kibana_2/wWOc3c9USmS_s0dflGjAqw] update_mapping [_doc]
[00:00:02]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [.kibana_2/wWOc3c9USmS_s0dflGjAqw] update_mapping [_doc]
[00:00:02]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [.kibana_2/wWOc3c9USmS_s0dflGjAqw] update_mapping [_doc]
[00:00:02]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [.kibana_2/wWOc3c9USmS_s0dflGjAqw] update_mapping [_doc]
[00:00:02]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [.kibana_2/wWOc3c9USmS_s0dflGjAqw] update_mapping [_doc]
[00:00:02]                 │ proc [kibana]   log   [20:52:42.893] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:00:02]                 │ proc [kibana]   log   [20:52:43.040] [info][savedobjects-service] Finished in 1749ms.
[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-ubuntu-18-tests-xxl-1594239306141002155] [.kibana_2/wWOc3c9USmS_s0dflGjAqw] update_mapping [_doc]
[00:00:04]                 │ info [logstash_functional] Loading "mappings.json"
[00:00:04]                 │ info [logstash_functional] Loading "data.json.gz"
[00:00:04]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0]
[00:00:04]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.22][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.22][0]]"
[00:00:04]                 │ info [logstash_functional] Created index "logstash-2015.09.22"
[00:00:04]                 │ debg [logstash_functional] "logstash-2015.09.22" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:04]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0]
[00:00:04]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.20][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.20][0]]"
[00:00:04]                 │ info [logstash_functional] Created index "logstash-2015.09.20"
[00:00:04]                 │ debg [logstash_functional] "logstash-2015.09.20" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:04]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0]
[00:00:04]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.21][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.21][0]]"
[00:00:04]                 │ info [logstash_functional] Created index "logstash-2015.09.21"
[00:00:04]                 │ debg [logstash_functional] "logstash-2015.09.21" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:14]                 │ info progress: 7525
[00:00:21]                 │ info [logstash_functional] Indexed 4634 docs into "logstash-2015.09.22"
[00:00:21]                 │ info [logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:00:21]                 │ info [logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:00:22]                 │ debg SecurityPage.forceLogout
[00:00:22]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:00:22]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:00:22]                 │ debg Redirecting to /logout to force the logout
[00:00:23]                 │ debg Waiting on the login form to appear
[00:00:23]                 │ debg Waiting for Login Page to appear.
[00:00:23]                 │ debg Waiting up to 100000ms for login page...
[00:00:23]                 │ debg browser[INFO] http://localhost:6171/logout?_t=1594241583223 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:23]                 │
[00:00:23]                 │ debg browser[INFO] http://localhost:6171/bundles/app/core/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:23]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:00:27]                 │ debg browser[INFO] http://localhost:6171/34430/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-07-08T20:53:06Z
[00:00:27]                 │        Adding connection to http://localhost:6171/elasticsearch
[00:00:27]                 │
[00:00:27]                 │      "
[00:00:27]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:00:28]                 │ debg browser[INFO] http://localhost:6171/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:28]                 │
[00:00:28]                 │ debg browser[INFO] http://localhost:6171/bundles/app/core/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:29]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:00:31]                 │ debg browser[INFO] http://localhost:6171/34430/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-07-08T20:53:10Z
[00:00:31]                 │        Adding connection to http://localhost:6171/elasticsearch
[00:00:31]                 │
[00:00:31]                 │      "
[00:00:31]               └-: global dashboard all privileges, no embeddable application privileges
[00:00:31]                 └-> "before all" hook
[00:00:31]                 └-> "before all" hook
[00:00:31]                   │ debg creating role global_dashboard_all_role
[00:00:31]                   │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] added role [global_dashboard_all_role]
[00:00:31]                   │ debg creating user global_dashboard_all_user
[00:00:31]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1594239306141002155] added user [global_dashboard_all_user]
[00:00:31]                   │ debg created user global_dashboard_all_user
[00:00:31]                   │ debg navigating to login url: http://localhost:6171/login
[00:00:31]                   │ debg navigate to: http://localhost:6171/login
[00:00:31]                   │ debg browser[INFO] http://localhost:6171/login?_t=1594241591842 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:31]                   │
[00:00:31]                   │ debg browser[INFO] http://localhost:6171/bundles/app/core/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:31]                   │ debg ... sleep(700) start
[00:00:32]                   │ debg ... sleep(700) end
[00:00:32]                   │ debg returned from get, calling refresh
[00:00:33]                   │ debg browser[INFO] http://localhost:6171/login?_t=1594241591842 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:33]                   │
[00:00:33]                   │ debg browser[INFO] http://localhost:6171/bundles/app/core/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:33]                   │ debg currentUrl = http://localhost:6171/login
[00:00:33]                   │          appUrl = http://localhost:6171/login
[00:00:33]                   │ debg TestSubjects.find(kibanaChrome)
[00:00:33]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:34]                   │ debg browser[INFO] http://localhost:6171/34430/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-07-08T20:53:13Z
[00:00:34]                   │        Adding connection to http://localhost:6171/elasticsearch
[00:00:34]                   │
[00:00:34]                   │      "
[00:00:34]                   │ debg ... sleep(501) start
[00:00:35]                   │ debg ... sleep(501) end
[00:00:35]                   │ debg in navigateTo url = http://localhost:6171/login
[00:00:35]                   │ debg TestSubjects.exists(statusPageContainer)
[00:00:35]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:00:37]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:00:38]                   │ debg Waiting for Login Form to appear.
[00:00:38]                   │ debg Waiting up to 100000ms for login form...
[00:00:38]                   │ debg TestSubjects.exists(loginForm)
[00:00:38]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:00:38]                   │ debg TestSubjects.setValue(loginUsername, global_dashboard_all_user)
[00:00:38]                   │ debg TestSubjects.click(loginUsername)
[00:00:38]                   │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:00:38]                   │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:00:38]                   │ debg TestSubjects.setValue(loginPassword, global_dashboard_all_user-password)
[00:00:38]                   │ debg TestSubjects.click(loginPassword)
[00:00:38]                   │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:00:38]                   │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:00:39]                   │ debg TestSubjects.click(loginSubmit)
[00:00:39]                   │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:00:39]                   │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:00:39]                   │ debg Waiting for login result, expected: undefined.
[00:00:39]                   │ debg Waiting up to 20000ms for logout button visible...
[00:00:39]                   │ debg TestSubjects.exists(userMenuButton)
[00:00:39]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:00:42]                   │ debg browser[INFO] http://localhost:6171/app/home 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:42]                   │
[00:00:42]                   │ debg browser[INFO] http://localhost:6171/bundles/app/core/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:42]                   │ debg browser[INFO] http://localhost:6171/34430/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-07-08T20:53:21Z
[00:00:42]                   │        Adding connection to http://localhost:6171/elasticsearch
[00:00:42]                   │
[00:00:42]                   │      "
[00:00:42]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenuButton"] is not displayed
[00:00:43]                   │ debg TestSubjects.exists(userMenuButton)
[00:00:43]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:00:43]                   │ debg TestSubjects.exists(userMenu)
[00:00:43]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:00:45]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:00:46]                   │ debg TestSubjects.click(userMenuButton)
[00:00:46]                   │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:00:46]                   │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:00:46]                   │ debg Waiting up to 20000ms for user menu opened...
[00:00:46]                   │ debg TestSubjects.exists(userMenu)
[00:00:46]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:00:46]                   │ debg TestSubjects.exists(userMenu > logoutLink)
[00:00:46]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:00:46]                 └-> shows dashboard navlink
[00:00:46]                   └-> "before each" hook: global before each
[00:00:46]                   │ debg isGlobalLoadingIndicatorVisible
[00:00:46]                   │ debg TestSubjects.exists(globalLoadingIndicator)
[00:00:46]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:00:48]                   │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:00:48]                   │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:00:48]                   │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:00:48]                   │ debg TestSubjects.exists(collapsibleNav)
[00:00:48]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:00:51]                   │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:00:51]                   │ debg TestSubjects.click(toggleNavButton)
[00:00:51]                   │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:00:51]                   │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:00:51]                   │ debg TestSubjects.find(collapsibleNav)
[00:00:51]                   │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:00:52]                   │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:00:52]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:00:52]                   │ debg Find.clickByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:00:52]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:00:52]                   │ info Taking screenshot "/dev/shm/workspace/parallel/7/kibana/x-pack/test/functional/screenshots/failure/dashboard feature controls dashboard security global dashboard all privileges_ no embeddable application privileges shows dashboard navlink.png"
[00:00:52]                   │ info Current URL is: http://localhost:6171/app/home#/
[00:00:52]                   │ info Saving page source to: /dev/shm/workspace/parallel/7/kibana/x-pack/test/functional/failure_debug/html/dashboard feature controls dashboard security global dashboard all privileges_ no embeddable application privileges shows dashboard navlink.html
[00:00:52]                   └- ✖ fail: "dashboard feature controls dashboard security global dashboard all privileges, no embeddable application privileges shows dashboard navlink"
[00:00:52]                   │

Stack Trace

{ Error: expected [ 'Dashboard', 'Overview', 'Stack Management' ] to sort of equal [ 'Dashboard', 'Stack Management' ]
    at Assertion.assert (/dev/shm/workspace/parallel/7/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.eql (/dev/shm/workspace/parallel/7/kibana/packages/kbn-expect/expect.js:244:8)
    at Context.it (test/functional/apps/dashboard/feature_controls/dashboard_security.ts:86:54)
    at process._tickCallback (internal/process/next_tick.js:68:7)
  actual: '[\n  "Dashboard"\n  "Overview"\n  "Stack Management"\n]',
  expected: '[\n  "Dashboard"\n  "Stack Management"\n]',
  showDiff: true }

Build metrics

✅ unchanged

History

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

@wylieconlon
Copy link
Contributor

I found several issues in the dashboard security tests, and have made the necessary changes to get this test to pass in another PR: #71173

@timroes timroes closed this Jul 9, 2020
@timroes timroes deleted the test/unskip-dashboard-security branch July 9, 2020 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants