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

Create dashboard drilldown - select dashboard via filtering combo box and navigate to dashboarrd #60087

Closed

Conversation

mattkime
Copy link
Contributor

@mattkime mattkime commented Mar 13, 2020

Summary

Closes #55322

Use EuiComboBox to select dashboard. Loads up to 100 dashboards into list which can be filtered by phrase. Ensures selected item is properly displayed even if not in initial set. List should not display the current dashboard.

Ensure that the back button works after using a drilldown.

Implements drilldown execute function which navigates to dashboard with correct time range and filters.

Screen Shot 2020-03-16 at 11 40 31 PM

Screen Shot 2020-03-16 at 11 40 42 PM

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@streamich streamich mentioned this pull request Mar 13, 2020
45 tasks
@Dosant Dosant mentioned this pull request Mar 16, 2020
7 tasks
@mattkime mattkime marked this pull request as ready for review March 17, 2020 04:34
@mattkime mattkime changed the title partial progress on async loading / searching of dashboard titles Create dashboard drilldown - select dashboard via filtering combo box Mar 17, 2020
@mattkime mattkime requested a review from a team March 18, 2020 06:14
@mattkime mattkime requested a review from a team as a code owner March 18, 2020 06:14
mattkime and others added 3 commits March 18, 2020 01:27
except for back button - that would be addressed separatly
@streamich streamich mentioned this pull request Mar 19, 2020
7 tasks
@mattkime
Copy link
Contributor Author

mattkime commented Mar 24, 2020

  • Use current dashboard's date range disabled - fixed
  • Added icon to Apply filter to current view
  • Added save dashboard to test text

Screen Shot 2020-03-23 at 9 52 41 PM

- Verified `Use current dashboard's filters` functionality, enabled and disabled.

@streamich streamich changed the base branch from drilldowns to master March 24, 2020 07:39
@streamich streamich changed the base branch from master to drilldowns March 24, 2020 07:40
@Dosant
Copy link
Contributor

Dosant commented Mar 24, 2020

Use current dashboard's date range disabled - fixed

@mattkime, I am checking if we could do it differently. Instead of using destination dashboard, allow dashboard controller to pick the time. I'd say there was a bug in a dashboard_controller, not it drilldown url logic.
7b3ec89

@botelastic botelastic bot added the Feature:Embedding Embedding content via iFrame label Apr 3, 2020
…s_load_dashboard_list

# Conflicts:
#	src/legacy/core_plugins/kibana/public/dashboard/np_ready/dashboard_app_controller.tsx
#	src/legacy/core_plugins/kibana/public/dashboard/np_ready/dashboard_state_manager.ts
#	src/legacy/core_plugins/kibana/public/dashboard/np_ready/url_helper.test.ts
#	src/legacy/core_plugins/kibana/public/dashboard/np_ready/url_helper.ts
#	src/legacy/ui/public/chrome/api/sub_url_hooks.js
#	src/plugins/dashboard/public/url_generator.test.ts
#	src/plugins/dashboard/public/url_generator.ts
#	src/plugins/data/common/query/filter_manager/compare_filters.ts
@streamich streamich mentioned this pull request Apr 7, 2020
47 tasks
@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/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-centos-tests-xl-1586337953906548233] 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-centos-tests-xl-1586337953906548233] 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-centos-tests-xl-1586337953906548233] 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-centos-tests-xl-1586337953906548233] 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-centos-tests-xl-1586337953906548233] added user [ml_poweruser]
[00:00:00]             │ debg created user ml_poweruser
[00:00:00]             │ debg creating user ml_viewer
[00:00:01]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] added user [ml_viewer]
[00:00:01]             │ debg created user ml_viewer
[00:00:01]             │ debg creating user ml_unauthorized
[00:00:01]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] added user [ml_unauthorized]
[00:00:01]             │ debg created user ml_unauthorized
[00:00:01]           └-: feature controls
[00:00:01]             └-> "before all" hook
[00:00:01]             └-: security
[00:00:01]               └-> "before all" hook
[00:00:01]               └-> "before all" hook
[00:00:01]                 │ 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-centos-tests-xl-1586337953906548233] [.kibana_1/NqauR9cARmqAnsRsEgzvAQ] 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-centos-tests-xl-1586337953906548233] applying create index request using v1 templates []
[00:00:01]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] [.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:02]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] [.kibana/MYztEUE2TjONZVtrkA79Tw] update_mapping [_doc]
[00:00:02]                 │ info [empty_kibana] Indexed 2 docs into ".kibana"
[00:00:02]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] [.kibana/MYztEUE2TjONZVtrkA79Tw] update_mapping [_doc]
[00:00:02]                 │ debg Migrating saved objects
[00:00:03]                 │ proc [kibana]   log   [10:09:28.662] [info][savedobjects-service] Creating index .kibana_2.
[00:00:03]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] applying create index request using v1 templates []
[00:00:03]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:00:03]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] updating number_of_replicas to [0] for indices [.kibana_2]
[00:00:03]                 │ proc [kibana]   log   [10:09:28.987] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:00:03]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] applying create index request using v1 templates []
[00:00:03]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:00:03]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] updating number_of_replicas to [0] for indices [.kibana_1]
[00:00:03]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] applying create index request using v1 templates []
[00:00:03]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] [.tasks] creating index, cause [auto(task api)], templates [], shards [1]/[1], mappings [_doc]
[00:00:03]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] updating number_of_replicas to [0] for indices [.tasks]
[00:00:03]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] 1197 finished with response BulkByScrollResponse[took=92.5ms,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:04]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] [.kibana/MYztEUE2TjONZVtrkA79Tw] deleting index
[00:00:04]                 │ proc [kibana]   log   [10:09:29.886] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:00:04]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] [.kibana_2/1G2JlxGHR2qAtYpCcUIUMQ] update_mapping [_doc]
[00:00:04]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] [.kibana_2/1G2JlxGHR2qAtYpCcUIUMQ] update_mapping [_doc]
[00:00:04]                 │ proc [kibana]   log   [10:09:30.190] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:00:04]                 │ proc [kibana]   log   [10:09:30.364] [info][savedobjects-service] Finished in 1708ms.
[00:00:04]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:00:04]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] [.kibana_2/1G2JlxGHR2qAtYpCcUIUMQ] update_mapping [_doc]
[00:00:05]                 │ debg creating role global_all_role
[00:00:05]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] added role [global_all_role]
[00:00:05]                 │ debg SecurityPage.forceLogout
[00:00:05]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:00:05]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:00:06]                 │ debg Redirecting to /logout to force the logout
[00:00:06]                 │ debg Waiting on the login form to appear
[00:00:06]                 │ debg Waiting up to 100000ms for login form...
[00:00:06]                 │ debg browser[INFO] http://localhost:6131/logout?_t=1586340571830 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:06]                 │
[00:00:06]                 │ 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:06]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:00:09]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:00:10]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:00:14]                 │ debg browser[INFO] http://localhost:6131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-08T10:09:40Z
[00:00:14]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:00:14]                 │
[00:00:14]                 │      "
[00:00:14]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:00:14]                 │ 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:14]                 │
[00:00:14]                 │ 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 Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:00:19]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:00:19]                 │ debg browser[INFO] http://localhost:6131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-08T10:09:45Z
[00:00:19]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:00:19]                 │
[00:00:19]                 │      "
[00:00:20]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:01:08]               └-: machine_learning_user and global all
[00:01:08]                 └-> "before all" hook
[00:01:08]                 └-> "before all" hook
[00:01:08]                   │ debg creating user machine_learning_user
[00:01:08]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] added user [machine_learning_user]
[00:01:08]                   │ debg created user machine_learning_user
[00:01:08]                   │ debg navigating to login url: http://localhost:6131/login
[00:01:08]                   │ debg Navigate to: http://localhost:6131/login
[00:01:08]                   │ proc [kibana]   log   [10:10:34.557] [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=1586340634540 - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:01:09]                   │ debg ... sleep(700) end
[00:01:09]                   │ debg returned from get, calling refresh
[00:01:09]                   │ debg browser[INFO] http://localhost:6131/login?_t=1586340634540 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:09]                   │
[00:01:09]                   │ 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:09]                   │ debg currentUrl = http://localhost:6131/login
[00:01:09]                   │          appUrl = http://localhost:6131/login
[00:01:09]                   │ debg TestSubjects.find(kibanaChrome)
[00:01:09]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:14]                   │ debg browser[INFO] http://localhost:6131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-08T10:10:39Z
[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:24]                   │ debg browser[INFO] http://localhost:6131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-08T10:10:48Z
[00:01:24]                   │        Adding connection to http://localhost:6131/elasticsearch
[00:01:24]                   │
[00:01:24]                   │      "
[00:01:24]                   │ debg TestSubjects.exists(userMenu)
[00:01:24]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:01:26]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:01:27]                   │ debg TestSubjects.click(userMenuButton)
[00:01:27]                   │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:01:27]                   │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:01:27]                   │ debg Waiting up to 20000ms for user menu opened...
[00:01:27]                   │ debg TestSubjects.exists(userMenu)
[00:01:27]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:01:27]                   │ debg TestSubjects.exists(userMenu > logoutLink)
[00:01:27]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:01:27]                 └-> shows ML navlink
[00:01:27]                   └-> "before each" hook: global before each
[00:01:27]                   │ debg TestSubjects.find(navDrawer)
[00:01:27]                   │ debg Find.findByCssSelector('[data-test-subj="navDrawer"]') with timeout=10000
[00:01:27]                   │ 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:27]                   │ info Current URL is: http://localhost:6131/app/kibana#/home
[00:01:27]                   │ 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:27]                   └- ✖ fail: "machine learning feature controls security machine_learning_user and global all shows ML navlink"
[00:01:27]                   │

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-centos-tests-xl-1586337953906548233] 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-centos-tests-xl-1586337953906548233] 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-centos-tests-xl-1586337953906548233] 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-centos-tests-xl-1586337953906548233] 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-centos-tests-xl-1586337953906548233] added user [ml_poweruser]
[00:00:00]             │ debg created user ml_poweruser
[00:00:00]             │ debg creating user ml_viewer
[00:00:01]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] added user [ml_viewer]
[00:00:01]             │ debg created user ml_viewer
[00:00:01]             │ debg creating user ml_unauthorized
[00:00:01]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] added user [ml_unauthorized]
[00:00:01]             │ debg created user ml_unauthorized
[00:00:01]           └-: feature controls
[00:00:01]             └-> "before all" hook
[00:00:01]             └-: security
[00:00:01]               └-> "before all" hook
[00:00:01]               └-> "before all" hook
[00:00:01]                 │ 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-centos-tests-xl-1586337953906548233] [.kibana_1/W_89TbSyQL2_rA3ws76Z0w] 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-centos-tests-xl-1586337953906548233] applying create index request using v1 templates []
[00:00:01]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] [.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-centos-tests-xl-1586337953906548233] [.kibana/1X4Rg8hXTBKqQtE_cvob4g] update_mapping [_doc]
[00:00:01]                 │ debg Migrating saved objects
[00:00:02]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] [.kibana/1X4Rg8hXTBKqQtE_cvob4g] update_mapping [_doc]
[00:00:02]                 │ proc [kibana]   log   [10:04:35.267] [info][savedobjects-service] Creating index .kibana_2.
[00:00:02]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] applying create index request using v1 templates []
[00:00:02]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] [.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-centos-tests-xl-1586337953906548233] updating number_of_replicas to [0] for indices [.kibana_2]
[00:00:02]                 │ proc [kibana]   log   [10:04:35.464] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:00:02]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] applying create index request using v1 templates []
[00:00:03]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:00:03]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] updating number_of_replicas to [0] for indices [.kibana_1]
[00:00:03]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] applying create index request using v1 templates []
[00:00:03]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] [.tasks] creating index, cause [auto(task api)], templates [], shards [1]/[1], mappings [_doc]
[00:00:03]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] updating number_of_replicas to [0] for indices [.tasks]
[00:00:03]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] 1174 finished with response BulkByScrollResponse[took=154.5ms,timed_out=false,sliceId=null,updated=0,created=3,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:00:03]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] [.kibana/1X4Rg8hXTBKqQtE_cvob4g] deleting index
[00:00:03]                 │ proc [kibana]   log   [10:04:36.342] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:00:03]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] [.kibana_2/ht5q5Ix1QeufdXmwTSAWLg] update_mapping [_doc]
[00:00:04]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] [.kibana_2/ht5q5Ix1QeufdXmwTSAWLg] update_mapping [_doc]
[00:00:04]                 │ proc [kibana]   log   [10:04:36.608] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:00:04]                 │ proc [kibana]   log   [10:04:36.764] [info][savedobjects-service] Finished in 1501ms.
[00:00:04]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:00:04]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] [.kibana_2/ht5q5Ix1QeufdXmwTSAWLg] update_mapping [_doc]
[00:00:04]                 │ debg creating role global_all_role
[00:00:05]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] added role [global_all_role]
[00:00:05]                 │ debg SecurityPage.forceLogout
[00:00:05]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:00:05]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:00:05]                 │ debg Redirecting to /logout to force the logout
[00:00:06]                 │ debg Waiting on the login form to appear
[00:00:06]                 │ debg Waiting up to 100000ms for login form...
[00:00:06]                 │ debg browser[INFO] http://localhost:6131/logout?_t=1586340278306 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:06]                 │
[00:00:06]                 │ 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:06]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:00:08]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:00:09]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:00:14]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:00:15]                 │ debg browser[INFO] http://localhost:6131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-08T10:04:47Z
[00:00:15]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:00:15]                 │
[00:00:15]                 │      "
[00:00:15]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[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:18]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:00:19]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:00:22]                 │ debg browser[INFO] http://localhost:6131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-08T10:04:54Z
[00:00:22]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:00:22]                 │
[00:00:22]                 │      "
[00:01:16]               └-: machine_learning_user and global all
[00:01:16]                 └-> "before all" hook
[00:01:16]                 └-> "before all" hook
[00:01:16]                   │ debg creating user machine_learning_user
[00:01:16]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1586337953906548233] added user [machine_learning_user]
[00:01:16]                   │ debg created user machine_learning_user
[00:01:16]                   │ debg navigating to login url: http://localhost:6131/login
[00:01:16]                   │ debg Navigate to: http://localhost:6131/login
[00:01:16]                   │ proc [kibana]   log   [10:05:48.805] [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:16]                   │ debg ... sleep(700) start
[00:01:16]                   │ERROR browser[SEVERE] http://localhost:6131/login?_t=1586340348788 - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:01:17]                   │ debg ... sleep(700) end
[00:01:17]                   │ debg returned from get, calling refresh
[00:01:17]                   │ debg browser[INFO] http://localhost:6131/login?_t=1586340348788 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:17]                   │
[00:01:17]                   │ 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:17]                   │ debg currentUrl = http://localhost:6131/login
[00:01:17]                   │          appUrl = http://localhost:6131/login
[00:01:17]                   │ debg TestSubjects.find(kibanaChrome)
[00:01:17]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:23]                   │ debg browser[INFO] http://localhost:6131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-08T10:05:55Z
[00:01:23]                   │        Adding connection to http://localhost:6131/elasticsearch
[00:01:23]                   │
[00:01:23]                   │      "
[00:01:23]                   │ debg ... sleep(501) start
[00:01:23]                   │ debg ... sleep(501) end
[00:01:23]                   │ debg in navigateTo url = http://localhost:6131/login
[00:01:23]                   │ debg TestSubjects.exists(statusPageContainer)
[00:01:23]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:01:26]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:01:26]                   │ debg TestSubjects.setValue(loginUsername, machine_learning_user)
[00:01:26]                   │ debg TestSubjects.click(loginUsername)
[00:01:26]                   │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:01:26]                   │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:01:27]                   │ debg TestSubjects.setValue(loginPassword, machine_learning_user-password)
[00:01:27]                   │ debg TestSubjects.click(loginPassword)
[00:01:27]                   │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:01:27]                   │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:01:27]                   │ debg TestSubjects.click(loginSubmit)
[00:01:27]                   │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:01:27]                   │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:01:27]                   │ debg Waiting up to 20000ms for logout button visible...
[00:01:27]                   │ debg TestSubjects.exists(userMenuButton)
[00:01:27]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:01:30]                   │ 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:30]                   │
[00:01:30]                   │ 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:30]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenuButton"] is not displayed
[00:01:31]                   │ debg TestSubjects.exists(userMenuButton)
[00:01:31]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:01:33]                   │ debg browser[INFO] http://localhost:6131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-08T10:06:06Z
[00:01:33]                   │        Adding connection to http://localhost:6131/elasticsearch
[00:01:33]                   │
[00:01:33]                   │      "
[00:01:33]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenuButton"] is not displayed
[00:01:34]                   │ debg TestSubjects.exists(userMenuButton)
[00:01:34]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:01:35]                   │ debg TestSubjects.exists(userMenu)
[00:01:35]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:01:37]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:01:38]                   │ debg TestSubjects.click(userMenuButton)
[00:01:38]                   │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:01:38]                   │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:01:38]                   │ debg Waiting up to 20000ms for user menu opened...
[00:01:38]                   │ debg TestSubjects.exists(userMenu)
[00:01:38]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:01:38]                   │ debg TestSubjects.exists(userMenu > logoutLink)
[00:01:38]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:01:38]                 └-> shows ML navlink
[00:01:38]                   └-> "before each" hook: global before each
[00:01:38]                   │ debg TestSubjects.find(navDrawer)
[00:01:38]                   │ debg Find.findByCssSelector('[data-test-subj="navDrawer"]') with timeout=10000
[00:01:38]                   │ 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:38]                   │ info Current URL is: http://localhost:6131/app/kibana#/home
[00:01:39]                   │ 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:39]                   └- ✖ fail: "machine learning feature controls security machine_learning_user and global all shows ML navlink"
[00:01:39]                   │

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 / X-Pack API Integration Tests.x-pack/test/api_integration/apis/management/index_lifecycle_management/policies·js.apis management index lifecycle management policies list should have a default policy to manage the Watcher history indices

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: apis
[00:00:00]           └-> "before all" hook
[00:05:36]           └-: management
[00:05:36]             └-> "before all" hook
[00:06:06]             └-: index lifecycle management
[00:06:06]               └-> "before all" hook
[00:06:06]               └-: policies
[00:06:06]                 └-> "before all" hook
[00:06:06]                 └-: list
[00:06:06]                   └-> "before all" hook
[00:06:06]                   └-> should have a default policy to manage the Watcher history indices
[00:06:06]                     └-> "before each" hook: global before each
[00:06:06]                     └- ✖ fail: "apis management index lifecycle management policies list should have a default policy to manage the Watcher history indices"
[00:06:06]                     │

Stack Trace

{ Error: expected { version: 1,
  modified_date: '2019-04-30T14:30:00.000Z',
  policy: { phases: { delete: [Object] } },
  name: 'watch-history-ilm-policy' } to sort of equal { version: 1,
  modified_date: '2019-04-30T14:30:00.000Z',
  policy: { phases: { delete: [Object] } },
  name: 'watch-history-ilm-policy' }
    at Assertion.assert (/dev/shm/workspace/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.eql (/dev/shm/workspace/kibana/packages/kbn-expect/expect.js:244:8)
    at Context.it (test/api_integration/apis/management/index_lifecycle_management/policies.js:43:27)
  actual:
   '{\n  "modified_date": "2019-04-30T14:30:00.000Z"\n  "name": "watch-history-ilm-policy"\n  "policy": {\n    "phases": {\n      "delete": {\n        "actions": {\n          "delete": {\n            "delete_searchable_snapshot": true\n          }\n        }\n        "min_age": "7d"\n      }\n    }\n  }\n  "version": 1\n}',
  expected:
   '{\n  "modified_date": "2019-04-30T14:30:00.000Z"\n  "name": "watch-history-ilm-policy"\n  "policy": {\n    "phases": {\n      "delete": {\n        "actions": {\n          "delete": {}\n        }\n        "min_age": "7d"\n      }\n    }\n  }\n  "version": 1\n}',
  showDiff: true }

History

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

@Dosant Dosant self-assigned this Apr 8, 2020
@Dosant
Copy link
Contributor

Dosant commented Apr 9, 2020

Decided with @mattkime to close this for now and reopen cleaned up and with clean history to make it easier to review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Drilldowns Embeddable panel Drilldowns Feature:Embedding Embedding content via iFrame v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants