Skip to content

[App Search] Role mappings migration (full)#94390

Closed
scottybollinger wants to merge 21 commits intoelastic:masterfrom
scottybollinger:scottybollinger/yolo-as-role-mappings
Closed

[App Search] Role mappings migration (full)#94390
scottybollinger wants to merge 21 commits intoelastic:masterfrom
scottybollinger:scottybollinger/yolo-as-role-mappings

Conversation

@scottybollinger
Copy link
Copy Markdown
Contributor

@scottybollinger scottybollinger commented Mar 11, 2021

Summary

This is the placeholder draft PR that holds the full feature for testing. This branch contains all the code for the child PRs and will be closed once those are merged, if we decide to break them up. Otherwise, follow along by commit.

rm-list
rm-manage
rm-new
image

The original asRoleMapping was merely for a smoke test in the shared component. Refactored to work better in App Search component
ROLE_MAPPINGS_TITLE was moved to a shared constant in an earlier PR
@scottybollinger scottybollinger added Feature:Plugins release_note:skip Skip the PR/issue when compiling release notes v7.13.0 auto-backport Deprecated - use backport:version if exact versions are needed labels Mar 11, 2021
@scottybollinger scottybollinger changed the title [App Search] Role mappings migration part 2 [App Search] Role mappings migration (full) Mar 11, 2021
The original asRoleMapping was merely for a smoke test in the shared component. Refactored to work better in App Search component
scottybollinger and others added 11 commits March 15, 2021 10:22
Co-authored-by: Jason Stoltzfus <jastoltz24@gmail.com>
Co-authored-by: Jason Stoltzfus <jastoltz24@gmail.com>
…r/yolo-as-role-mappings

# Conflicts:
#	x-pack/plugins/enterprise_search/public/applications/app_search/components/role_mappings/role_mappings_logic.test.ts
#	x-pack/plugins/enterprise_search/public/applications/app_search/components/role_mappings/role_mappings_logic.ts
The ID is inferred from the param in the URL. This was fixed in the logic file but the server route was never updated
Refactoring the tests showed me that some parts of the state weren’t being reset.
I some how got the test coverage at 100% with my wrong way of doing tests before (scary). When I fixed it I noticed that noting I could do would trigger the fallback of just returning the `[ANY_AUTH_PROVIDER]` array. After talking with Constance, we could not come up with a way to trigger it either, given the conditions.

She had suggested removing the first return statement but that caused an empty array being returned sometimes.

Ultimately, I was able to get it working and covered with these changes.
The places where `role: 'superuser’` was deleted in the listeners was a side effect of using `setRoleMappingData` and not `mount`
…r/yolo-as-role-mappings

# Conflicts:
#	x-pack/plugins/enterprise_search/public/applications/app_search/components/role_mappings/constants.ts
@kibanamachine
Copy link
Copy Markdown
Contributor

kibanamachine commented Mar 15, 2021

💔 Build Failed

Failed CI Steps


Test Failures

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 in "detection engine api security and spaces enabled"
[00:00:00]           └-: 
[00:00:00]             └-> "before all" hook in ""
[00:24:09]             └-: deleting signals migrations
[00:24:09]               └-> "before all" hook for "returns the deleted migration SavedObjects"
[00:24:09]               └-> returns the deleted migration SavedObjects
[00:24:09]                 └-> "before each" hook: global before each for "returns the deleted migration SavedObjects"
[00:24:09]                 └-> "before each" hook for "returns the deleted migration SavedObjects"
[00:24:09]                   │ info [o.e.x.i.a.TransportPutLifecycleAction] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] adding index lifecycle policy [.siem-signals-default]
[00:24:09]                   │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] adding template [.siem-signals-default] for index patterns [.siem-signals-default-*]
[00:24:09]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-000001] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:24:09]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:24:09]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 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:24:09]                   │ info [signals/outdated_signals_index] Loading "mappings.json"
[00:24:09]                   │ info [signals/outdated_signals_index] Loading "data.json"
[00:24:09]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-outdated] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:24:09]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 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:24:09]                   │ info [signals/outdated_signals_index] Created index ".siem-signals-default-outdated"
[00:24:09]                   │ debg [signals/outdated_signals_index] ".siem-signals-default-outdated" settings {"index":{"lifecycle":{"indexing_complete":true}}}
[00:24:09]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-outdated] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:24:09]                   │ info [signals/outdated_signals_index] Indexed 1 docs into ".siem-signals-default-outdated"
[00:24:09]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 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:24:09]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 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:24:09]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-outdated-r000025] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:24:09]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-outdated-r000025] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:24:09]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-outdated-r000025] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] in policy [.siem-signals-default]
[00:24:10]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-outdated-r000025] 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:24:10]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 331638 finished with response BulkByScrollResponse[took=12.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:24:12]                 └- ✓ pass  (999ms) "detection engine api security and spaces enabled  deleting signals migrations returns the deleted migration SavedObjects"
[00:24:12]               └-> "after each" hook for "returns the deleted migration SavedObjects"
[00:24:12]                 │ info [signals/outdated_signals_index] Unloading indices from "mappings.json"
[00:24:12]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-outdated/7F_5z9kAQmCbEh9OHLKU_A] deleting index
[00:24:12]                 │ info [signals/outdated_signals_index] Deleted existing index ".siem-signals-default-outdated"
[00:24:12]                 │ info [signals/outdated_signals_index] Unloading indices from "data.json"
[00:24:12]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-000001/i-ktgovwRxSfzhNvqVg5-A] deleting index
[00:24:12]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-outdated-r000025/2gT-VDd1S5-vDEEK0DxCLg] deleting index
[00:24:12]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] removing template [.siem-signals-default]
[00:24:12]               └-> marks the original index for deletion by applying our cleanup policy
[00:24:12]                 └-> "before each" hook: global before each for "marks the original index for deletion by applying our cleanup policy"
[00:24:12]                 └-> "before each" hook for "marks the original index for deletion by applying our cleanup policy"
[00:24:12]                   │ info [o.e.x.i.a.TransportPutLifecycleAction] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] adding index lifecycle policy [.siem-signals-default]
[00:24:13]                   │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] adding template [.siem-signals-default] for index patterns [.siem-signals-default-*]
[00:24:13]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-000001] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:24:13]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:24:13]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 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:24:13]                   │ info [signals/outdated_signals_index] Loading "mappings.json"
[00:24:13]                   │ info [signals/outdated_signals_index] Loading "data.json"
[00:24:13]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-outdated] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:24:13]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 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:24:13]                   │ info [signals/outdated_signals_index] Created index ".siem-signals-default-outdated"
[00:24:13]                   │ debg [signals/outdated_signals_index] ".siem-signals-default-outdated" settings {"index":{"lifecycle":{"indexing_complete":true}}}
[00:24:13]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-outdated] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:24:13]                   │ info [signals/outdated_signals_index] Indexed 1 docs into ".siem-signals-default-outdated"
[00:24:13]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 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:24:13]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 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:24:13]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-outdated-r000025] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:24:13]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-outdated-r000025] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:24:13]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-outdated-r000025] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] in policy [.siem-signals-default]
[00:24:13]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-outdated-r000025] 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:24:13]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 331875 finished with response BulkByScrollResponse[took=9.7ms,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:24:15]                 └- ✓ 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:24:15]               └-> "after each" hook for "marks the original index for deletion by applying our cleanup policy"
[00:24:15]                 │ info [signals/outdated_signals_index] Unloading indices from "mappings.json"
[00:24:15]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-outdated/Bik3z7LGS5mDdoY6Wi6jXA] deleting index
[00:24:15]                 │ info [signals/outdated_signals_index] Deleted existing index ".siem-signals-default-outdated"
[00:24:15]                 │ info [signals/outdated_signals_index] Unloading indices from "data.json"
[00:24:15]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-000001/yKnYkL5tRb6NwX5FYmH31g] deleting index
[00:24:15]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-outdated-r000025/w6rTpIROTrqLstwRMBeWDQ] deleting index
[00:24:15]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] removing template [.siem-signals-default]
[00:24:16]               └-> returns a 404 trying to delete a migration that does not exist
[00:24:16]                 └-> "before each" hook: global before each for "returns a 404 trying to delete a migration that does not exist"
[00:24:16]                 └-> "before each" hook for "returns a 404 trying to delete a migration that does not exist"
[00:24:16]                   │ info [o.e.x.i.a.TransportPutLifecycleAction] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] adding index lifecycle policy [.siem-signals-default]
[00:24:16]                   │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] adding template [.siem-signals-default] for index patterns [.siem-signals-default-*]
[00:24:16]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-000001] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:24:16]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:24:16]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 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:24:16]                   │ info [signals/outdated_signals_index] Loading "mappings.json"
[00:24:16]                   │ info [signals/outdated_signals_index] Loading "data.json"
[00:24:16]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-outdated] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:24:16]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 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:24:16]                   │ info [signals/outdated_signals_index] Created index ".siem-signals-default-outdated"
[00:24:16]                   │ debg [signals/outdated_signals_index] ".siem-signals-default-outdated" settings {"index":{"lifecycle":{"indexing_complete":true}}}
[00:24:16]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-outdated] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:24:16]                   │ info [signals/outdated_signals_index] Indexed 1 docs into ".siem-signals-default-outdated"
[00:24:16]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 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:24:16]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 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:24:16]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-outdated-r000025] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:24:16]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-outdated-r000025] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:24:16]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-outdated-r000025] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] in policy [.siem-signals-default]
[00:24:16]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 332161 finished with response BulkByScrollResponse[took=10.1ms,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:24:16]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-outdated-r000025] 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:24:17]                 └- ✓ pass  (40ms) "detection engine api security and spaces enabled  deleting signals migrations returns a 404 trying to delete a migration that does not exist"
[00:24:17]               └-> "after each" hook for "returns a 404 trying to delete a migration that does not exist"
[00:24:17]                 │ info [signals/outdated_signals_index] Unloading indices from "mappings.json"
[00:24:17]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-outdated/EuYQuMCAT_GdWx6eNRWilA] deleting index
[00:24:17]                 │ info [signals/outdated_signals_index] Deleted existing index ".siem-signals-default-outdated"
[00:24:17]                 │ info [signals/outdated_signals_index] Unloading indices from "data.json"
[00:24:18]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-000001/0kjPfl6xSPG_n0rq3JnxWQ] deleting index
[00:24:18]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-outdated-r000025/0eWQ7myxSSWqSUjhDt5Bvw] deleting index
[00:24:18]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] removing template [.siem-signals-default]
[00:24:18]               └-> rejects the request if the user does not have sufficient privileges
[00:24:18]                 └-> "before each" hook: global before each for "rejects the request if the user does not have sufficient privileges"
[00:24:18]                 └-> "before each" hook for "rejects the request if the user does not have sufficient privileges"
[00:24:18]                   │ info [o.e.x.i.a.TransportPutLifecycleAction] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] adding index lifecycle policy [.siem-signals-default]
[00:24:18]                   │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] adding template [.siem-signals-default] for index patterns [.siem-signals-default-*]
[00:24:18]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-000001] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:24:18]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:24:18]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 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:24:18]                   │ info [signals/outdated_signals_index] Loading "mappings.json"
[00:24:18]                   │ info [signals/outdated_signals_index] Loading "data.json"
[00:24:18]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-outdated] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:24:18]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 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:24:18]                   │ info [signals/outdated_signals_index] Created index ".siem-signals-default-outdated"
[00:24:18]                   │ debg [signals/outdated_signals_index] ".siem-signals-default-outdated" settings {"index":{"lifecycle":{"indexing_complete":true}}}
[00:24:18]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-outdated] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:24:18]                   │ info [signals/outdated_signals_index] Indexed 1 docs into ".siem-signals-default-outdated"
[00:24:18]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 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:24:18]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 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:24:18]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-outdated-r000025] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:24:18]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-outdated-r000025] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:24:18]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-outdated-r000025] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] in policy [.siem-signals-default]
[00:24:18]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 332400 finished with response BulkByScrollResponse[took=9.5ms,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:24:18]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-outdated-r000025] 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:24:19]                 │ debg creating role t1_analyst
[00:24:19]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] added role [t1_analyst]
[00:24:19]                 │ debg creating user t1_analyst
[00:24:20]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] added user [t1_analyst]
[00:24:20]                 │ debg created user t1_analyst
[00:24:20]                 └- ✖ fail: detection engine api security and spaces enabled  deleting signals migrations rejects the request if the user does not have sufficient privileges
[00:24:20]                 │       Error: expected { message: 'security_exception: action [indices:admin/settings/update] is unauthorized for user [t1_analyst] with roles [t1_analyst] on indices [], this action is granted by the index privileges [manage,all]',
[00:24:20]                 │   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 index privileges [manage,all]',
[00:24:20]                 │   status_code: 403 }
[00:24:20]                 │       + expected - actual
[00:24:20]                 │ 
[00:24:20]                 │        {
[00:24:20]                 │       -  "message": "security_exception: action [indices:admin/settings/update] is unauthorized for user [t1_analyst] with roles [t1_analyst] on indices [], this action is granted by the index privileges [manage,all]"
[00:24:20]                 │       +  "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:24:20]                 │          "status_code": 403
[00:24:20]                 │        }
[00:24:20]                 │       
[00:24:20]                 │       at Assertion.assert (/dev/shm/workspace/parallel/13/kibana/packages/kbn-expect/expect.js:100:11)
[00:24:20]                 │       at Assertion.eql (/dev/shm/workspace/parallel/13/kibana/packages/kbn-expect/expect.js:244:8)
[00:24:20]                 │       at Context.<anonymous> (test/detection_engine_api_integration/security_and_spaces/tests/delete_signals_migrations.ts:131:41)
[00:24:20]                 │       at Object.apply (/dev/shm/workspace/parallel/13/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:24:20]                 │ 
[00:24:20]                 │ 

Stack Trace

Error: expected { message: 'security_exception: action [indices:admin/settings/update] is unauthorized for user [t1_analyst] with roles [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 index privileges [manage,all]',
  status_code: 403 }
    at Assertion.assert (/dev/shm/workspace/parallel/13/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.eql (/dev/shm/workspace/parallel/13/kibana/packages/kbn-expect/expect.js:244:8)
    at Context.<anonymous> (test/detection_engine_api_integration/security_and_spaces/tests/delete_signals_migrations.ts:131:41)
    at Object.apply (/dev/shm/workspace/parallel/13/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] with roles [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 index 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 in "detection engine api security and spaces enabled"
[00:00:00]           └-: 
[00:00:00]             └-> "before all" hook in ""
[00:24:13]             └-: deleting signals migrations
[00:24:13]               └-> "before all" hook for "returns the deleted migration SavedObjects"
[00:24:13]               └-> returns the deleted migration SavedObjects
[00:24:13]                 └-> "before each" hook: global before each for "returns the deleted migration SavedObjects"
[00:24:13]                 └-> "before each" hook for "returns the deleted migration SavedObjects"
[00:24:13]                   │ info [o.e.x.i.a.TransportPutLifecycleAction] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] adding index lifecycle policy [.siem-signals-default]
[00:24:13]                   │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] adding template [.siem-signals-default] for index patterns [.siem-signals-default-*]
[00:24:13]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-000001] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:24:13]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:24:13]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 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:24:13]                   │ info [signals/outdated_signals_index] Loading "mappings.json"
[00:24:13]                   │ info [signals/outdated_signals_index] Loading "data.json"
[00:24:13]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-outdated] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:24:13]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 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:24:13]                   │ info [signals/outdated_signals_index] Created index ".siem-signals-default-outdated"
[00:24:13]                   │ debg [signals/outdated_signals_index] ".siem-signals-default-outdated" settings {"index":{"lifecycle":{"indexing_complete":true}}}
[00:24:13]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-outdated] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:24:13]                   │ info [signals/outdated_signals_index] Indexed 1 docs into ".siem-signals-default-outdated"
[00:24:13]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 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:24:13]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 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:24:13]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-outdated-r000025] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:24:13]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-outdated-r000025] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:24:13]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-outdated-r000025] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] in policy [.siem-signals-default]
[00:24:13]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 329593 finished with response BulkByScrollResponse[took=9.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:24:13]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-outdated-r000025] 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:24:16]                 └- ✓ pass  (998ms) "detection engine api security and spaces enabled  deleting signals migrations returns the deleted migration SavedObjects"
[00:24:16]               └-> "after each" hook for "returns the deleted migration SavedObjects"
[00:24:16]                 │ info [signals/outdated_signals_index] Unloading indices from "mappings.json"
[00:24:16]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-outdated/gAUSDX-AQreV7JPUjZk5Hg] deleting index
[00:24:16]                 │ info [signals/outdated_signals_index] Deleted existing index ".siem-signals-default-outdated"
[00:24:16]                 │ info [signals/outdated_signals_index] Unloading indices from "data.json"
[00:24:16]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-000001/QDmamT_mTge_fKmP04HypQ] deleting index
[00:24:16]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-outdated-r000025/E_xC-O0yRri1dmdMPm2LyQ] deleting index
[00:24:16]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] removing template [.siem-signals-default]
[00:24:16]               └-> marks the original index for deletion by applying our cleanup policy
[00:24:16]                 └-> "before each" hook: global before each for "marks the original index for deletion by applying our cleanup policy"
[00:24:16]                 └-> "before each" hook for "marks the original index for deletion by applying our cleanup policy"
[00:24:17]                   │ info [o.e.x.i.a.TransportPutLifecycleAction] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] adding index lifecycle policy [.siem-signals-default]
[00:24:17]                   │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] adding template [.siem-signals-default] for index patterns [.siem-signals-default-*]
[00:24:17]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-000001] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:24:17]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:24:17]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 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:24:17]                   │ info [signals/outdated_signals_index] Loading "mappings.json"
[00:24:17]                   │ info [signals/outdated_signals_index] Loading "data.json"
[00:24:17]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-outdated] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:24:17]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 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:24:17]                   │ info [signals/outdated_signals_index] Created index ".siem-signals-default-outdated"
[00:24:17]                   │ debg [signals/outdated_signals_index] ".siem-signals-default-outdated" settings {"index":{"lifecycle":{"indexing_complete":true}}}
[00:24:17]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-outdated] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:24:17]                   │ info [signals/outdated_signals_index] Indexed 1 docs into ".siem-signals-default-outdated"
[00:24:17]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 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:24:17]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 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:24:17]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-outdated-r000025] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:24:17]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-outdated-r000025] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:24:17]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-outdated-r000025] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] in policy [.siem-signals-default]
[00:24:17]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 329880 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:24:17]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-outdated-r000025] 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:24:19]                 └- ✓ 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:24:19]               └-> "after each" hook for "marks the original index for deletion by applying our cleanup policy"
[00:24:19]                 │ info [signals/outdated_signals_index] Unloading indices from "mappings.json"
[00:24:19]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-outdated/-tGWjfGsT5y8JVGxw6wBDA] deleting index
[00:24:19]                 │ info [signals/outdated_signals_index] Deleted existing index ".siem-signals-default-outdated"
[00:24:19]                 │ info [signals/outdated_signals_index] Unloading indices from "data.json"
[00:24:19]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-000001/4ZjP__7RRS-LRabatmqF7g] deleting index
[00:24:19]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-outdated-r000025/5wJgYLYuTGqHah2x-cg3Ig] deleting index
[00:24:20]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] removing template [.siem-signals-default]
[00:24:20]               └-> returns a 404 trying to delete a migration that does not exist
[00:24:20]                 └-> "before each" hook: global before each for "returns a 404 trying to delete a migration that does not exist"
[00:24:20]                 └-> "before each" hook for "returns a 404 trying to delete a migration that does not exist"
[00:24:20]                   │ info [o.e.x.i.a.TransportPutLifecycleAction] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] adding index lifecycle policy [.siem-signals-default]
[00:24:20]                   │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] adding template [.siem-signals-default] for index patterns [.siem-signals-default-*]
[00:24:20]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-000001] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:24:20]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:24:20]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 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:24:20]                   │ info [signals/outdated_signals_index] Loading "mappings.json"
[00:24:20]                   │ info [signals/outdated_signals_index] Loading "data.json"
[00:24:20]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-outdated] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:24:20]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 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:24:20]                   │ info [signals/outdated_signals_index] Created index ".siem-signals-default-outdated"
[00:24:20]                   │ debg [signals/outdated_signals_index] ".siem-signals-default-outdated" settings {"index":{"lifecycle":{"indexing_complete":true}}}
[00:24:20]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-outdated] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:24:20]                   │ info [signals/outdated_signals_index] Indexed 1 docs into ".siem-signals-default-outdated"
[00:24:20]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 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:24:20]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 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:24:20]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-outdated-r000025] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:24:20]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-outdated-r000025] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:24:20]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-outdated-r000025] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] in policy [.siem-signals-default]
[00:24:20]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 330092 finished with response BulkByScrollResponse[took=10.1ms,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:24:20]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-outdated-r000025] 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:24:21]                 └- ✓ pass  (41ms) "detection engine api security and spaces enabled  deleting signals migrations returns a 404 trying to delete a migration that does not exist"
[00:24:21]               └-> "after each" hook for "returns a 404 trying to delete a migration that does not exist"
[00:24:21]                 │ info [signals/outdated_signals_index] Unloading indices from "mappings.json"
[00:24:21]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-outdated/jSkn1ujWQQauwHK7AcvHqg] deleting index
[00:24:22]                 │ info [signals/outdated_signals_index] Deleted existing index ".siem-signals-default-outdated"
[00:24:22]                 │ info [signals/outdated_signals_index] Unloading indices from "data.json"
[00:24:22]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-000001/V6X5-zpwRDyUdxyeSbMAnQ] deleting index
[00:24:22]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-outdated-r000025/0Cj-kH8RQTmMp-Bx3iRJ1w] deleting index
[00:24:22]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] removing template [.siem-signals-default]
[00:24:22]               └-> rejects the request if the user does not have sufficient privileges
[00:24:22]                 └-> "before each" hook: global before each for "rejects the request if the user does not have sufficient privileges"
[00:24:22]                 └-> "before each" hook for "rejects the request if the user does not have sufficient privileges"
[00:24:22]                   │ info [o.e.x.i.a.TransportPutLifecycleAction] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] adding index lifecycle policy [.siem-signals-default]
[00:24:22]                   │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] adding template [.siem-signals-default] for index patterns [.siem-signals-default-*]
[00:24:22]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-000001] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:24:22]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:24:22]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 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:24:22]                   │ info [signals/outdated_signals_index] Loading "mappings.json"
[00:24:22]                   │ info [signals/outdated_signals_index] Loading "data.json"
[00:24:22]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-outdated] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:24:22]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 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:24:22]                   │ info [signals/outdated_signals_index] Created index ".siem-signals-default-outdated"
[00:24:22]                   │ debg [signals/outdated_signals_index] ".siem-signals-default-outdated" settings {"index":{"lifecycle":{"indexing_complete":true}}}
[00:24:22]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-outdated] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:24:22]                   │ info [signals/outdated_signals_index] Indexed 1 docs into ".siem-signals-default-outdated"
[00:24:22]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 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:24:22]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 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:24:22]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] [.siem-signals-default-outdated-r000025] creating index, cause [api], templates [.siem-signals-default], shards [1]/[1]
[00:24:22]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-outdated-r000025] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [.siem-signals-default]
[00:24:22]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-outdated-r000025] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] in policy [.siem-signals-default]
[00:24:22]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] 330337 finished with response BulkByScrollResponse[took=10ms,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:24:22]                   │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] moving index [.siem-signals-default-outdated-r000025] 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:24:23]                 │ debg creating role t1_analyst
[00:24:23]                 │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] added role [t1_analyst]
[00:24:23]                 │ debg creating user t1_analyst
[00:24:24]                 │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xxl-1615842177853895779] added user [t1_analyst]
[00:24:24]                 │ debg created user t1_analyst
[00:24:24]                 └- ✖ fail: detection engine api security and spaces enabled  deleting signals migrations rejects the request if the user does not have sufficient privileges
[00:24:24]                 │       Error: expected { message: 'security_exception: action [indices:admin/settings/update] is unauthorized for user [t1_analyst] with roles [t1_analyst] on indices [], this action is granted by the index privileges [manage,all]',
[00:24:24]                 │   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 index privileges [manage,all]',
[00:24:24]                 │   status_code: 403 }
[00:24:24]                 │       + expected - actual
[00:24:24]                 │ 
[00:24:24]                 │        {
[00:24:24]                 │       -  "message": "security_exception: action [indices:admin/settings/update] is unauthorized for user [t1_analyst] with roles [t1_analyst] on indices [], this action is granted by the index privileges [manage,all]"
[00:24:24]                 │       +  "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:24:24]                 │          "status_code": 403
[00:24:24]                 │        }
[00:24:24]                 │       
[00:24:24]                 │       at Assertion.assert (/dev/shm/workspace/parallel/13/kibana/packages/kbn-expect/expect.js:100:11)
[00:24:24]                 │       at Assertion.eql (/dev/shm/workspace/parallel/13/kibana/packages/kbn-expect/expect.js:244:8)
[00:24:24]                 │       at Context.<anonymous> (test/detection_engine_api_integration/security_and_spaces/tests/delete_signals_migrations.ts:131:41)
[00:24:24]                 │       at Object.apply (/dev/shm/workspace/parallel/13/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:24:24]                 │ 
[00:24:24]                 │ 

Stack Trace

Error: expected { message: 'security_exception: action [indices:admin/settings/update] is unauthorized for user [t1_analyst] with roles [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 index privileges [manage,all]',
  status_code: 403 }
    at Assertion.assert (/dev/shm/workspace/parallel/13/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.eql (/dev/shm/workspace/parallel/13/kibana/packages/kbn-expect/expect.js:244:8)
    at Context.<anonymous> (test/detection_engine_api_integration/security_and_spaces/tests/delete_signals_migrations.ts:131:41)
    at Object.apply (/dev/shm/workspace/parallel/13/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] with roles [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 index 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
enterpriseSearch 1290 1295 +5

Async chunks

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

id before after diff
enterpriseSearch 2.0MB 2.1MB +27.6KB

History

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

@scottybollinger scottybollinger deleted the scottybollinger/yolo-as-role-mappings branch April 21, 2021 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Deprecated - use backport:version if exact versions are needed Feature:Plugins release_note:skip Skip the PR/issue when compiling release notes v7.13.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants