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

[Alerts] ServiceNow SIR Connector #88190

Merged
merged 27 commits into from
Feb 2, 2021

Conversation

cnasikas
Copy link
Member

@cnasikas cnasikas commented Jan 13, 2021

Summary

Release Notes: Adds ServiceNow SIR Alerting connector

This PR implements a connector for ServiveNow SIR.

Technical details:

  • Created servicenow-sir action type.
  • Created servicenow-sir UI.
  • Rename ServiceNow connector to ServiceNowITSM.
  • Both servicenow and servicenow-sir use the same service. Both connectors use the Table API. Only the table name changes. It is incident for ServiceNow Incident Management and sn_si_incident for ServiceNow SIR. For that reason, createExternalService accepts the table name as an argument.
  • The getChoices: (fields: string[]) => Array<{ value: string; label: string; dependent_value: string; element: string; }> subaction was created.
  • Both connectors share the same config and secrets scheme. They differ only in their params.
  • Improved fieldsUrl to take into account the task table.
  • useGetChoices hook was created to get the choices from the API.
  • Remove unused fields from the configuration file of each connector.
  • Make urgency, priority, and severity fields of ServiceNow ITSM connector dynamic. They gets their values from the getChoices subaction.

ServiceNow: Dynamic fields

1.mp4

ServiceNow SIR: Test connector

1.mp4

ServiceNow SIR: Create connector

2.mp4

Meta issue: #82676, https://github.com/elastic/security-team/issues/520

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@cnasikas cnasikas added Feature:Alerting v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v7.12.0 Team:Threat Hunting Security Solution Threat Hunting Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Feature:Cases Cases feature labels Jan 13, 2021
@cnasikas cnasikas self-assigned this Jan 13, 2021
@cnasikas cnasikas changed the title [Alerting] ServiveNow SIR Connector [Alerting] ServiceNow SIR Connector Jan 13, 2021
@cnasikas cnasikas changed the title [Alerting] ServiceNow SIR Connector [Alerts] ServiceNow SIR Connector Jan 13, 2021
@cnasikas cnasikas changed the title [Alerts] ServiceNow SIR Connector [Alerts][skip-ci] ServiceNow SIR Connector Jan 14, 2021
@cnasikas cnasikas marked this pull request as ready for review January 18, 2021 09:27
@cnasikas cnasikas requested review from a team as code owners January 18, 2021 09:27
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-alerting-services (Team:Alerting Services)

@cnasikas cnasikas changed the title [Alerts][skip-ci] ServiceNow SIR Connector [Alerts] ServiceNow SIR Connector Jan 18, 2021
@cnasikas cnasikas force-pushed the servicenow_sir_connector branch 2 times, most recently from 30c2f22 to 800d8a6 Compare January 18, 2021 10:29
@cnasikas cnasikas requested a review from a team as a code owner January 18, 2021 10:29
@botelastic botelastic bot added the Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability label Jan 18, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/uptime (Team:uptime)

@cnasikas cnasikas force-pushed the servicenow_sir_connector branch 2 times, most recently from f8ce542 to d43c63a Compare January 18, 2021 16:33
Copy link
Contributor

@shahzad31 shahzad31 left a comment

Choose a reason for hiding this comment

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

Uptime changes LGTM !!

@cnasikas cnasikas force-pushed the servicenow_sir_connector branch 2 times, most recently from d90ceef to 764b1d8 Compare January 29, 2021 15:31
@cnasikas
Copy link
Member Author

@elasticmachine merge upstream

@cnasikas
Copy link
Member Author

@elasticmachine merge upstream

@cnasikas
Copy link
Member Author

cnasikas commented Feb 1, 2021

@elasticmachine merge upstream

@@ -230,9 +234,15 @@ export const ActionForm = ({
.list()
/**
* TODO: Remove when cases connector is available across Kibana. Issue: https://github.com/elastic/kibana/issues/82502.
* TODO: Need to decide about ServiceNow SIR connector.
Copy link
Contributor

Choose a reason for hiding this comment

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

decide what?

Copy link
Member Author

Choose a reason for hiding this comment

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

The alerting team needs to decide if they gonna support ServiceNow SIR connector for alerts.

Copy link
Contributor

@stephmilovic stephmilovic left a comment

Choose a reason for hiding this comment

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

LGTM! Please make those few updates to the react hooks and you're good to go. I tested locally and it works hooray! 🚀

@cnasikas
Copy link
Member Author

cnasikas commented Feb 1, 2021

@elasticmachine merge upstream

@cnasikas
Copy link
Member Author

cnasikas commented Feb 2, 2021

@elasticmachine merge upstream

@cnasikas cnasikas merged commit 7a45fc4 into elastic:master Feb 2, 2021
@cnasikas cnasikas deleted the servicenow_sir_connector branch February 2, 2021 09:29
cnasikas added a commit that referenced this pull request Feb 2, 2021
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	packages/kbn-optimizer/limits.yml
@mikecote mikecote added release_note:feature Makes this part of the condensed release notes and removed release_note:skip Skip the PR/issue when compiling release notes labels Feb 2, 2021
@kibanamachine
Copy link
Contributor

kibanamachine commented Feb 10, 2021

💔 Build Failed

Failed CI Steps


Test Failures

Kibana Pipeline / general / 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-18-tests-xxl-1612972809988737846] 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-18-tests-xxl-1612972809988737846] 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-18-tests-xxl-1612972809988737846] 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-18-tests-xxl-1612972809988737846] 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-18-tests-xxl-1612972809988737846] 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-18-tests-xxl-1612972809988737846] 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-18-tests-xxl-1612972809988737846] added role [ft_default_space1_ml_all]
[00:00:00]               │ debg creating role ft_all_spaces_ml_all
[00:00:00]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.ds-ilm-history-5-2021.02.10-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-18-tests-xxl-1612972809988737846] adding data stream [ilm-history-5] with write index [.ds-ilm-history-5-2021.02.10-000001] and backing indices []
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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-18-tests-xxl-1612972809988737846] 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.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] moving index [.ds-ilm-history-5-2021.02.10-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [ilm-history-ilm-policy]
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] added role [ft_default_space1_ml_read]
[00:00:00]               │ debg creating role ft_all_spaces_ml_read
[00:00:00]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.ds-ilm-history-5-2021.02.10-000001][0]]])." previous.health="YELLOW" reason="shards started [[.ds-ilm-history-5-2021.02.10-000001][0]]"
[00:00:00]               │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] moving index [.ds-ilm-history-5-2021.02.10-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.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] added role [ft_default_space_ml_none]
[00:00:00]               │ debg creating user ft_ml_poweruser
[00:00:00]               │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] moving index [.ds-ilm-history-5-2021.02.10-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:00]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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-18-tests-xxl-1612972809988737846] 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:00]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] added user [ft_ml_poweruser_space1]
[00:00:00]               │ debg created user ft_ml_poweruser_space1
[00:00:00]               │ debg creating user ft_ml_poweruser_all_spaces
[00:00:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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-18-tests-xxl-1612972809988737846] 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-18-tests-xxl-1612972809988737846] 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-18-tests-xxl-1612972809988737846] 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-18-tests-xxl-1612972809988737846] 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-18-tests-xxl-1612972809988737846] 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:01]               │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] added user [ft_ml_unauthorized_spaces]
[00:00:01]               │ debg created user ft_ml_unauthorized_spaces
[00:44:46]             └-: data frame analytics
[00:44:46]               └-> "before all" hook
[00:48:11]               └-: jobs cloning supported by UI form
[00:48:11]                 └-> "before all" hook
[00:48:11]                 └-> "before all" hook
[00:48:11]                   │ debg applying update to kibana config: {"dateFormat:tz":"UTC"}
[00:48:12]                   │ debg SecurityPage.forceLogout
[00:48:12]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:48:12]                   │ debg --- retry.tryForTime error: .login-form is not displayed
[00:48:13]                   │ debg Redirecting to /logout to force the logout
[00:48:13]                   │ debg Waiting on the login form to appear
[00:48:13]                   │ debg Waiting for Login Page to appear.
[00:48:13]                   │ debg Waiting up to 100000ms for login page...
[00:48:13]                   │ debg browser[INFO] http://localhost:61191/logout?_t=1612977801865 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:48:13]                   │
[00:48:13]                   │ debg browser[INFO] http://localhost:61191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:48:13]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:48:15]                   │ debg browser[INFO] http://localhost:61191/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:48:15]                   │
[00:48:15]                   │ debg browser[INFO] http://localhost:61191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:48:15]                   │ debg --- retry.tryForTime error: .login-form is not displayed
[00:48:16]                   │ERROR browser[SEVERE] http://localhost:61191/internal/spaces/_active_space - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:48:16]                   │ERROR browser[SEVERE] http://localhost:61191/internal/security/me - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:48:16]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:48:17]                   │ debg browser[INFO] http://localhost:61191/40081/bundles/core/core.entry.js 12:159380 "Detected an unhandled Promise rejection.
[00:48:17]                   │      Error: Unauthorized"
[00:48:17]                   │ERROR browser[SEVERE] http://localhost:61191/40081/bundles/core/core.entry.js 5:3002 
[00:48:17]                   │ERROR browser[SEVERE] http://localhost:61191/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:48:17]                   │ debg TestSubjects.exists(loginForm)
[00:48:17]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:48:17]                   │ debg Waiting for Login Form to appear.
[00:48:17]                   │ debg Waiting up to 100000ms for login form...
[00:48:17]                   │ debg TestSubjects.exists(loginForm)
[00:48:17]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:48:17]                   │ debg TestSubjects.setValue(loginUsername, ft_ml_poweruser)
[00:48:17]                   │ debg TestSubjects.click(loginUsername)
[00:48:17]                   │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:48:17]                   │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:48:17]                   │ debg TestSubjects.setValue(loginPassword, mlp001)
[00:48:17]                   │ debg TestSubjects.click(loginPassword)
[00:48:17]                   │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:48:17]                   │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:48:17]                   │ debg TestSubjects.click(loginSubmit)
[00:48:17]                   │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:48:17]                   │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:48:17]                   │ debg Waiting for login result, expected: chrome.
[00:48:17]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] .app-wrapper:not(.hidden-chrome)') with timeout=20000
[00:48:17]                   │ proc [kibana]   log   [17:23:26.326] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:48:19]                   │ debg browser[INFO] http://localhost:61191/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:48:19]                   │
[00:48:19]                   │ debg browser[INFO] http://localhost:61191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:48:19]                   │ debg Finished login process currentUrl = http://localhost:61191/app/home#/
[00:48:19]                   │ debg Waiting up to 20000ms for logout button visible...
[00:48:19]                   │ debg TestSubjects.exists(userMenuButton)
[00:48:19]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:48:19]                   │ debg TestSubjects.exists(userMenu)
[00:48:19]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:48:21]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:48:22]                   │ debg TestSubjects.click(userMenuButton)
[00:48:22]                   │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:48:22]                   │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:48:22]                   │ debg TestSubjects.exists(userMenu)
[00:48:22]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=120000
[00:48:22]                   │ debg TestSubjects.exists(userMenu > logoutLink)
[00:48:22]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:48:22]                 └-: classification job supported by the form
[00:48:22]                   └-> "before all" hook
[00:48:22]                   └-> "before all" hook
[00:48:22]                     │ info [ml/bm_classification] Loading "mappings.json"
[00:48:22]                     │ info [ml/bm_classification] Loading "data.json.gz"
[00:48:22]                     │ info [ml/bm_classification] Skipped restore for existing index "ft_bank_marketing"
[00:48:22]                     │ debg Searching for 'index-pattern' with title 'ft_bank_marketing'...
[00:48:22]                     │ debg  > Found '7a57ab60-6bc4-11eb-a32d-f547140bede7'
[00:48:22]                     │ debg Index pattern with title 'ft_bank_marketing' already exists. Nothing to create.
[00:48:22]                     │ debg Creating data frame analytic job with id 'bm_1_1612974908187' ...
[00:48:22]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.ml-config] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[00:48:22]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] updating number_of_replicas to [0] for indices [.ml-config]
[00:48:22]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.ml-annotations-6] creating index, cause [api], templates [], shards [1]/[1]
[00:48:22]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] updating number_of_replicas to [0] for indices [.ml-annotations-6]
[00:48:22]                     │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.ml-notifications-000001] creating index, cause [auto(bulk api)], templates [.ml-notifications-000001], shards [1]/[1]
[00:48:22]                     │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] updating number_of_replicas to [0] for indices [.ml-notifications-000001]
[00:48:23]                     │ debg Waiting up to 5000ms for 'bm_1_1612974908187' to exist...
[00:48:23]                     │ debg Fetching data frame analytics job 'bm_1_1612974908187'...
[00:48:23]                     │ debg > DFA job fetched.
[00:48:23]                     │ debg > DFA job created.
[00:48:23]                     │ debg navigating to ml url: http://localhost:61191/app/ml
[00:48:23]                     │ debg navigate to: http://localhost:61191/app/ml
[00:48:23]                     │ debg browser[INFO] http://localhost:61191/app/ml?_t=1612977812249 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:48:23]                     │
[00:48:23]                     │ debg browser[INFO] http://localhost:61191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:48:23]                     │ debg ... sleep(700) start
[00:48:24]                     │ debg ... sleep(700) end
[00:48:24]                     │ debg returned from get, calling refresh
[00:48:24]                     │ debg browser[INFO] http://localhost:61191/app/ml?_t=1612977812249 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:48:24]                     │
[00:48:24]                     │ debg browser[INFO] http://localhost:61191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:48:25]                     │ debg currentUrl = http://localhost:61191/app/ml
[00:48:25]                     │          appUrl = http://localhost:61191/app/ml
[00:48:25]                     │ debg TestSubjects.find(kibanaChrome)
[00:48:25]                     │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:48:25]                     │ debg ... sleep(501) start
[00:48:26]                     │ debg ... sleep(501) end
[00:48:26]                     │ debg in navigateTo url = http://localhost:61191/app/ml/overview
[00:48:26]                     │ debg --- retry.try error: URL changed, waiting for it to settle
[00:48:26]                     │ debg ... sleep(501) start
[00:48:27]                     │ debg ... sleep(501) end
[00:48:27]                     │ debg in navigateTo url = http://localhost:61191/app/ml/overview
[00:48:27]                     │ debg TestSubjects.exists(statusPageContainer)
[00:48:27]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:48:29]                     │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:48:30]                     │ debg TestSubjects.exists(mlApp)
[00:48:30]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlApp"]') with timeout=2000
[00:48:30]                     │ debg TestSubjects.click(~mlMainTab & ~dataFrameAnalytics)
[00:48:30]                     │ debg Find.clickByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="dataFrameAnalytics"]') with timeout=10000
[00:48:30]                     │ debg Find.findByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="dataFrameAnalytics"]') with timeout=10000
[00:48:30]                     │ debg TestSubjects.exists(~mlMainTab & ~dataFrameAnalytics & ~selected)
[00:48:30]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="dataFrameAnalytics"][data-test-subj~="selected"]') with timeout=120000
[00:48:30]                     │ debg TestSubjects.exists(mlPageDataFrameAnalytics)
[00:48:30]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageDataFrameAnalytics"]') with timeout=120000
[00:48:30]                     │ debg TestSubjects.exists(~mlAnalyticsTable)
[00:48:30]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlAnalyticsTable"]') with timeout=60000
[00:48:30]                     │ debg TestSubjects.exists(mlAnalyticsTable loaded)
[00:48:30]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsTable loaded"]') with timeout=30000
[00:48:30]                     │ debg TestSubjects.exists(~mlAnalyticsTable)
[00:48:30]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlAnalyticsTable"]') with timeout=60000
[00:48:30]                     │ debg TestSubjects.exists(mlAnalyticsTable loaded)
[00:48:30]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsTable loaded"]') with timeout=30000
[00:48:30]                     │ debg TestSubjects.find(mlAnalyticsTableContainer)
[00:48:30]                     │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsTableContainer"]') with timeout=10000
[00:48:31]                     │ debg TestSubjects.find(mlAnalyticsTableContainer)
[00:48:31]                     │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsTableContainer"]') with timeout=10000
[00:48:31]                     │ debg TestSubjects.find(~mlAnalyticsTable)
[00:48:31]                     │ debg Find.findByCssSelector('[data-test-subj~="mlAnalyticsTable"]') with timeout=10000
[00:48:31]                     │ debg TestSubjects.exists(mlAnalyticsJobDeleteButton)
[00:48:31]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsJobDeleteButton"]') with timeout=2500
[00:48:33]                     │ debg --- retry.tryForTime error: [data-test-subj="mlAnalyticsJobDeleteButton"] is not displayed
[00:48:34]                     │ debg TestSubjects.click(~mlAnalyticsTable > ~row-bm_1_1612974908187 > euiCollapsedItemActionsButton)
[00:48:34]                     │ debg Find.clickByCssSelector('[data-test-subj~="mlAnalyticsTable"] [data-test-subj~="row-bm_1_1612974908187"] [data-test-subj="euiCollapsedItemActionsButton"]') with timeout=10000
[00:48:34]                     │ debg Find.findByCssSelector('[data-test-subj~="mlAnalyticsTable"] [data-test-subj~="row-bm_1_1612974908187"] [data-test-subj="euiCollapsedItemActionsButton"]') with timeout=10000
[00:48:34]                     │ debg TestSubjects.exists(mlAnalyticsJobDeleteButton)
[00:48:34]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsJobDeleteButton"]') with timeout=5000
[00:48:34]                     │ debg TestSubjects.click(mlAnalyticsJobCloneButton)
[00:48:34]                     │ debg Find.clickByCssSelector('[data-test-subj="mlAnalyticsJobCloneButton"]') with timeout=10000
[00:48:34]                     │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsJobCloneButton"]') with timeout=10000
[00:48:34]                     │ debg TestSubjects.exists(mlAnalyticsCreationContainer)
[00:48:34]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreationContainer"]') with timeout=120000
[00:48:35]                     │ debg browser[INFO] http://localhost:61191/40081/bundles/plugin/ml/ml.chunk.8.js 2:114873 "Property \"early_stopping_enabled\" is unknown."
[00:48:35]                   └-> opens the existing job in the data frame analytics job wizard
[00:48:35]                     └-> "before each" hook: global before each
[00:48:35]                     │ debg === TEST STEP === should open the wizard with a proper header
[00:48:35]                     │ debg TestSubjects.getVisibleText(mlDataFrameAnalyticsWizardHeaderTitle)
[00:48:35]                     │ debg TestSubjects.find(mlDataFrameAnalyticsWizardHeaderTitle)
[00:48:35]                     │ debg Find.findByCssSelector('[data-test-subj="mlDataFrameAnalyticsWizardHeaderTitle"]') with timeout=10000
[00:48:35]                     │ debg TestSubjects.exists(mlAnalyticsCreateJobWizardConfigurationStep active)
[00:48:35]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreateJobWizardConfigurationStep active"]') with timeout=120000
[00:48:37]                     │ debg --- retry.tryForTime error: [data-test-subj="mlAnalyticsCreateJobWizardConfigurationStep active"] is not displayed
[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:50]                     │ debg --- retry.tryForTime failed again with the same message...
[00:48:53]                     │ debg --- retry.tryForTime failed again with the same message...
[00:48:56]                     │ debg --- retry.tryForTime failed again with the same message...
[00:48:59]                     │ debg --- retry.tryForTime failed again with the same message...
[00:49:02]                     │ debg --- retry.tryForTime failed again with the same message...
[00:49:05]                     │ debg --- retry.tryForTime failed again with the same message...
[00:49:08]                     │ debg --- retry.tryForTime failed again with the same message...
[00:49:11]                     │ debg --- retry.tryForTime failed again with the same message...
[00:49:14]                     │ debg --- retry.tryForTime failed again with the same message...
[00:49:17]                     │ debg --- retry.tryForTime failed again with the same message...
[00:49:20]                     │ debg --- retry.tryForTime failed again with the same message...
[00:49:23]                     │ debg --- retry.tryForTime failed again with the same message...
[00:49:26]                     │ debg --- retry.tryForTime failed again with the same message...
[00:49:29]                     │ debg --- retry.tryForTime failed again with the same message...
[00:49:32]                     │ debg --- retry.tryForTime failed again with the same message...
[00:49:35]                     │ debg --- retry.tryForTime failed again with the same message...
[00:49:38]                     │ debg --- retry.tryForTime failed again with the same message...
[00:49:41]                     │ debg --- retry.tryForTime failed again with the same message...
[00:49:44]                     │ debg --- retry.tryForTime failed again with the same message...
[00:49:47]                     │ debg --- retry.tryForTime failed again with the same message...
[00:49:50]                     │ debg --- retry.tryForTime failed again with the same message...
[00:49:53]                     │ debg --- retry.tryForTime failed again with the same message...
[00:49:56]                     │ debg --- retry.tryForTime failed again with the same message...
[00:49:59]                     │ debg --- retry.tryForTime failed again with the same message...
[00:50:02]                     │ debg --- retry.tryForTime failed again with the same message...
[00:50:06]                     │ debg --- retry.tryForTime failed again with the same message...
[00:50:09]                     │ debg --- retry.tryForTime failed again with the same message...
[00:50:12]                     │ debg --- retry.tryForTime failed again with the same message...
[00:50:15]                     │ debg --- retry.tryForTime failed again with the same message...
[00:50:18]                     │ debg --- retry.tryForTime failed again with the same message...
[00:50:21]                     │ debg --- retry.tryForTime failed again with the same message...
[00:50:24]                     │ debg --- retry.tryForTime failed again with the same message...
[00:50:27]                     │ debg --- retry.tryForTime failed again with the same message...
[00:50:30]                     │ debg --- retry.tryForTime failed again with the same message...
[00:50:33]                     │ debg --- retry.tryForTime failed again with the same message...
[00:50:36]                     │ debg --- retry.tryForTime failed again with the same message...
[00:50:36]                     │ info Taking screenshot "/dev/shm/workspace/parallel/19/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:50:36]                     │ info Current URL is: http://localhost:61191/app/ml/data_frame_analytics/new_job?index=7a57ab60-6bc4-11eb-a32d-f547140bede7&jobId=bm_1_1612974908187
[00:50:37]                     │ info Saving page source to: /dev/shm/workspace/parallel/19/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:50:37]                     └- ✖ 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:50:37]                     │      Error: expected testSubject(mlAnalyticsCreateJobWizardConfigurationStep active) to exist
[00:50:37]                     │       at TestSubjects.existOrFail (/dev/shm/workspace/parallel/19/kibana/test/functional/services/common/test_subjects.ts:51:15)
[00:50:37]                     │       at Object.assertConfigurationStepActive (test/functional/services/ml/data_frame_analytics_creation.ts:316:7)
[00:50:37]                     │       at Context.<anonymous> (test/functional/apps/ml/data_frame_analytics/cloning.ts:166:11)
[00:50:37]                     │       at Object.apply (/dev/shm/workspace/parallel/19/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:50:37]                     │ 
[00:50:37]                     │ 

Stack Trace

Error: expected testSubject(mlAnalyticsCreateJobWizardConfigurationStep active) to exist
    at TestSubjects.existOrFail (/dev/shm/workspace/parallel/19/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/19/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)

Kibana Pipeline / general / 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 failed 1 times on tracked branches: https://dryrun

[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:16:57]             └-: deleting signals migrations
[00:16:57]               └-> "before all" hook
[00:16:57]               └-> returns the deleted migration SavedObjects
[00:16:57]                 └-> "before each" hook: global before each
[00:16:57]                 └-> "before each" hook
[00:16:57]                   │ info [o.e.x.i.a.TransportPutLifecycleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] adding index lifecycle policy [.siem-signals-default]
[00:16:57]                   │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] adding template [.siem-signals-default] for index patterns [.siem-signals-default-*]
[00:16:58]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.siem-signals-default-000001] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:16:58]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] moving index [.siem-signals-default-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:16:58]                   │ info [signals/outdated_signals_index] Loading "mappings.json"
[00:16:58]                   │ info [signals/outdated_signals_index] Loading "data.json"
[00:16:58]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.siem-signals-default-outdated] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:16:58]                   │ info [signals/outdated_signals_index] Created index ".siem-signals-default-outdated"
[00:16:58]                   │ debg [signals/outdated_signals_index] ".siem-signals-default-outdated" settings {"index":{"lifecycle":{"indexing_complete":true}}}
[00:16:58]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:16:58]                   │ info [signals/outdated_signals_index] Indexed 1 docs into ".siem-signals-default-outdated"
[00:16:58]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] moving index [.siem-signals-default-outdated] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:16:58]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:16:58]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.siem-signals-default-outdated-r000014] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:16:58]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:16:58]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] moving index [.siem-signals-default-outdated-r000014] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:16:58]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 201605 finished with response BulkByScrollResponse[took=10.3ms,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:16:58]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:16:58]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:16:58]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:01]                 └- ✓ pass  (1.0s) "detection engine api security and spaces enabled  deleting signals migrations returns the deleted migration SavedObjects"
[00:17:01]               └-> "after each" hook
[00:17:01]                 │ info [signals/outdated_signals_index] Unloading indices from "mappings.json"
[00:17:01]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.siem-signals-default-outdated/-GFeuG4DQvubQ3LBIH8Apg] deleting index
[00:17:01]                 │ info [signals/outdated_signals_index] Deleted existing index ".siem-signals-default-outdated"
[00:17:01]                 │ info [signals/outdated_signals_index] Unloading indices from "data.json"
[00:17:01]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.siem-signals-default-outdated-r000014/yzHwQucaT6a4YbzaY8ULuw] deleting index
[00:17:01]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.siem-signals-default-000001/6j0ZhOLlTiaGQq3Hku4GNA] deleting index
[00:17:01]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] removing template [.siem-signals-default]
[00:17:01]               └-> marks the original index for deletion by applying our cleanup policy
[00:17:01]                 └-> "before each" hook: global before each
[00:17:01]                 └-> "before each" hook
[00:17:01]                   │ info [o.e.x.i.a.TransportPutLifecycleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] adding index lifecycle policy [.siem-signals-default]
[00:17:01]                   │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] adding template [.siem-signals-default] for index patterns [.siem-signals-default-*]
[00:17:01]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.siem-signals-default-000001] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:17:01]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] moving index [.siem-signals-default-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:17:01]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:01]                   │ info [signals/outdated_signals_index] Loading "mappings.json"
[00:17:01]                   │ info [signals/outdated_signals_index] Loading "data.json"
[00:17:01]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.siem-signals-default-outdated] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:17:01]                   │ info [signals/outdated_signals_index] Created index ".siem-signals-default-outdated"
[00:17:01]                   │ debg [signals/outdated_signals_index] ".siem-signals-default-outdated" settings {"index":{"lifecycle":{"indexing_complete":true}}}
[00:17:01]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:01]                   │ info [signals/outdated_signals_index] Indexed 1 docs into ".siem-signals-default-outdated"
[00:17:01]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] moving index [.siem-signals-default-outdated] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:17:01]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:01]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.siem-signals-default-outdated-r000014] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:17:01]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:01]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] moving index [.siem-signals-default-outdated-r000014] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:17:01]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 201855 finished with response BulkByScrollResponse[took=15.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:01]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:01]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:04]                 └- ✓ 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:04]               └-> "after each" hook
[00:17:04]                 │ info [signals/outdated_signals_index] Unloading indices from "mappings.json"
[00:17:04]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.siem-signals-default-outdated/tMHUWYMcR0mL6J7Qp75JBg] deleting index
[00:17:04]                 │ info [signals/outdated_signals_index] Deleted existing index ".siem-signals-default-outdated"
[00:17:04]                 │ info [signals/outdated_signals_index] Unloading indices from "data.json"
[00:17:04]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.siem-signals-default-000001/yH-kaY5EQDq5lu-U-cgC7A] deleting index
[00:17:04]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.siem-signals-default-outdated-r000014/IZlh5-BZQlS6SzKV8EEwhw] deleting index
[00:17:04]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] removing template [.siem-signals-default]
[00:17:04]               └-> rejects the request if the user does not have sufficient privileges
[00:17:04]                 └-> "before each" hook: global before each
[00:17:04]                 └-> "before each" hook
[00:17:04]                   │ info [o.e.x.i.a.TransportPutLifecycleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] adding index lifecycle policy [.siem-signals-default]
[00:17:04]                   │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] adding template [.siem-signals-default] for index patterns [.siem-signals-default-*]
[00:17:04]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.siem-signals-default-000001] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:17:04]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] moving index [.siem-signals-default-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:17:04]                   │ info [signals/outdated_signals_index] Loading "mappings.json"
[00:17:04]                   │ info [signals/outdated_signals_index] Loading "data.json"
[00:17:04]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.siem-signals-default-outdated] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:17:04]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:04]                   │ info [signals/outdated_signals_index] Created index ".siem-signals-default-outdated"
[00:17:04]                   │ debg [signals/outdated_signals_index] ".siem-signals-default-outdated" settings {"index":{"lifecycle":{"indexing_complete":true}}}
[00:17:04]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] moving index [.siem-signals-default-outdated] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:17:04]                   │ info [signals/outdated_signals_index] Indexed 1 docs into ".siem-signals-default-outdated"
[00:17:04]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:04]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.siem-signals-default-outdated-r000014] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:17:04]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:04]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 202036 finished with response BulkByScrollResponse[took=12.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:04]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] moving index [.siem-signals-default-outdated-r000014] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:17:04]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:04]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:04]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:06]                 │ debg creating role t1_analyst
[00:17:06]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] updated role [t1_analyst]
[00:17:06]                 │ debg creating user t1_analyst
[00:17:06]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] updated user [t1_analyst]
[00:17:06]                 │ debg created user t1_analyst
[00:17:06]                 └- ✖ fail: detection engine api security and spaces enabled  deleting signals migrations rejects the request if the user does not have sufficient privileges
[00:17:06]                 │       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:06]                 │   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:06]                 │   status_code: 403 }
[00:17:06]                 │       + expected - actual
[00:17:06]                 │ 
[00:17:06]                 │        {
[00:17:06]                 │       -  "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:06]                 │       +  "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:06]                 │          "status_code": 403
[00:17:06]                 │        }
[00:17:06]                 │       
[00:17:06]                 │       at Assertion.assert (/dev/shm/workspace/parallel/9/kibana/packages/kbn-expect/expect.js:100:11)
[00:17:06]                 │       at Assertion.eql (/dev/shm/workspace/parallel/9/kibana/packages/kbn-expect/expect.js:244:8)
[00:17:06]                 │       at Context.<anonymous> (test/detection_engine_api_integration/security_and_spaces/tests/delete_signals_migrations.ts:118:41)
[00:17:06]                 │       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:06]                 │ 
[00:17:06]                 │ 

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
}

Kibana Pipeline / general / 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:03]             └-: deleting signals migrations
[00:17:03]               └-> "before all" hook
[00:17:03]               └-> returns the deleted migration SavedObjects
[00:17:03]                 └-> "before each" hook: global before each
[00:17:03]                 └-> "before each" hook
[00:17:03]                   │ info [o.e.x.i.a.TransportPutLifecycleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] adding index lifecycle policy [.siem-signals-default]
[00:17:04]                   │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] adding template [.siem-signals-default] for index patterns [.siem-signals-default-*]
[00:17:04]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.siem-signals-default-000001] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:17:04]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] moving index [.siem-signals-default-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:17:04]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:04]                   │ info [signals/outdated_signals_index] Loading "mappings.json"
[00:17:04]                   │ info [signals/outdated_signals_index] Loading "data.json"
[00:17:04]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.siem-signals-default-outdated] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:17:04]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:04]                   │ info [signals/outdated_signals_index] Created index ".siem-signals-default-outdated"
[00:17:04]                   │ debg [signals/outdated_signals_index] ".siem-signals-default-outdated" settings {"index":{"lifecycle":{"indexing_complete":true}}}
[00:17:04]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] moving index [.siem-signals-default-outdated] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:17:04]                   │ info [signals/outdated_signals_index] Indexed 1 docs into ".siem-signals-default-outdated"
[00:17:04]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:04]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:04]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.siem-signals-default-outdated-r000014] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:17:04]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] moving index [.siem-signals-default-outdated-r000014] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:17:04]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:04]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:04]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 202569 finished with response BulkByScrollResponse[took=14.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:07]                 └- ✓ pass  (999ms) "detection engine api security and spaces enabled  deleting signals migrations returns the deleted migration SavedObjects"
[00:17:07]               └-> "after each" hook
[00:17:07]                 │ info [signals/outdated_signals_index] Unloading indices from "mappings.json"
[00:17:07]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.siem-signals-default-outdated/FDv830U8TuCtC4xDC_XVxA] deleting index
[00:17:07]                 │ info [signals/outdated_signals_index] Deleted existing index ".siem-signals-default-outdated"
[00:17:07]                 │ info [signals/outdated_signals_index] Unloading indices from "data.json"
[00:17:07]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.siem-signals-default-000001/JhrrNWVdTK-FhGgV1rvU4w] deleting index
[00:17:07]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.siem-signals-default-outdated-r000014/OePjFhlpQ1StPjUb44e_Bw] deleting index
[00:17:07]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] removing template [.siem-signals-default]
[00:17:07]               └-> marks the original index for deletion by applying our cleanup policy
[00:17:07]                 └-> "before each" hook: global before each
[00:17:07]                 └-> "before each" hook
[00:17:07]                   │ info [o.e.x.i.a.TransportPutLifecycleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] adding index lifecycle policy [.siem-signals-default]
[00:17:07]                   │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] adding template [.siem-signals-default] for index patterns [.siem-signals-default-*]
[00:17:07]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.siem-signals-default-000001] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:17:07]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] moving index [.siem-signals-default-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:17:07]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:07]                   │ info [signals/outdated_signals_index] Loading "mappings.json"
[00:17:07]                   │ info [signals/outdated_signals_index] Loading "data.json"
[00:17:07]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.siem-signals-default-outdated] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:17:07]                   │ info [signals/outdated_signals_index] Created index ".siem-signals-default-outdated"
[00:17:07]                   │ debg [signals/outdated_signals_index] ".siem-signals-default-outdated" settings {"index":{"lifecycle":{"indexing_complete":true}}}
[00:17:07]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:07]                   │ info [signals/outdated_signals_index] Indexed 1 docs into ".siem-signals-default-outdated"
[00:17:07]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] moving index [.siem-signals-default-outdated] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:17:07]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:07]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.siem-signals-default-outdated-r000014] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:17:07]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:07]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] moving index [.siem-signals-default-outdated-r000014] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:17:07]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:07]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 202754 finished with response BulkByScrollResponse[took=15.3ms,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:07]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:10]                 └- ✓ 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:10]               └-> "after each" hook
[00:17:10]                 │ info [signals/outdated_signals_index] Unloading indices from "mappings.json"
[00:17:10]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.siem-signals-default-outdated/DyE3fzPaSdm8F7PfYaeJfg] deleting index
[00:17:10]                 │ info [signals/outdated_signals_index] Deleted existing index ".siem-signals-default-outdated"
[00:17:10]                 │ info [signals/outdated_signals_index] Unloading indices from "data.json"
[00:17:10]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.siem-signals-default-000001/DOEHoOZfSi6nR7N4DSIoJA] deleting index
[00:17:10]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.siem-signals-default-outdated-r000014/dvWGHwz4SYK4UnwuYVxCrw] deleting index
[00:17:10]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] removing template [.siem-signals-default]
[00:17:10]               └-> rejects the request if the user does not have sufficient privileges
[00:17:10]                 └-> "before each" hook: global before each
[00:17:10]                 └-> "before each" hook
[00:17:10]                   │ info [o.e.x.i.a.TransportPutLifecycleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] adding index lifecycle policy [.siem-signals-default]
[00:17:10]                   │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] adding template [.siem-signals-default] for index patterns [.siem-signals-default-*]
[00:17:10]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.siem-signals-default-000001] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:17:10]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] moving index [.siem-signals-default-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:17:10]                   │ info [signals/outdated_signals_index] Loading "mappings.json"
[00:17:10]                   │ info [signals/outdated_signals_index] Loading "data.json"
[00:17:10]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.siem-signals-default-outdated] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:17:10]                   │ info [signals/outdated_signals_index] Created index ".siem-signals-default-outdated"
[00:17:10]                   │ debg [signals/outdated_signals_index] ".siem-signals-default-outdated" settings {"index":{"lifecycle":{"indexing_complete":true}}}
[00:17:10]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:10]                   │ info [signals/outdated_signals_index] Indexed 1 docs into ".siem-signals-default-outdated"
[00:17:10]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] moving index [.siem-signals-default-outdated] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:17:10]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] [.siem-signals-default-outdated-r000014] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:17:10]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:10]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:10]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 202962 finished with response BulkByScrollResponse[took=15.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:10]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] moving index [.siem-signals-default-outdated-r000014] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:17:10]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:10]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:10]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] 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:12]                 │ debg creating role t1_analyst
[00:17:12]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] updated role [t1_analyst]
[00:17:12]                 │ debg creating user t1_analyst
[00:17:12]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1612972809988737846] updated user [t1_analyst]
[00:17:12]                 │ debg created user t1_analyst
[00:17:12]                 └- ✖ fail: detection engine api security and spaces enabled  deleting signals migrations rejects the request if the user does not have sufficient privileges
[00:17:12]                 │       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:12]                 │   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:12]                 │   status_code: 403 }
[00:17:12]                 │       + expected - actual
[00:17:12]                 │ 
[00:17:12]                 │        {
[00:17:12]                 │       -  "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:12]                 │       +  "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:12]                 │          "status_code": 403
[00:17:12]                 │        }
[00:17:12]                 │       
[00:17:12]                 │       at Assertion.assert (/dev/shm/workspace/parallel/9/kibana/packages/kbn-expect/expect.js:100:11)
[00:17:12]                 │       at Assertion.eql (/dev/shm/workspace/parallel/9/kibana/packages/kbn-expect/expect.js:244:8)
[00:17:12]                 │       at Context.<anonymous> (test/detection_engine_api_integration/security_and_spaces/tests/delete_signals_migrations.ts:118:41)
[00:17:12]                 │       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:12]                 │ 
[00:17:12]                 │ 

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
}

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
triggersActionsUi 334 337 +3

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
triggersActionsUi 1.4MB 1.4MB +31.4KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
securitySolution 224.4KB 224.4KB +4.0B
triggersActionsUi 140.9KB 143.7KB +2.8KB
total +2.8KB
Unknown metric groups

async chunk count

id before after diff
triggersActionsUi 31 32 +1

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:Alerting Feature:Cases Cases feature release_note:feature Makes this part of the condensed release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Threat Hunting Security Solution Threat Hunting Team Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v7.12.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants