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

[TSVB] Remove vis_type_timeseries_enhanced plugin #89274

Merged
merged 6 commits into from
Jan 28, 2021

Conversation

alexwizp
Copy link
Contributor

@alexwizp alexwizp commented Jan 26, 2021

Dev Docs

All code from x-pack/vis_type_timeseries_enhanced was moved into src/vis_type_timeseries due changes in licensing

Summary

The x-pack/vis_type_timeseries_enhanced plugin was responsible for the Rollup search functionality in the TSVB plugin.
Due to license changes, we no longer need to have a separate plugin for this and the code can be moved to src

API changes:

  • addSearchStrategy method was removed from server API of vis_type_timeseries plugin.
  • AbstractSearchStrategy, ReqFacade, VisPayload and DefaultSearchCapabilities were removed from static exports of vis_type_timeseries plugin.

Testing notes

TSVB plugin should correctly works with all types of indexes. For testing normal kibana indexes you can create a new visualization based on some of our sample data.

  • [eCommerce] Promotion Tracking visualization
    image
    no errors were found. All existing visualizations works as before

  • Search by Rollup index
    tbd

@alexwizp alexwizp force-pushed the vis_type_timeseries_enchanced branch from e49b435 to c6d2a2f Compare January 26, 2021 11:34
@elastic elastic deleted a comment from kibanamachine Jan 26, 2021
@alexwizp alexwizp force-pushed the vis_type_timeseries_enchanced branch from d8f2be0 to 7ea188e Compare January 26, 2021 12:03
@elastic elastic deleted a comment from kibanamachine Jan 26, 2021
@alexwizp alexwizp self-assigned this Jan 26, 2021
@alexwizp alexwizp added Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.12.0 v8.0.0 Feature:TSVB TSVB (Time Series Visual Builder) release_note:plugin_api_changes Contains a Plugin API changes section for the breaking plugin API changes section. labels Jan 26, 2021
@alexwizp
Copy link
Contributor Author

@elasticmachine merge upstream

@alexwizp
Copy link
Contributor Author

@elasticmachine merge upstream

@alexwizp alexwizp marked this pull request as ready for review January 27, 2021 09:05
@alexwizp alexwizp requested a review from a team January 27, 2021 09:05
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

Copy link
Contributor

@VladLasitsa VladLasitsa left a comment

Choose a reason for hiding this comment

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

LGTM

@stratoula
Copy link
Contributor

@alexwizp can you also remove it from the codeowners?

@alexwizp
Copy link
Contributor Author

@stratoula thanks, my IDE does not search hidden folders. I forgot about it. 🙇

Copy link
Contributor

@stratoula stratoula left a comment

Choose a reason for hiding this comment

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

Great PR @alexwizp! Code LGTM, I tested it locally and it works fine 💯

@stratoula stratoula changed the title [TSVB] get rid of vis_type_timeseries_enhanced [TSVB] Remove vis_type_timeseries_enhanced plugin Jan 27, 2021
@alexwizp alexwizp merged commit 9c410b8 into elastic:master Jan 28, 2021
alexwizp added a commit to alexwizp/kibana that referenced this pull request Jan 28, 2021
* [TSVB] get rid of vis_type_timeseries_enhanced

* add search strategy should be called from setup hook

* remove vis_type_timeseries_enhanced from CODEOWNERS

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	.github/CODEOWNERS
jloleysens added a commit to jloleysens/kibana that referenced this pull request Jan 28, 2021
…y-tests

* 'master' of github.com:elastic/kibana: (31 commits)
  [Discover] Add grid flyout jest test (elastic#89088)
  [Search Sessions] Improve session restoration back button (elastic#87635)
  [TSVB] Remove vis_type_timeseries_enhanced plugin (elastic#89274)
  [Security Solution] Init Osquery plugin (elastic#87109)
  [Fleet] Do not defined aliases inside datastream template (elastic#89512)
  skip flaky suite (elastic#86950)
  chore(NA): bazel machinery installation on kbn bootstrap (elastic#89469)
  [build/docker] Add support for centos ARM builds (elastic#84831)
  Convert default_watch.json to a JS object in order to avoid TS complaints (elastic#89488)
  [CI] Decrease number of Jest workers (elastic#89504)
  [Maps] remove maps_oss TS project (elastic#89502)
  Adds migration settings to Docker (elastic#89501)
  [Lens] Fix crash in transition from unique count to last value (elastic#88916)
  [kbn-es] Always use bundled JDK when starting Elasticsearch (elastic#89437)
  unskip getting_started/shakespeare test elasticsearch 64016 (elastic#89346)
  [Maps] migrate maps, maps_file_upload, and maps_legacy_licensing to TS projects (elastic#89439)
  skip flaky suite (elastic#89478)
  skip flaky suite (elastic#89476)
  skip flaky suite (elastic#89477)
  skip flaky suite (elastic#89475)
  ...

# Conflicts:
#	x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/components/phases/cold_phase/cold_phase.tsx
jloleysens added a commit to jloleysens/kibana that referenced this pull request Jan 28, 2021
…updates-and-timeline-cleanup

* 'master' of github.com:elastic/kibana: (44 commits)
  [Discover] Add grid flyout jest test (elastic#89088)
  [Search Sessions] Improve session restoration back button (elastic#87635)
  [TSVB] Remove vis_type_timeseries_enhanced plugin (elastic#89274)
  [Security Solution] Init Osquery plugin (elastic#87109)
  [Fleet] Do not defined aliases inside datastream template (elastic#89512)
  skip flaky suite (elastic#86950)
  chore(NA): bazel machinery installation on kbn bootstrap (elastic#89469)
  [build/docker] Add support for centos ARM builds (elastic#84831)
  Convert default_watch.json to a JS object in order to avoid TS complaints (elastic#89488)
  [CI] Decrease number of Jest workers (elastic#89504)
  [Maps] remove maps_oss TS project (elastic#89502)
  Adds migration settings to Docker (elastic#89501)
  [Lens] Fix crash in transition from unique count to last value (elastic#88916)
  [kbn-es] Always use bundled JDK when starting Elasticsearch (elastic#89437)
  unskip getting_started/shakespeare test elasticsearch 64016 (elastic#89346)
  [Maps] migrate maps, maps_file_upload, and maps_legacy_licensing to TS projects (elastic#89439)
  skip flaky suite (elastic#89478)
  skip flaky suite (elastic#89476)
  skip flaky suite (elastic#89477)
  skip flaky suite (elastic#89475)
  ...

# Conflicts:
#	x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/components/phases/hot_phase/hot_phase.tsx
#	x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/lib/absolute_timing_to_relative_timing.ts
alexwizp added a commit that referenced this pull request Jan 28, 2021
* [TSVB] get rid of vis_type_timeseries_enhanced

* add search strategy should be called from setup hook

* remove vis_type_timeseries_enhanced from CODEOWNERS

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	.github/CODEOWNERS
@gchaps
Copy link
Contributor

gchaps commented Mar 3, 2021

@alexwizp For the script to pick up this PR for the API changes doc, you need to use "Dev Docs" instead of "Release Notes" in the summary. I updated the summary.

@kibanamachine
Copy link
Contributor

kibanamachine commented Mar 4, 2021

💔 Build Failed

Failed CI Steps


Test Failures

Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/ml/data_frame_analytics/cloning·ts.machine learning data frame analytics jobs cloning supported by UI form classification job supported by the form opens the existing job in the data frame analytics job wizard

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]           └-: 
[00:00:00]             └-> "before all" hook
[00:00:00]             └-> "before all" hook
[00:00:00]               │ debg creating role ft_ml_source
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] added role [ft_ml_source]
[00:00:00]               │ debg creating role ft_ml_source_readonly
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] added role [ft_ml_source_readonly]
[00:00:00]               │ debg creating role ft_ml_dest
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] added role [ft_ml_dest]
[00:00:00]               │ debg creating role ft_ml_dest_readonly
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] added role [ft_ml_dest_readonly]
[00:00:00]               │ debg creating role ft_ml_ui_extras
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] added role [ft_ml_ui_extras]
[00:00:00]               │ debg creating role ft_default_space_ml_all
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] added role [ft_default_space_ml_all]
[00:00:00]               │ debg creating role ft_default_space1_ml_all
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] added role [ft_default_space1_ml_all]
[00:00:00]               │ debg creating role ft_all_spaces_ml_all
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] added role [ft_all_spaces_ml_all]
[00:00:00]               │ debg creating role ft_default_space_ml_read
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] added role [ft_default_space_ml_read]
[00:00:00]               │ debg creating role ft_default_space1_ml_read
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] added role [ft_default_space1_ml_read]
[00:00:00]               │ debg creating role ft_all_spaces_ml_read
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] added role [ft_all_spaces_ml_read]
[00:00:00]               │ debg creating role ft_default_space_ml_none
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] added role [ft_default_space_ml_none]
[00:00:00]               │ debg creating user ft_ml_poweruser
[00:00:00]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] added user [ft_ml_poweruser]
[00:00:00]               │ debg created user ft_ml_poweruser
[00:00:00]               │ debg creating user ft_ml_poweruser_spaces
[00:00:00]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] added user [ft_ml_poweruser_spaces]
[00:00:00]               │ debg created user ft_ml_poweruser_spaces
[00:00:00]               │ debg creating user ft_ml_poweruser_space1
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] added user [ft_ml_poweruser_space1]
[00:00:01]               │ debg created user ft_ml_poweruser_space1
[00:00:01]               │ debg creating user ft_ml_poweruser_all_spaces
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] added user [ft_ml_poweruser_all_spaces]
[00:00:01]               │ debg created user ft_ml_poweruser_all_spaces
[00:00:01]               │ debg creating user ft_ml_viewer
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] added user [ft_ml_viewer]
[00:00:01]               │ debg created user ft_ml_viewer
[00:00:01]               │ debg creating user ft_ml_viewer_spaces
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] added user [ft_ml_viewer_spaces]
[00:00:01]               │ debg created user ft_ml_viewer_spaces
[00:00:01]               │ debg creating user ft_ml_viewer_space1
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] added user [ft_ml_viewer_space1]
[00:00:01]               │ debg created user ft_ml_viewer_space1
[00:00:01]               │ debg creating user ft_ml_viewer_all_spaces
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] added user [ft_ml_viewer_all_spaces]
[00:00:01]               │ debg created user ft_ml_viewer_all_spaces
[00:00:01]               │ debg creating user ft_ml_unauthorized
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] added user [ft_ml_unauthorized]
[00:00:01]               │ debg created user ft_ml_unauthorized
[00:00:01]               │ debg creating user ft_ml_unauthorized_spaces
[00:00:02]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] added user [ft_ml_unauthorized_spaces]
[00:00:02]               │ debg created user ft_ml_unauthorized_spaces
[00:43:27]             └-: data frame analytics
[00:43:27]               └-> "before all" hook
[00:46:25]               └-: jobs cloning supported by UI form
[00:46:25]                 └-> "before all" hook
[00:46:25]                 └-> "before all" hook
[00:46:25]                   │ debg applying update to kibana config: {"dateFormat:tz":"UTC"}
[00:46:25]                   │ debg SecurityPage.forceLogout
[00:46:25]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:46:26]                   │ debg --- retry.tryForTime error: .login-form is not displayed
[00:46:26]                   │ debg Redirecting to /logout to force the logout
[00:46:26]                   │ debg Waiting on the login form to appear
[00:46:26]                   │ debg Waiting for Login Page to appear.
[00:46:26]                   │ debg Waiting up to 100000ms for login page...
[00:46:26]                   │ debg browser[INFO] http://localhost:61211/logout?_t=1614819690732 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:46:26]                   │
[00:46:26]                   │ debg browser[INFO] http://localhost:61211/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:46:26]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:46:28]                   │ debg browser[INFO] http://localhost:61211/login?msg=LOGGED_OUT 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:46:28]                   │
[00:46:28]                   │ debg browser[INFO] http://localhost:61211/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:46:28]                   │ERROR browser[SEVERE] http://localhost:61211/internal/spaces/_active_space - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:46:28]                   │ERROR browser[SEVERE] http://localhost:61211/internal/security/me - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:46:28]                   │ debg browser[INFO] http://localhost:61211/39891/bundles/core/core.entry.js 12:159352 "Detected an unhandled Promise rejection.
[00:46:28]                   │      Error: Unauthorized"
[00:46:28]                   │ERROR browser[SEVERE] http://localhost:61211/39891/bundles/core/core.entry.js 5:3002 
[00:46:28]                   │ERROR browser[SEVERE] http://localhost:61211/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:46:28]                   │ debg TestSubjects.exists(loginForm)
[00:46:28]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:46:28]                   │ debg Waiting for Login Form to appear.
[00:46:28]                   │ debg Waiting up to 100000ms for login form...
[00:46:28]                   │ debg TestSubjects.exists(loginForm)
[00:46:28]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:46:28]                   │ debg TestSubjects.setValue(loginUsername, ft_ml_poweruser)
[00:46:28]                   │ debg TestSubjects.click(loginUsername)
[00:46:28]                   │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:46:28]                   │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:46:29]                   │ debg TestSubjects.setValue(loginPassword, mlp001)
[00:46:29]                   │ debg TestSubjects.click(loginPassword)
[00:46:29]                   │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:46:29]                   │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:46:29]                   │ debg TestSubjects.click(loginSubmit)
[00:46:29]                   │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:46:29]                   │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:46:29]                   │ debg Waiting for login result, expected: chrome.
[00:46:29]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] .app-wrapper:not(.hidden-chrome)') with timeout=20000
[00:46:29]                   │ proc [kibana]   log   [01:01:33.455] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:46:30]                   │ debg browser[INFO] http://localhost:61211/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:46:30]                   │
[00:46:30]                   │ debg browser[INFO] http://localhost:61211/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:46:30]                   │ debg Finished login process currentUrl = http://localhost:61211/app/home#/
[00:46:30]                   │ debg Waiting up to 20000ms for logout button visible...
[00:46:30]                   │ debg TestSubjects.exists(userMenuButton)
[00:46:30]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:46:31]                   │ debg TestSubjects.exists(userMenu)
[00:46:31]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:46:33]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:46:34]                   │ debg TestSubjects.click(userMenuButton)
[00:46:34]                   │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:46:34]                   │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:46:34]                   │ debg TestSubjects.exists(userMenu)
[00:46:34]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=120000
[00:46:34]                   │ debg TestSubjects.exists(userMenu > logoutLink)
[00:46:34]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:46:34]                 └-: classification job supported by the form
[00:46:34]                   └-> "before all" hook
[00:46:34]                   └-> "before all" hook
[00:46:34]                     │ info [ml/bm_classification] Loading "mappings.json"
[00:46:34]                     │ info [ml/bm_classification] Loading "data.json.gz"
[00:46:34]                     │ info [ml/bm_classification] Skipped restore for existing index "ft_bank_marketing"
[00:46:34]                     │ debg Searching for 'index-pattern' with title 'ft_bank_marketing'...
[00:46:34]                     │ debg  > Found 'fd5f9880-7c84-11eb-8031-f73787518c88'
[00:46:34]                     │ debg Index pattern with title 'ft_bank_marketing' already exists. Nothing to create.
[00:46:34]                     │ debg Creating data frame analytic job with id 'bm_1_1614816903281' ...
[00:46:34]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] [.ml-config] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[00:46:34]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] updating number_of_replicas to [0] for indices [.ml-config]
[00:46:34]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] [.ml-annotations-6] creating index, cause [api], templates [], shards [1]/[1]
[00:46:34]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] updating number_of_replicas to [0] for indices [.ml-annotations-6]
[00:46:34]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] [.ml-notifications-000001] creating index, cause [auto(bulk api)], templates [.ml-notifications-000001], shards [1]/[1]
[00:46:34]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] updating number_of_replicas to [0] for indices [.ml-notifications-000001]
[00:46:34]                     │ debg Waiting up to 5000ms for 'bm_1_1614816903281' to exist...
[00:46:34]                     │ debg Fetching data frame analytics job 'bm_1_1614816903281'...
[00:46:34]                     │ debg > DFA job fetched.
[00:46:34]                     │ debg > DFA job created.
[00:46:34]                     │ debg navigating to ml url: http://localhost:61211/app/ml
[00:46:34]                     │ debg navigate to: http://localhost:61211/app/ml
[00:46:35]                     │ debg browser[INFO] http://localhost:61211/app/ml?_t=1614819699124 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:46:35]                     │
[00:46:35]                     │ debg browser[INFO] http://localhost:61211/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:46:35]                     │ debg ... sleep(700) start
[00:46:35]                     │ debg ... sleep(700) end
[00:46:35]                     │ debg returned from get, calling refresh
[00:46:36]                     │ debg browser[INFO] http://localhost:61211/app/ml?_t=1614819699124 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:46:36]                     │
[00:46:36]                     │ debg browser[INFO] http://localhost:61211/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:46:36]                     │ debg currentUrl = http://localhost:61211/app/ml
[00:46:36]                     │          appUrl = http://localhost:61211/app/ml
[00:46:36]                     │ debg TestSubjects.find(kibanaChrome)
[00:46:36]                     │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:46:36]                     │ debg ... sleep(501) start
[00:46:37]                     │ debg ... sleep(501) end
[00:46:37]                     │ debg in navigateTo url = http://localhost:61211/app/ml/overview
[00:46:37]                     │ debg --- retry.try error: URL changed, waiting for it to settle
[00:46:37]                     │ debg ... sleep(501) start
[00:46:38]                     │ debg ... sleep(501) end
[00:46:38]                     │ debg in navigateTo url = http://localhost:61211/app/ml/overview
[00:46:38]                     │ debg TestSubjects.exists(statusPageContainer)
[00:46:38]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:46:40]                     │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:46:41]                     │ debg TestSubjects.exists(mlApp)
[00:46:41]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlApp"]') with timeout=2000
[00:46:41]                     │ debg TestSubjects.click(~mlMainTab & ~dataFrameAnalytics)
[00:46:41]                     │ debg Find.clickByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="dataFrameAnalytics"]') with timeout=10000
[00:46:41]                     │ debg Find.findByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="dataFrameAnalytics"]') with timeout=10000
[00:46:41]                     │ debg TestSubjects.exists(~mlMainTab & ~dataFrameAnalytics & ~selected)
[00:46:41]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="dataFrameAnalytics"][data-test-subj~="selected"]') with timeout=120000
[00:46:41]                     │ debg TestSubjects.exists(mlPageDataFrameAnalytics)
[00:46:41]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageDataFrameAnalytics"]') with timeout=120000
[00:46:41]                     │ debg TestSubjects.exists(~mlAnalyticsTable)
[00:46:41]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlAnalyticsTable"]') with timeout=60000
[00:46:41]                     │ debg TestSubjects.exists(mlAnalyticsTable loaded)
[00:46:41]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsTable loaded"]') with timeout=30000
[00:46:42]                     │ debg TestSubjects.exists(~mlAnalyticsTable)
[00:46:42]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlAnalyticsTable"]') with timeout=60000
[00:46:42]                     │ debg TestSubjects.exists(mlAnalyticsTable loaded)
[00:46:42]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsTable loaded"]') with timeout=30000
[00:46:42]                     │ debg TestSubjects.find(mlAnalyticsTableContainer)
[00:46:42]                     │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsTableContainer"]') with timeout=10000
[00:46:42]                     │ debg TestSubjects.find(mlAnalyticsTableContainer)
[00:46:42]                     │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsTableContainer"]') with timeout=10000
[00:46:42]                     │ debg TestSubjects.find(~mlAnalyticsTable)
[00:46:42]                     │ debg Find.findByCssSelector('[data-test-subj~="mlAnalyticsTable"]') with timeout=10000
[00:46:42]                     │ debg TestSubjects.exists(mlAnalyticsJobDeleteButton)
[00:46:42]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsJobDeleteButton"]') with timeout=2500
[00:46:45]                     │ debg --- retry.tryForTime error: [data-test-subj="mlAnalyticsJobDeleteButton"] is not displayed
[00:46:45]                     │ debg TestSubjects.click(~mlAnalyticsTable > ~row-bm_1_1614816903281 > euiCollapsedItemActionsButton)
[00:46:45]                     │ debg Find.clickByCssSelector('[data-test-subj~="mlAnalyticsTable"] [data-test-subj~="row-bm_1_1614816903281"] [data-test-subj="euiCollapsedItemActionsButton"]') with timeout=10000
[00:46:45]                     │ debg Find.findByCssSelector('[data-test-subj~="mlAnalyticsTable"] [data-test-subj~="row-bm_1_1614816903281"] [data-test-subj="euiCollapsedItemActionsButton"]') with timeout=10000
[00:46:45]                     │ debg TestSubjects.exists(mlAnalyticsJobDeleteButton)
[00:46:45]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsJobDeleteButton"]') with timeout=5000
[00:46:45]                     │ debg TestSubjects.click(mlAnalyticsJobCloneButton)
[00:46:45]                     │ debg Find.clickByCssSelector('[data-test-subj="mlAnalyticsJobCloneButton"]') with timeout=10000
[00:46:45]                     │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsJobCloneButton"]') with timeout=10000
[00:46:45]                     │ debg TestSubjects.exists(mlAnalyticsCreationContainer)
[00:46:45]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreationContainer"]') with timeout=120000
[00:46:46]                     │ debg browser[INFO] http://localhost:61211/39891/bundles/plugin/ml/ml.chunk.8.js 2:171914 "Property \"early_stopping_enabled\" is unknown."
[00:46:46]                   └-> opens the existing job in the data frame analytics job wizard
[00:46:46]                     └-> "before each" hook: global before each
[00:46:46]                     │ debg === TEST STEP === should open the wizard with a proper header
[00:46:46]                     │ debg TestSubjects.getVisibleText(mlDataFrameAnalyticsWizardHeaderTitle)
[00:46:46]                     │ debg TestSubjects.find(mlDataFrameAnalyticsWizardHeaderTitle)
[00:46:46]                     │ debg Find.findByCssSelector('[data-test-subj="mlDataFrameAnalyticsWizardHeaderTitle"]') with timeout=10000
[00:46:46]                     │ debg TestSubjects.exists(mlAnalyticsCreateJobWizardConfigurationStep active)
[00:46:46]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreateJobWizardConfigurationStep active"]') with timeout=120000
[00:46:49]                     │ debg --- retry.tryForTime error: [data-test-subj="mlAnalyticsCreateJobWizardConfigurationStep active"] is not displayed
[00:46:52]                     │ debg --- retry.tryForTime failed again with the same message...
[00:46:55]                     │ debg --- retry.tryForTime failed again with the same message...
[00:46:58]                     │ debg --- retry.tryForTime failed again with the same message...
[00:47:01]                     │ debg --- retry.tryForTime failed again with the same message...
[00:47:04]                     │ debg --- retry.tryForTime failed again with the same message...
[00:47:07]                     │ debg --- retry.tryForTime failed again with the same message...
[00:47:10]                     │ debg --- retry.tryForTime failed again with the same message...
[00:47:13]                     │ debg --- retry.tryForTime failed again with the same message...
[00:47:16]                     │ debg --- retry.tryForTime failed again with the same message...
[00:47:19]                     │ debg --- retry.tryForTime failed again with the same message...
[00:47:22]                     │ debg --- retry.tryForTime failed again with the same message...
[00:47:25]                     │ debg --- retry.tryForTime failed again with the same message...
[00:47:28]                     │ debg --- retry.tryForTime failed again with the same message...
[00:47:31]                     │ debg --- retry.tryForTime failed again with the same message...
[00:47:34]                     │ debg --- retry.tryForTime failed again with the same message...
[00:47:37]                     │ debg --- retry.tryForTime failed again with the same message...
[00:47:40]                     │ debg --- retry.tryForTime failed again with the same message...
[00:47:43]                     │ debg --- retry.tryForTime failed again with the same message...
[00:47:46]                     │ debg --- retry.tryForTime failed again with the same message...
[00:47:49]                     │ debg --- retry.tryForTime failed again with the same message...
[00:47:52]                     │ debg --- retry.tryForTime failed again with the same message...
[00:47:55]                     │ debg --- retry.tryForTime failed again with the same message...
[00:47:58]                     │ debg --- retry.tryForTime failed again with the same message...
[00:48:01]                     │ debg --- retry.tryForTime failed again with the same message...
[00:48:04]                     │ debg --- retry.tryForTime failed again with the same message...
[00:48:07]                     │ debg --- retry.tryForTime failed again with the same message...
[00:48:11]                     │ debg --- retry.tryForTime failed again with the same message...
[00:48:14]                     │ debg --- retry.tryForTime failed again with the same message...
[00:48:17]                     │ debg --- retry.tryForTime failed again with the same message...
[00:48:20]                     │ debg --- retry.tryForTime failed again with the same message...
[00:48:23]                     │ debg --- retry.tryForTime failed again with the same message...
[00:48:26]                     │ debg --- retry.tryForTime failed again with the same message...
[00:48:29]                     │ debg --- retry.tryForTime failed again with the same message...
[00:48:32]                     │ debg --- retry.tryForTime failed again with the same message...
[00:48:35]                     │ debg --- retry.tryForTime failed again with the same message...
[00:48:38]                     │ debg --- retry.tryForTime failed again with the same message...
[00:48:41]                     │ debg --- retry.tryForTime failed again with the same message...
[00:48:44]                     │ debg --- retry.tryForTime failed again with the same message...
[00:48:47]                     │ debg --- retry.tryForTime failed again with the same message...
[00:48:47]                     │ info Taking screenshot "/dev/shm/workspace/parallel/21/kibana/x-pack/test/functional/screenshots/failure/machine learning  data frame analytics jobs cloning supported by UI form classification job supported by the form opens the existing job in the data frame analytics job wizard.png"
[00:48:48]                     │ info Current URL is: http://localhost:61211/app/ml/data_frame_analytics/new_job?index=fd5f9880-7c84-11eb-8031-f73787518c88&jobId=bm_1_1614816903281
[00:48:48]                     │ info Saving page source to: /dev/shm/workspace/parallel/21/kibana/x-pack/test/functional/failure_debug/html/machine learning  data frame analytics jobs cloning supported by UI form classification job supported by the form opens the existing job in the data frame analytics job wizard.html
[00:48:48]                     └- ✖ fail: machine learning  data frame analytics jobs cloning supported by UI form classification job supported by the form opens the existing job in the data frame analytics job wizard
[00:48:48]                     │      Error: expected testSubject(mlAnalyticsCreateJobWizardConfigurationStep active) to exist
[00:48:48]                     │       at TestSubjects.existOrFail (/dev/shm/workspace/parallel/21/kibana/test/functional/services/common/test_subjects.ts:51:15)
[00:48:48]                     │       at Object.assertConfigurationStepActive (test/functional/services/ml/data_frame_analytics_creation.ts:316:7)
[00:48:48]                     │       at Context.<anonymous> (test/functional/apps/ml/data_frame_analytics/cloning.ts:166:11)
[00:48:48]                     │       at Object.apply (/dev/shm/workspace/parallel/21/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:48:48]                     │ 
[00:48:48]                     │ 

Stack Trace

Error: expected testSubject(mlAnalyticsCreateJobWizardConfigurationStep active) to exist
    at TestSubjects.existOrFail (/dev/shm/workspace/parallel/21/kibana/test/functional/services/common/test_subjects.ts:51:15)
    at Object.assertConfigurationStepActive (test/functional/services/ml/data_frame_analytics_creation.ts:316:7)
    at Context.<anonymous> (test/functional/apps/ml/data_frame_analytics/cloning.ts:166:11)
    at Object.apply (/dev/shm/workspace/parallel/21/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)

X-Pack EPM API Integration Tests.x-pack/test/fleet_api_integration/apis/fleet_setup·ts.Fleet Endpoints fleet_setup should not create a fleet_enroll role if one does not already exist

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: Fleet Endpoints
[00:00:00]           └-> "before all" hook
[00:00:00]           └-: fleet_setup
[00:00:00]             └-> "before all" hook
[00:00:00]             └-> should not create a fleet_enroll role if one does not already exist
[00:00:00]               └-> "before each" hook: global before each
[00:00:00]               └-> "before each" hook: beforeSetupWithDockerRegistry
[00:00:00]               └-> "before each" hook
[00:00:00]               │ proc [kibana]   log   [01:02:33.266] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]               │ proc [kibana]   log   [01:02:33.270] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]               │ info [docker:registry] 2021/03/04 01:02:33 source.ip: 172.17.0.1:58518, url.original: /search?package=endpoint&internal=true&experimental=true
[00:00:00]               │ info [docker:registry] 2021/03/04 01:02:33 source.ip: 172.17.0.1:58524, url.original: /search?package=system&internal=true&experimental=true
[00:00:00]               │ proc [kibana]   log   [01:02:33.306] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]               │ proc [kibana]   log   [01:02:33.308] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]               │ info [docker:registry] 2021/03/04 01:02:33 source.ip: 172.17.0.1:58544, url.original: /search?package=system&internal=true&experimental=true
[00:00:00]               │ info [docker:registry] 2021/03/04 01:02:33 source.ip: 172.17.0.1:58542, url.original: /search?package=endpoint&internal=true&experimental=true
[00:00:00]               │ proc [kibana]   log   [01:02:33.316] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]               │ proc [kibana]   log   [01:02:33.319] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]               │ info [docker:registry] 2021/03/04 01:02:33 source.ip: 172.17.0.1:58548, url.original: /package/system/0.5.3
[00:00:00]               │ info [docker:registry] 2021/03/04 01:02:33 source.ip: 172.17.0.1:58552, url.original: /package/endpoint/0.13.1
[00:00:00]               │ info [docker:registry] 2021/03/04 01:02:33 source.ip: 172.17.0.1:58558, url.original: /package/system/0.5.3/
[00:00:00]               │ info [docker:registry] 2021/03/04 01:02:33 source.ip: 172.17.0.1:58560, url.original: /package/endpoint/0.13.1/
[00:00:00]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] [.kibana_1/PtWQHUOhTvSdadM-i6r5zg] update_mapping [_doc]
[00:00:00]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] [.ds-ilm-history-5-2021.03.04-000001] creating index, cause [initialize_data_stream], templates [ilm-history], shards [1]/[0]
[00:00:00]               │ info [o.e.c.m.MetadataCreateDataStreamService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] adding data stream [ilm-history-5] with write index [.ds-ilm-history-5-2021.03.04-000001] and backing indices []
[00:00:00]               │ proc [kibana]   log   [01:02:33.435] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]               │ info [docker:registry] 2021/03/04 01:02:33 source.ip: 172.17.0.1:58570, url.original: /epr/system/system-0.5.3.zip
[00:00:00]               │ proc [kibana]   log   [01:02:33.473] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]               │ info [docker:registry] 2021/03/04 01:02:33 source.ip: 172.17.0.1:58576, url.original: /epr/endpoint/endpoint-0.13.1.zip
[00:00:00]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] [.kibana_1/PtWQHUOhTvSdadM-i6r5zg] update_mapping [_doc]
[00:00:00]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.ds-ilm-history-5-2021.03.04-000001][0]]])." previous.health="YELLOW" reason="shards started [[.ds-ilm-history-5-2021.03.04-000001][0]]"
[00:00:00]               │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] moving index [.ds-ilm-history-5-2021.03.04-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [ilm-history-ilm-policy]
[00:00:00]               │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] moving index [.ds-ilm-history-5-2021.03.04-000001] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] in policy [ilm-history-ilm-policy]
[00:00:00]               │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] moving index [.ds-ilm-history-5-2021.03.04-000001] from [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] to [{"phase":"hot","action":"rollover","name":"check-rollover-ready"}] in policy [ilm-history-ilm-policy]
[00:00:01]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] [.kibana_1/PtWQHUOhTvSdadM-i6r5zg] update_mapping [_doc]
[00:00:01]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] [.kibana_1/PtWQHUOhTvSdadM-i6r5zg] update_mapping [_doc]
[00:00:01]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] [.kibana_1/PtWQHUOhTvSdadM-i6r5zg] update_mapping [_doc]
[00:00:02]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] [.kibana_1/PtWQHUOhTvSdadM-i6r5zg] update_mapping [_doc]
[00:00:06]               │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] adding component template [logs-endpoint.alerts-mappings]
[00:00:06]               │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] adding component template [logs-endpoint.file-mappings]
[00:00:06]               │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] adding component template [logs-endpoint.library-mappings]
[00:00:06]               │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] adding component template [logs-endpoint.registry-mappings]
[00:00:06]               │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] adding component template [metrics-endpoint.metrics-mappings]
[00:00:06]               │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] adding component template [logs-endpoint.security-mappings]
[00:00:06]               │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] adding component template [metrics-endpoint.metadata-mappings]
[00:00:06]               │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] adding component template [metrics-endpoint.policy-mappings]
[00:00:06]               │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] adding component template [logs-endpoint.network-mappings]
[00:00:06]               │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] adding component template [logs-endpoint.process-mappings]
[00:00:06]               │ proc [kibana]   log   [01:02:39.593] [error][fleet][plugins] uninstalling system-0.5.3 after error installing
[00:00:06]               │ proc [kibana]   log   [01:02:39.605] [error][fleet][plugins] failed to uninstall or rollback package after installation error Error: system is installed by default and cannot be removed
[00:00:06]               │ proc [kibana]   log   [01:02:39.689] [error][fleet][plugins] uninstalling endpoint-0.13.1 after error installing
[00:00:06]               │ proc [kibana]   log   [01:02:39.700] [error][fleet][plugins] failed to uninstall or rollback package after installation error Error: endpoint is installed by default and cannot be removed
[00:00:06]               │ proc [kibana]   log   [01:02:39.702] [error][fleet][plugins] [illegal_argument_exception] composable template [logs-system.auth] template after composition is invalid response from /_index_template/logs-system.auth: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"composable template [logs-system.auth] template after composition is invalid"}],"type":"illegal_argument_exception","reason":"composable template [logs-system.auth] template after composition is invalid","caused_by":{"type":"illegal_argument_exception","reason":"template [logs-system.auth] has alias and data stream definitions"}},"status":400}
[00:00:06]               └- ✖ fail: Fleet Endpoints fleet_setup should not create a fleet_enroll role if one does not already exist
[00:00:06]               │      Error: expected 200 "OK", got 400 "Bad Request"
[00:00:06]               │       at Test._assertStatus (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:268:12)
[00:00:06]               │       at Test._assertFunction (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:283:11)
[00:00:06]               │       at Test.assert (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:173:18)
[00:00:06]               │       at assert (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:131:12)
[00:00:06]               │       at /dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:128:5
[00:00:06]               │       at Test.Request.callback (/dev/shm/workspace/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:718:3)
[00:00:06]               │       at /dev/shm/workspace/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:906:18
[00:00:06]               │       at IncomingMessage.<anonymous> (/dev/shm/workspace/kibana/node_modules/supertest/node_modules/superagent/lib/node/parsers/json.js:19:7)
[00:00:06]               │       at endReadableNT (internal/streams/readable.js:1327:12)
[00:00:06]               │       at processTicksAndRejections (internal/process/task_queues.js:80:21)
[00:00:06]               │ 
[00:00:06]               │ 

Stack Trace

Error: expected 200 "OK", got 400 "Bad Request"
    at Test._assertStatus (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:268:12)
    at Test._assertFunction (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:283:11)
    at Test.assert (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:173:18)
    at assert (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:131:12)
    at /dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:128:5
    at Test.Request.callback (/dev/shm/workspace/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:718:3)
    at /dev/shm/workspace/kibana/node_modules/supertest/node_modules/superagent/lib/node/index.js:906:18
    at IncomingMessage.<anonymous> (/dev/shm/workspace/kibana/node_modules/supertest/node_modules/superagent/lib/node/parsers/json.js:19:7)
    at endReadableNT (internal/streams/readable.js:1327:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)

X-Pack Detection Engine API Integration Tests.x-pack/test/detection_engine_api_integration/security_and_spaces/tests/delete_signals_migrations·ts.detection engine api security and spaces enabled deleting signals migrations rejects the request if the user does not have sufficient privileges

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: detection engine api security and spaces enabled
[00:00:00]           └-> "before all" hook
[00:00:00]           └-: 
[00:00:00]             └-> "before all" hook
[00:17:24]             └-: deleting signals migrations
[00:17:24]               └-> "before all" hook
[00:17:24]               └-> returns the deleted migration SavedObjects
[00:17:24]                 └-> "before each" hook: global before each
[00:17:24]                 └-> "before each" hook
[00:17:24]                   │ info [o.e.x.i.a.TransportPutLifecycleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] adding index lifecycle policy [.siem-signals-default]
[00:17:24]                   │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] adding template [.siem-signals-default] for index patterns [.siem-signals-default-*]
[00:17:24]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] [.siem-signals-default-000001] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:17:24]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] moving index [.siem-signals-default-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:17:24]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] moving index [.siem-signals-default-000001] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] in policy [.siem-signals-default]
[00:17:24]                   │ info [signals/outdated_signals_index] Loading "mappings.json"
[00:17:24]                   │ info [signals/outdated_signals_index] Loading "data.json"
[00:17:24]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] [.siem-signals-default-outdated] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:17:24]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] moving index [.siem-signals-default-000001] from [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] to [{"phase":"hot","action":"rollover","name":"check-rollover-ready"}] in policy [.siem-signals-default]
[00:17:24]                   │ info [signals/outdated_signals_index] Created index ".siem-signals-default-outdated"
[00:17:24]                   │ debg [signals/outdated_signals_index] ".siem-signals-default-outdated" settings {"index":{"lifecycle":{"indexing_complete":true}}}
[00:17:24]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] moving index [.siem-signals-default-outdated] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:17:24]                   │ info [signals/outdated_signals_index] Indexed 1 docs into ".siem-signals-default-outdated"
[00:17:24]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] moving index [.siem-signals-default-outdated] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] in policy [.siem-signals-default]
[00:17:24]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] moving index [.siem-signals-default-outdated] from [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] to [{"phase":"hot","action":"rollover","name":"check-rollover-ready"}] in policy [.siem-signals-default]
[00:17:24]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] [.siem-signals-default-outdated-r000014] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:17:24]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] moving index [.siem-signals-default-outdated-r000014] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:17:24]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] moving index [.siem-signals-default-outdated-r000014] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] in policy [.siem-signals-default]
[00:17:24]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] 202151 finished with response BulkByScrollResponse[took=20.2ms,timed_out=false,sliceId=null,updated=0,created=1,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:17:24]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] moving index [.siem-signals-default-outdated-r000014] from [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] to [{"phase":"hot","action":"rollover","name":"check-rollover-ready"}] in policy [.siem-signals-default]
[00:17:27]                 └- ✓ pass  (999ms) "detection engine api security and spaces enabled  deleting signals migrations returns the deleted migration SavedObjects"
[00:17:27]               └-> "after each" hook
[00:17:27]                 │ info [signals/outdated_signals_index] Unloading indices from "mappings.json"
[00:17:27]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] [.siem-signals-default-outdated/JzyN8tarTRaSFTlWIQRkPA] deleting index
[00:17:27]                 │ info [signals/outdated_signals_index] Deleted existing index ".siem-signals-default-outdated"
[00:17:27]                 │ info [signals/outdated_signals_index] Unloading indices from "data.json"
[00:17:27]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] [.siem-signals-default-outdated-r000014/dF1z03AxSnCQW9SE3Fz_aA] deleting index
[00:17:27]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] [.siem-signals-default-000001/GUiuJOB0QHaBsqRLSu5mwg] deleting index
[00:17:27]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] removing template [.siem-signals-default]
[00:17:27]               └-> marks the original index for deletion by applying our cleanup policy
[00:17:27]                 └-> "before each" hook: global before each
[00:17:27]                 └-> "before each" hook
[00:17:27]                   │ info [o.e.x.i.a.TransportPutLifecycleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] adding index lifecycle policy [.siem-signals-default]
[00:17:27]                   │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] adding template [.siem-signals-default] for index patterns [.siem-signals-default-*]
[00:17:27]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] [.siem-signals-default-000001] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:17:27]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] moving index [.siem-signals-default-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:17:27]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] moving index [.siem-signals-default-000001] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] in policy [.siem-signals-default]
[00:17:27]                   │ info [signals/outdated_signals_index] Loading "mappings.json"
[00:17:27]                   │ info [signals/outdated_signals_index] Loading "data.json"
[00:17:27]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] [.siem-signals-default-outdated] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:17:27]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] moving index [.siem-signals-default-000001] from [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] to [{"phase":"hot","action":"rollover","name":"check-rollover-ready"}] in policy [.siem-signals-default]
[00:17:27]                   │ info [signals/outdated_signals_index] Created index ".siem-signals-default-outdated"
[00:17:27]                   │ debg [signals/outdated_signals_index] ".siem-signals-default-outdated" settings {"index":{"lifecycle":{"indexing_complete":true}}}
[00:17:27]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] moving index [.siem-signals-default-outdated] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:17:27]                   │ info [signals/outdated_signals_index] Indexed 1 docs into ".siem-signals-default-outdated"
[00:17:27]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] moving index [.siem-signals-default-outdated] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] in policy [.siem-signals-default]
[00:17:27]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] moving index [.siem-signals-default-outdated] from [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] to [{"phase":"hot","action":"rollover","name":"check-rollover-ready"}] in policy [.siem-signals-default]
[00:17:28]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] [.siem-signals-default-outdated-r000014] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:17:28]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] moving index [.siem-signals-default-outdated-r000014] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:17:28]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] moving index [.siem-signals-default-outdated-r000014] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] in policy [.siem-signals-default]
[00:17:28]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] 202344 finished with response BulkByScrollResponse[took=9.4ms,timed_out=false,sliceId=null,updated=0,created=1,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:17:28]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] moving index [.siem-signals-default-outdated-r000014] from [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] to [{"phase":"hot","action":"rollover","name":"check-rollover-ready"}] in policy [.siem-signals-default]
[00:17:30]                 └- ✓ pass  (1.0s) "detection engine api security and spaces enabled  deleting signals migrations marks the original index for deletion by applying our cleanup policy"
[00:17:30]               └-> "after each" hook
[00:17:30]                 │ info [signals/outdated_signals_index] Unloading indices from "mappings.json"
[00:17:30]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] [.siem-signals-default-outdated/RITRSnvmTCi4gHkA4NsCjA] deleting index
[00:17:30]                 │ info [signals/outdated_signals_index] Deleted existing index ".siem-signals-default-outdated"
[00:17:30]                 │ info [signals/outdated_signals_index] Unloading indices from "data.json"
[00:17:30]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] [.siem-signals-default-000001/QQyT0H_4TFeshmrJSceacw] deleting index
[00:17:30]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] [.siem-signals-default-outdated-r000014/EfyWcwOoT-qZuhCsncMM0g] deleting index
[00:17:30]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] removing template [.siem-signals-default]
[00:17:30]               └-> rejects the request if the user does not have sufficient privileges
[00:17:30]                 └-> "before each" hook: global before each
[00:17:30]                 └-> "before each" hook
[00:17:30]                   │ info [o.e.x.i.a.TransportPutLifecycleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] adding index lifecycle policy [.siem-signals-default]
[00:17:30]                   │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] adding template [.siem-signals-default] for index patterns [.siem-signals-default-*]
[00:17:30]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] [.siem-signals-default-000001] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:17:30]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] moving index [.siem-signals-default-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:17:30]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] moving index [.siem-signals-default-000001] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] in policy [.siem-signals-default]
[00:17:30]                   │ info [signals/outdated_signals_index] Loading "mappings.json"
[00:17:30]                   │ info [signals/outdated_signals_index] Loading "data.json"
[00:17:30]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] [.siem-signals-default-outdated] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:17:30]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] moving index [.siem-signals-default-000001] from [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] to [{"phase":"hot","action":"rollover","name":"check-rollover-ready"}] in policy [.siem-signals-default]
[00:17:30]                   │ info [signals/outdated_signals_index] Created index ".siem-signals-default-outdated"
[00:17:30]                   │ debg [signals/outdated_signals_index] ".siem-signals-default-outdated" settings {"index":{"lifecycle":{"indexing_complete":true}}}
[00:17:30]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] moving index [.siem-signals-default-outdated] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:17:31]                   │ info [signals/outdated_signals_index] Indexed 1 docs into ".siem-signals-default-outdated"
[00:17:31]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] moving index [.siem-signals-default-outdated] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] in policy [.siem-signals-default]
[00:17:31]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] moving index [.siem-signals-default-outdated] from [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] to [{"phase":"hot","action":"rollover","name":"check-rollover-ready"}] in policy [.siem-signals-default]
[00:17:31]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] [.siem-signals-default-outdated-r000014] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:17:31]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] moving index [.siem-signals-default-outdated-r000014] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:17:31]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] moving index [.siem-signals-default-outdated-r000014] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] in policy [.siem-signals-default]
[00:17:31]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] 202567 finished with response BulkByScrollResponse[took=10.6ms,timed_out=false,sliceId=null,updated=0,created=1,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:17:31]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] moving index [.siem-signals-default-outdated-r000014] from [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] to [{"phase":"hot","action":"rollover","name":"check-rollover-ready"}] in policy [.siem-signals-default]
[00:17:32]                 │ debg creating role t1_analyst
[00:17:32]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] updated role [t1_analyst]
[00:17:32]                 │ debg creating user t1_analyst
[00:17:32]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-16-tests-xxl-1614814903009052319] updated user [t1_analyst]
[00:17:32]                 │ debg created user t1_analyst
[00:17:32]                 └- ✖ fail: detection engine api security and spaces enabled  deleting signals migrations rejects the request if the user does not have sufficient privileges
[00:17:32]                 │       Error: expected { message: 'security_exception: action [indices:admin/settings/update] is unauthorized for user [t1_analyst] on indices [], this action is granted by the index privileges [manage,all]',
[00:17:32]                 │   status_code: 403 } to sort of equal { message: 'security_exception: action [indices:admin/settings/update] is unauthorized for user [t1_analyst] on indices [], this action is granted by the privileges [manage,all]',
[00:17:32]                 │   status_code: 403 }
[00:17:32]                 │       + expected - actual
[00:17:32]                 │ 
[00:17:32]                 │        {
[00:17:32]                 │       -  "message": "security_exception: action [indices:admin/settings/update] is unauthorized for user [t1_analyst] on indices [], this action is granted by the index privileges [manage,all]"
[00:17:32]                 │       +  "message": "security_exception: action [indices:admin/settings/update] is unauthorized for user [t1_analyst] on indices [], this action is granted by the privileges [manage,all]"
[00:17:32]                 │          "status_code": 403
[00:17:32]                 │        }
[00:17:32]                 │       
[00:17:32]                 │       at Assertion.assert (/dev/shm/workspace/parallel/9/kibana/packages/kbn-expect/expect.js:100:11)
[00:17:32]                 │       at Assertion.eql (/dev/shm/workspace/parallel/9/kibana/packages/kbn-expect/expect.js:244:8)
[00:17:32]                 │       at Context.<anonymous> (test/detection_engine_api_integration/security_and_spaces/tests/delete_signals_migrations.ts:118:41)
[00:17:32]                 │       at Object.apply (/dev/shm/workspace/parallel/9/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:17:32]                 │ 
[00:17:32]                 │ 

Stack Trace

Error: expected { message: 'security_exception: action [indices:admin/settings/update] is unauthorized for user [t1_analyst] on indices [], this action is granted by the index privileges [manage,all]',
  status_code: 403 } to sort of equal { message: 'security_exception: action [indices:admin/settings/update] is unauthorized for user [t1_analyst] on indices [], this action is granted by the privileges [manage,all]',
  status_code: 403 }
    at Assertion.assert (/dev/shm/workspace/parallel/9/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.eql (/dev/shm/workspace/parallel/9/kibana/packages/kbn-expect/expect.js:244:8)
    at Context.<anonymous> (test/detection_engine_api_integration/security_and_spaces/tests/delete_signals_migrations.ts:118:41)
    at Object.apply (/dev/shm/workspace/parallel/9/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16) {
  actual: '{\n' +
    '  "message": "security_exception: action [indices:admin/settings/update] is unauthorized for user [t1_analyst] on indices [], this action is granted by the index privileges [manage,all]"\n' +
    '  "status_code": 403\n' +
    '}',
  expected: '{\n' +
    '  "message": "security_exception: action [indices:admin/settings/update] is unauthorized for user [t1_analyst] on indices [], this action is granted by the privileges [manage,all]"\n' +
    '  "status_code": 403\n' +
    '}',
  showDiff: true
}

and 3 more failures, only showing the first 3.

Metrics [docs]

✅ unchanged

History

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:TSVB TSVB (Time Series Visual Builder) release_note:plugin_api_changes Contains a Plugin API changes section for the breaking plugin API changes section. Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.12.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants