Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.x] fix timespan referencing to same values (#56601) (#56612) #56740

Merged
merged 1 commit into from
Feb 4, 2020

Conversation

shahzad31
Copy link
Contributor

Backports the following commits to 7.x:

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/dashboard/feature_controls/dashboard_security·ts.dashboard feature controls dashboard security global dashboard all privileges, no embeddable application privileges landing page shows "Create new Dashboard" button

Link to Jenkins

Standard Out

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

[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-centos-tests-xl-1580818950928026595] [.kibana_1/dafWcg0nTne3Ya5R4JUT0Q] 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-centos-tests-xl-1580818950928026595] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [doc]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1580818950928026595] Cluster health status changed from [YELLOW] to [GREEN] (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-centos-tests-xl-1580818950928026595] [.kibana/IV1M6SpISPaA8JknQpHQxQ] update_mapping [doc]
[00:00:00]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1580818950928026595] [.kibana/IV1M6SpISPaA8JknQpHQxQ] update_mapping [doc]
[00:00:00]                 │ info [dashboard/feature_controls/security] Indexed 7 docs into ".kibana"
[00:00:59]                 │ proc [kibana]   log   [12:52:39.253] [warning][plugins][usageCollection] { Error: mapping set to strict, dynamic introduction of [maps-telemetry] within [doc] is not allowed: [strict_dynamic_mapping_exception] mapping set to strict, dynamic introduction of [maps-telemetry] within [doc] is not allowed
[00:00:59]                 │ proc [kibana]     at respond (/dev/shm/workspace/install/kibana-4/node_modules/elasticsearch/src/lib/transport.js:349:15)
[00:00:59]                 │ proc [kibana]     at checkRespForFailure (/dev/shm/workspace/install/kibana-4/node_modules/elasticsearch/src/lib/transport.js:306:7)
[00:00:59]                 │ proc [kibana]     at HttpConnector.<anonymous> (/dev/shm/workspace/install/kibana-4/node_modules/elasticsearch/src/lib/connectors/http.js:173:7)
[00:00:59]                 │ proc [kibana]     at IncomingMessage.wrapper (/dev/shm/workspace/install/kibana-4/node_modules/elasticsearch/node_modules/lodash/lodash.js:4929:19)
[00:00:59]                 │ proc [kibana]     at IncomingMessage.emit (events.js:203:15)
[00:00:59]                 │ proc [kibana]     at endReadableNT (_stream_readable.js:1143:12)
[00:00:59]                 │ proc [kibana]     at process._tickCallback (internal/process/next_tick.js:63:19)
[00:00:59]                 │ proc [kibana]   status: 400,
[00:00:59]                 │ proc [kibana]   displayName: 'BadRequest',
[00:00:59]                 │ proc [kibana]   message:
[00:00:59]                 │ proc [kibana]    'mapping set to strict, dynamic introduction of [maps-telemetry] within [doc] is not allowed: [strict_dynamic_mapping_exception] mapping set to strict, dynamic introduction of [maps-telemetry] within [doc] is not allowed',
[00:00:59]                 │ proc [kibana]   path: '/.kibana/_doc/maps-telemetry%3Amaps-telemetry',
[00:00:59]                 │ proc [kibana]   query: { refresh: 'wait_for' },
[00:00:59]                 │ proc [kibana]   body:
[00:00:59]                 │ proc [kibana]    { error:
[00:00:59]                 │ proc [kibana]       { root_cause: [Array],
[00:00:59]                 │ proc [kibana]         type: 'strict_dynamic_mapping_exception',
[00:00:59]                 │ proc [kibana]         reason:
[00:00:59]                 │ proc [kibana]          'mapping set to strict, dynamic introduction of [maps-telemetry] within [doc] is not allowed' },
[00:00:59]                 │ proc [kibana]      status: 400 },
[00:00:59]                 │ proc [kibana]   statusCode: 400,
[00:00:59]                 │ proc [kibana]   response:
[00:00:59]                 │ proc [kibana]    '{"error":{"root_cause":[{"type":"strict_dynamic_mapping_exception","reason":"mapping set to strict, dynamic introduction of [maps-telemetry] within [doc] is not allowed"}],"type":"strict_dynamic_mapping_exception","reason":"mapping set to strict, dynamic introduction of [maps-telemetry] within [doc] is not allowed"},"status":400}',
[00:00:59]                 │ proc [kibana]   toString: [Function],
[00:00:59]                 │ proc [kibana]   toJSON: [Function],
[00:00:59]                 │ proc [kibana]   isBoom: true,
[00:00:59]                 │ proc [kibana]   isServer: false,
[00:00:59]                 │ proc [kibana]   data: null,
[00:00:59]                 │ proc [kibana]   output:
[00:00:59]                 │ proc [kibana]    { statusCode: 400,
[00:00:59]                 │ proc [kibana]      payload:
[00:00:59]                 │ proc [kibana]       { message:
[00:00:59]                 │ proc [kibana]          'mapping set to strict, dynamic introduction of [maps-telemetry] within [doc] is not allowed: [strict_dynamic_mapping_exception] mapping set to strict, dynamic introduction of [maps-telemetry] within [doc] is not allowed',
[00:00:59]                 │ proc [kibana]         statusCode: 400,
[00:00:59]                 │ proc [kibana]         error: 'Bad Request' },
[00:00:59]                 │ proc [kibana]      headers: {} },
[00:00:59]                 │ proc [kibana]   reformat: [Function],
[00:00:59]                 │ proc [kibana]   [Symbol(SavedObjectsClientErrorCode)]: 'SavedObjectsClient/badRequest' }
[00:00:59]                 │ proc [kibana]   log   [12:52:39.269] [warning][plugins][usageCollection] Unable to fetch data from maps-telemetry collector
[00:01:02]                 │ info Creating index .kibana_2.
[00:01:02]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1580818950928026595] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:01:02]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1580818950928026595] updating number_of_replicas to [0] for indices [.kibana_2]
[00:01:02]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1580818950928026595] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:01:02]                 │ info Reindexing .kibana to .kibana_1
[00:01:02]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1580818950928026595] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:01:02]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1580818950928026595] updating number_of_replicas to [0] for indices [.kibana_1]
[00:01:02]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1580818950928026595] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:01:03]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1580818950928026595] [.tasks] creating index, cause [auto(task api)], templates [], shards [1]/[1], mappings [task]
[00:01:03]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1580818950928026595] updating number_of_replicas to [0] for indices [.tasks]
[00:01:03]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1580818950928026595] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.tasks][0]]]).
[00:01:03]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-xl-1580818950928026595] 820 finished with response BulkByScrollResponse[took=79.3ms,timed_out=false,sliceId=null,updated=0,created=8,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:01:03]                 │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1580818950928026595] [.kibana/IV1M6SpISPaA8JknQpHQxQ] deleting index
[00:01:03]                 │ info Migrating .kibana_1 saved objects to .kibana_2
[00:01:03]                 │ debg Migrating saved objects index-pattern:logstash-*, visualization:75c3e060-1e7c-11e9-8488-65449e65d0ed, dashboard:i-exist, config:6.0.0, map:0b849ed0-70f5-11e9-8625-9580c4904684, dashboard:1c1a87f0-70f5-11e9-8625-9580c4904684, query:okjpgs, config:7.7.0-SNAPSHOT
[00:01:03]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1580818950928026595] [.kibana_2/WANl62dbSZe7j_XMhpvm6g] update_mapping [_doc]
[00:01:03]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1580818950928026595] [.kibana_2/WANl62dbSZe7j_XMhpvm6g] update_mapping [_doc]
[00:01:03]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1580818950928026595] [.kibana_2/WANl62dbSZe7j_XMhpvm6g] update_mapping [_doc]
[00:01:03]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1580818950928026595] [.kibana_2/WANl62dbSZe7j_XMhpvm6g] update_mapping [_doc]
[00:01:03]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1580818950928026595] [.kibana_2/WANl62dbSZe7j_XMhpvm6g] update_mapping [_doc]
[00:01:03]                 │ info Pointing alias .kibana to .kibana_2.
[00:01:03]                 │ info Finished in 1292ms.
[00:01:04]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:01:04]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1580818950928026595] [.kibana_2/WANl62dbSZe7j_XMhpvm6g] update_mapping [_doc]
[00:01:04]                 │ info [logstash_functional] Loading "mappings.json"
[00:01:04]                 │ info [logstash_functional] Loading "data.json.gz"
[00:01:04]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1580818950928026595] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:01:05]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1580818950928026595] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.22][0]]]).
[00:01:05]                 │ info [logstash_functional] Created index "logstash-2015.09.22"
[00:01:05]                 │ 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:01:05]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1580818950928026595] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:01:05]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1580818950928026595] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.20][0]]]).
[00:01:05]                 │ info [logstash_functional] Created index "logstash-2015.09.20"
[00:01:05]                 │ 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:01:05]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1580818950928026595] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:01:05]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1580818950928026595] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.21][0]]]).
[00:01:05]                 │ info [logstash_functional] Created index "logstash-2015.09.21"
[00:01:05]                 │ 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:01:14]                 │ info progress: 6556
[00:01:23]                 │ info [logstash_functional] Indexed 4633 docs into "logstash-2015.09.22"
[00:01:23]                 │ info [logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:01:23]                 │ info [logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:01:24]                 │ debg SecurityPage.forceLogout
[00:01:24]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:01:24]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:01:25]                 │ debg Redirecting to /logout to force the logout
[00:01:25]                 │ debg Waiting on the login form to appear
[00:01:25]                 │ debg Waiting up to 100000ms for login form...
[00:01:25]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:01:25]                 │ debg browser[INFO] http://localhost:6141/logout?_t=1580820841840 350 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:25]                 │
[00:01:25]                 │ debg browser[INFO] http://localhost:6141/bundles/app/logout/bootstrap.js 8:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:27]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:01:28]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:01:31]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:01:32]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:01:32]                 │ debg browser[INFO] http://localhost:6141/built_assets/dlls/vendors_3.bundle.dll.js 516:138197 "INFO: 2020-02-04T12:54:09Z
[00:01:32]                 │        Adding connection to http://localhost:6141/elasticsearch
[00:01:32]                 │
[00:01:32]                 │      "
[00:01:36]                 │ debg browser[INFO] http://localhost:6141/login?next=%2F 350 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:36]                 │
[00:01:36]                 │ debg browser[INFO] http://localhost:6141/bundles/app/login/bootstrap.js 8:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:36]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:01:37]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:01:39]                 │ debg browser[INFO] http://localhost:6141/built_assets/dlls/vendors_3.bundle.dll.js 516:138197 "INFO: 2020-02-04T12:54:14Z
[00:01:39]                 │        Adding connection to http://localhost:6141/elasticsearch
[00:01:39]                 │
[00:01:39]                 │      "
[00:01:39]               └-: global dashboard all privileges, no embeddable application privileges
[00:01:39]                 └-> "before all" hook
[00:01:39]                 └-> "before all" hook
[00:01:39]                   │ debg creating role global_dashboard_all_role
[00:01:39]                   │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1580818950928026595] added role [global_dashboard_all_role]
[00:01:39]                   │ debg created role global_dashboard_all_role
[00:01:39]                   │ debg creating user global_dashboard_all_user
[00:01:39]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1580818950928026595] added user [global_dashboard_all_user]
[00:01:39]                   │ debg created user global_dashboard_all_user
[00:01:39]                   │ debg navigating to login url: http://localhost:6141/login
[00:01:39]                   │ debg Navigate to: http://localhost:6141/login
[00:01:39]                   │ debg ... sleep(700) start
[00:01:39]                   │ debg browser[INFO] http://localhost:6141/login?_t=1580820856508 350 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:39]                   │
[00:01:39]                   │ debg browser[INFO] http://localhost:6141/bundles/app/login/bootstrap.js 8:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:40]                   │ debg ... sleep(700) end
[00:01:40]                   │ debg returned from get, calling refresh
[00:01:40]                   │ debg browser[INFO] http://localhost:6141/login?_t=1580820856508 350 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:40]                   │
[00:01:40]                   │ debg browser[INFO] http://localhost:6141/bundles/app/login/bootstrap.js 8:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:41]                   │ debg currentUrl = http://localhost:6141/login
[00:01:41]                   │          appUrl = http://localhost:6141/login
[00:01:41]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:43]                   │ debg browser[INFO] http://localhost:6141/built_assets/dlls/vendors_3.bundle.dll.js 516:138197 "INFO: 2020-02-04T12:54:19Z
[00:01:43]                   │        Adding connection to http://localhost:6141/elasticsearch
[00:01:43]                   │
[00:01:43]                   │      "
[00:01:43]                   │ debg ... sleep(501) start
[00:01:43]                   │ debg ... sleep(501) end
[00:01:43]                   │ debg in navigateTo url = http://localhost:6141/login
[00:01:43]                   │ debg TestSubjects.exists(statusPageContainer)
[00:01:43]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:01:46]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:01:46]                   │ debg TestSubjects.setValue(loginUsername, global_dashboard_all_user)
[00:01:46]                   │ debg TestSubjects.click(loginUsername)
[00:01:46]                   │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:01:46]                   │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:01:48]                   │ debg TestSubjects.setValue(loginPassword, global_dashboard_all_user-password)
[00:01:48]                   │ debg TestSubjects.click(loginPassword)
[00:01:48]                   │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:01:48]                   │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:01:49]                   │ debg TestSubjects.click(loginSubmit)
[00:01:49]                   │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:01:49]                   │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:01:50]                   │ debg Waiting up to 20000ms for logout button visible...
[00:01:50]                   │ debg TestSubjects.exists(userMenuButton)
[00:01:50]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:01:52]                   │ debg browser[INFO] http://localhost:6141/app/kibana 350 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:52]                   │
[00:01:52]                   │ debg browser[INFO] http://localhost:6141/bundles/app/kibana/bootstrap.js 8:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:52]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenuButton"] is not displayed
[00:01:53]                   │ debg TestSubjects.exists(userMenuButton)
[00:01:53]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:01:59]                   │ debg browser[INFO] http://localhost:6141/built_assets/dlls/vendors_3.bundle.dll.js 516:138197 "INFO: 2020-02-04T12:54:32Z
[00:01:59]                   │        Adding connection to http://localhost:6141/elasticsearch
[00:01:59]                   │
[00:01:59]                   │      "
[00:01:59]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenuButton"] is not displayed
[00:02:00]                   │ debg TestSubjects.exists(userMenuButton)
[00:02:00]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:02:00]                   │ debg TestSubjects.exists(userMenu)
[00:02:00]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:02:02]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:02:03]                   │ debg TestSubjects.click(userMenuButton)
[00:02:03]                   │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:02:03]                   │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:02:03]                   │ debg Waiting up to 20000ms for user menu opened...
[00:02:03]                   │ debg TestSubjects.exists(userMenu)
[00:02:03]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:02:03]                   │ debg TestSubjects.exists(userMenu > logoutLink)
[00:02:03]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:02:03]                 └-> shows dashboard navlink
[00:02:03]                   └-> "before each" hook: global before each
[00:02:03]                   │ debg TestSubjects.find(navDrawer)
[00:02:03]                   │ debg Find.findByCssSelector('[data-test-subj="navDrawer"]') with timeout=10000
[00:02:03]                   └- ✓ pass  (114ms) "dashboard feature controls dashboard security global dashboard all privileges, no embeddable application privileges shows dashboard navlink"
[00:02:03]                 └-> landing page shows "Create new Dashboard" button
[00:02:03]                   └-> "before each" hook: global before each
[00:02:03]                   │ debg navigateToActualUrl http://localhost:6141/app/kibana#/dashboards
[00:02:04]                   │ debg browser[INFO] http://localhost:6141/app/kibana?_t=1580820880672#/dashboards 350 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:04]                   │
[00:02:04]                   │ debg browser[INFO] http://localhost:6141/bundles/app/kibana/bootstrap.js 8:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:04]                   │ debg TestSubjects.exists(dashboardLandingPage)
[00:02:04]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardLandingPage"]') with timeout=10000
[00:02:07]                   │ debg --- retry.tryForTime error: [data-test-subj="dashboardLandingPage"] is not displayed
[00:02:11]                   │ debg --- retry.tryForTime failed again with the same message...
[00:02:15]                   │ debg --- retry.tryForTime failed again with the same message...
[00:02:16]                   │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/dashboard feature controls dashboard security global dashboard all privileges_ no embeddable application privileges landing page shows _Create new Dashboard_ button.png"
[00:02:16]                   │ debg browser[INFO] http://localhost:6141/built_assets/dlls/vendors_3.bundle.dll.js 516:138197 "INFO: 2020-02-04T12:54:52Z
[00:02:16]                   │        Adding connection to http://localhost:6141/elasticsearch
[00:02:16]                   │
[00:02:16]                   │      "
[00:02:19]                   │ info Current URL is: http://localhost:6141/app/kibana#/dashboards
[00:02:19]                   │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/dashboard feature controls dashboard security global dashboard all privileges_ no embeddable application privileges landing page shows _Create new Dashboard_ button.html
[00:02:19]                   └- ✖ fail: "dashboard feature controls dashboard security global dashboard all privileges, no embeddable application privileges landing page shows "Create new Dashboard" button"
[00:02:19]                   │

Stack Trace

Error: expected testSubject(dashboardLandingPage) to exist
    at TestSubjects.existOrFail (/dev/shm/workspace/kibana/test/functional/services/test_subjects.ts:60:15)

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

@shahzad31 shahzad31 merged commit 5e86a8c into elastic:7.x Feb 4, 2020
@shahzad31 shahzad31 deleted the backport/7.x/pr-56612 branch February 4, 2020 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants